[rrd-developers] Piecharts

Tobias Oetiker oetiker at ee.ethz.ch
Mon Mar 11 00:34:57 MET 2002


> Hi,
>
> Pie chart support.  Fetch the changes using cvs (or wait for the
> snapshot) and give it a try.
>
> Add this to a normal graph script:
>
>     PART:25#FF0000:"A quarter in red"
>     PART:25#00000000:"Invisible quarter"
>     PART:50#00CC00:"Half in green"
>
> In stead of the numbers you can also use VDEF variables.  For a full
> circle the numbers must add up to 100.
>
> NOTE: I could use some help with the algorithm, it can probably be done
> much more efficient.  See function graph_paint(), around line 2100.

Hi Alex,

Just looked at your code ... you have to be aware that the new
graphing system is NOT pixle based anymore ...

Please draw shapes. Take a look at the code for AREA to get
some inspiration ...

  B             A
    ----------.
    \         . f
     \       .
      \    .  e
       \.   d
        C


First open an area with gfx_new_area use the points A B C

then use gfx_add_point to insert d e and f

this will look much better and be much quicker on top of it ...

cheers
tobi

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, ETZ J97, ETH, 8092 Zurich, Switzerland
 / // _ \/ _ \/ / phoneto:+41(0)1-632-5286  faxto:+41(0)1-632-1517
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://google.com/search?q=tobi



--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list