Fetching number of ticks, domain, scales that a given plot is currently using. #2148
-
Does Plot have any way to return the exact number of ticks (and possibly what they are, as an array) that are being displayed, or the domain and other things that it has calculated internally? Is this information exposed? For example in the plot above, I'd like to be able to see what the number of ticks (if I have applied an interval as well) which are on the x and y-axis. My question can also be perhaps extended to asking if I can retrieve this information, what else is exposed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Ooh just found issue #741 and learnt that I can do this: Plot.plot(plotOptions).scale("y")
Plot.plot(plotOptions).scale("x") And I almost get what I need. Fantastic. But how can I still fetch the actual length of ticks and what they are? Is there a Is this mentioned somewhere in the documentation that I might have missed? |
Beta Was this translation helpful? Give feedback.
Ooh just found issue #741 and learnt that I can do this:
And I almost get what I need. Fantastic. But how can I still fetch the actual length of ticks and what they are? Is there a
Plot.plot(plotOptions).scale("y").ticks()
?Is this mentioned somewhere in the documentation that I might have missed?
What else is can be accessed?