The interactive key has a problem in a 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']);

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

OK - fixed this little bug:

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.

Posted by RGraph Support on 8th October 2012

This bug is fixed now.

Add a reply

« Back to message list