Skip to content

How to dynamically creating the Ticks values? #3675

Answered by Fil
rabeeshcharles asked this question in Q&A
Discussion options

You must be logged in to vote

You are almost there: where you have labelFormat: d3.format('d'), , change instead to a function that returns the string that you want to display, for example d3.format('%'). See the documentation at https://github.com/d3/d3-format

I'm sorry I'm not able to follow your reasoning with the needle count, so you might have to adapt the answer.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Fil
Comment options

You must be logged in to vote
1 reply
@Fil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3674 on June 12, 2023 14:21.