FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Information Visualization
(Moderators: forkinsocket, REAS)
   Pie Charter
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Pie Charter  (Read 1184 times)
Glen Murphy

WWW Email
Pie Charter
« on: Mar 6th, 2003, 11:05pm »

Knocked this one up for work a few days ago, as our existing Pie chart applet (based on an applet by Tom Van Vleck) started to go funky on our client's systems. Took two hours, so it's really quite raw, but it works.
 
You pass quantities to the applet through the params, it does the rest. Note that it uses Futura Bold, and the colours are hardcoded. There are some other fiddily bits that were specific to the client, but the code should give you some idea what's going on.
 
http://bodytag.org/pie2/
 
 
Someone may want to modify it so that it draws on mouseevent, rather than in loop.
 
Pages: 1 

« Previous topic | Next topic »