Fill between two lines

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Frederic Laurent on 30th January 2013
Hello

I've got a graph with 3 lines. One for the max values, one for the min values and the third with values between min and max.
I would like to fill the area between the 'max values' line and the 'min values' line.

On my example, jsfiddle.net/6mNFP/
the fill area is between the green line and the red line.

I don't want the fill color to reach the x axis like www.rgraph.net/docs/line-filled.html
(in the example, i would like to fill the area between the blue line and the red line)

any idea ?

thanks in advance
regards
Posted by RGraph support on 30th January 2013
Hi Frederic,

It sounds like you want a range chart:

dev.rgraph.net/tests/line/line_range.html


PS Could you link to the RGraph website - thanks.

Richard, RGraph Support
Posted by Frederic Laurent on 31st January 2013
Hello

Thanks for your reply witch does not totally match with my need, but I started with it to find one solution.
The problem is that I have 3 lines (not 2). The chart.filled options works with 2 lines.

So I made 2 graphs. Both with the same id.
Here it's
jsbin.com/acudog/2/edit

(jsfiddle is down)

thanks.
regards
Posted by Frederic Laurent on 31st January 2013
The rgraph website tests the referer (for the js loading) so the previous example does not work.
A new version thats works : jsbin.com/acudog/6/edit
or on my website : opikanoba.org/test/rgraph_3lines.html

regards
Posted by RGraph support on 31st January 2013

PS Could you link to the RGraph website - thanks.

Richard, RGraph Support

1 Year Premium Support now reduced to £299:
   www.rgraph.net/support

Add a reply




« Back to message list