Show points on Line chart (tickmarks?)


« 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 Aximili on 15th November 2012
How do you show the points (are they called tickmarks?) on a line graph like the 4th example here
www.rgraph.net/examples/line.html

eg. line2.Set('chart.tickmarks', 'endcircle');

I noticed it only works if the chart has shadow. How can you show them on line graphs with no shadow?
Posted by RGraph support on 16th November 2012
Hi,

You can use this code:

var line2 = new RGraph.Line('line2', [8,15,19,14,17,8,9]);
line2.Set('chart.colors', ['red']);
line2.Set('chart.shadow', true);
line2.Set('chart.linewidth', 2);
line2.Set('chart.hmargin', 5);
line2.Set('chart.tickmarks', 'endcircle');
line2.Set('chart.labels', ['Barry','Paul','Rich','Steve','Olga','Lynn','Pete']);
line2.Set('chart.tooltips', ['Barry','Paul','Rich','Steve','Olga','Lynn','Pete']);
line2.Draw();

There is a bug - but it is present when the chart is filled - not when the shadow is shown.

Add a reply

 




« Back to message list
RGraph on social media