This time i remembered to attach the patch :D
> thanks for this ... it looks cool ... quersion though, is there > some information carying capability in this feature ? Not really. For the most part, I wanted to add some control over how the AREA's were drawn, especially when you have two of them on the same graph that keep covering one another, it makes it easier for the eye to pick out the two graphs, as opposed to simply using an alpha, which gives a solid color that can be mis-interpreted as another graph. I also wanted the ability to make it so that peak values could be highlighted in a different color if desired, as in a cpu graph going from green through yellow to red. I haven't thought about making it carry information, although it might be neat to show temporal distribution of an average value (ie, turn the dataset on its side, and make it represent color instead of displacement). I don't really know how to get into that, since all I've played with so far is the drawing code. > > can you please also add a patch for the documentation ? Hopefully the attached patch will suffice. -- rian
diff -crB rrdtool-1.3.8/doc/rrdgraph_graph.pod ../rrdtool-1.3.8/doc/rrdgraph_graph.pod *** rrdtool-1.3.8/doc/rrdgraph_graph.pod Sat Feb 21 02:43:58 2009 --- ../rrdtool-1.3.8/doc/rrdgraph_graph.pod Thu Nov 5 12:23:08 2009 *************** *** 262,267 **** --- 262,275 ---- See B<LINE>, however the area between the x-axis and the line will be filled. + =head3 B<GRAD>B<:>I<value>[B<#>I<color1>[B<#>I<color2>B<:>I<height>][B<:>[I<legend>][B<:STACK>]] + + Similar to B<AREA>, except the area between the line and the x-axis will contain a gradient from color1 to color2. + + The I<height> parameter can create three different behaviors. If I<height> > 0, then the gradient is a fixed height, starting at the line going down. If I<height> < 0, then the gradient starts at fixed height above the x-axis, going down to the x-axis. If I<height> == 0, then the gradient goes from the line to x-axis. + + If not present, I<color2> defaults to #00000000 and I<height> defaults to 50. + =head3 B<TICK>B<:>I<vname>B<#>I<rrggbb>[I<aa>][B<:>I<fraction>[B<:>I<legend>]] Plot a tick mark (a vertical line) for each value of I<vname> that is
_______________________________________________ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers