Interactive key in Line chart with null data points


« 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 Patrick Li on 20th September 2012
Using an interactive key in a line graph will null data points causes RGraph to render a line that resides above the chart area.

Test Chart Script:

var line = new RGraph.Line('myLine', [8,4,2,5,6,4,3,7,null,null,null,null], [4,3,1,6,5,8,4,9,8,7,4,6]);
             line.Set('chart.key', ['Richard', 'Fred']);
             line.Set('chart.key.position', 'graph');
             line.Set('chart.key.shadow', true);
             line.Set('chart.key.shadow.offsetx', 0);
             line.Set('chart.key.shadow.offsety', 0);
             line.Set('chart.key.shadow.blur', 15);
             line.Set('chart.key.shadow.color', '#ccc');
             line.Set('chart.key.interactive', true);
             line.Set('chart.hmargin', 5);
             line.Set('chart.linewidth', 3);
             line.Set('chart.labels', ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']);
             line.Draw();

Libraries used:
Common.Core, Common.Key, Line, Common.Dynamic
Posted by on 20th September 2012
Hi,

OK - fixed this little bug:

dev.rgraph.net/demos/line02.html

The fix will be a part of the next release of RGraph.
Posted by Karna on 8th October 2012
It seems there is a bug in Rgraph with interactive mode.

I have a line chart created with rgraph and i placed the keys (legends) out side of the chart (by setting chart.key.position.x value). Now the interactive option is not working.

But when i placed the keys on the line chart it is working fine.

Thanks,
Karunakar
Posted by RGraph Support on 8th October 2012
Hi,

This bug is fixed now and there's a demo here:

dev.rgraph.net/tests/line/interactive-key.html

Add a reply

 




« Back to message list
RGraph on social media