Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to add values to labels on x axis? #2903

Closed
beltik opened this issue Oct 22, 2017 · 1 comment
Closed

A way to add values to labels on x axis? #2903

beltik opened this issue Oct 22, 2017 · 1 comment

Comments

@beltik
Copy link

beltik commented Oct 22, 2017

Hi,

I have been struggle for hours, but i cant find solution.
I have pulse graph, that contain, for example, 30 entries.
What i want is, to add x axis labels which is hours, separate by 2.
So, it will be 0,2,4,6,8,10,12,14 etc.. up to 24
I can't find a way to set those values. Can you please help me?

@liuxuan30
Copy link
Member

take a look at computeAxisValues() it generate the raw entries and used in valueFormatter. You can check forceLabelEnabled as well, or override computeAxisValues for your x axis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants