Skip to content

Fetching number of ticks, domain, scales that a given plot is currently using. #2148

Answered by thedivtagguy
thedivtagguy asked this question in Q&A
Discussion options

You must be logged in to vote

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 Plot.plot(plotOptions).scale("y").ticks()?

Is this mentioned somewhere in the documentation that I might have missed?
What else is can be accessed?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Fil
Comment options

@thedivtagguy
Comment options

@mbostock
Comment options

@thedivtagguy
Comment options

Answer selected by thedivtagguy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants