Is it possible to view tickmarks in the legend?

Share RGraph:  

« 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 MarcoJ on 6th July 2017
Hello, in a line chart I need to view in legend not only colors of data series, but associated tickmarks, too. is it possible? Thanks
Posted by Richard on 6th July 2017
Hi there,

No - just the color I'm afraid.


Richard
Posted by Richard on 6th July 2017
Hi there,

Actually, now I look at the code, you can specify an array to the keyColorShape option. Possible values are:

  o circle
  o line
  o triangle
  o rect

So:

keyColorShape: ['circle','line','triangle','rect']



It might work - try it and see!


Richard
Posted by MarcoJ on 6th July 2017
Great, it works!!
but..

in a multiline graph is it possible to specify to show only first and last tickmark but changing the type beetween one and another? (first series rect, second line, third triangle...)
Posted by Richard on 6th July 2017
Hi there,

Are you now referring to the tick marks on the line instead of the key shapes? If so then there's a few tickmark styles called:

  o endcircle
  o endsquare
  o filledendsquare
  o endtick

You can also specify a function for the tickmarks and draw them yourself:

www.rgraph.net/canvas/docs/line.html#custom.tickmarks



Richard

Add a reply




« Back to message list