Can I only display some of the tick marks on an adjustable Line chart?


« 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 Manuh on 21st November 2017
Hello,

I have a line (new RGraph.Line(...)) which is adjustable and I want to know if I can show only some tickmarks on it (like one tickmark every two points or on some specific points).

The option "tickmarks: 'circle'" will display all the tickmarks on the line.

Thank you in advance for your answer,

Manuh.
Posted by Richard on 21st November 2017
Hi there,

You'll need to draw the tickmarks in an ondraw event like this example shows you:

www.rgraph.net/fiddle/view.html/adjustable-line-chart-with-reduced-number-of-tickmarks

I've also added the adjustableOnly property so that only those points that have tick-marks are adjustable. If you don't want this, and want all of the points to be adjustable, then comment that property out.

Richard
Posted by Manuh on 22nd November 2017
Thank you Richard, that's exactly what I want !

Add a reply




« Back to message list