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

Add axis label index access inside axis formatter #6859

Closed
kennyjwilli opened this issue Jun 16, 2017 · 1 comment
Closed

Add axis label index access inside axis formatter #6859

kennyjwilli opened this issue Jun 16, 2017 · 1 comment

Comments

@kennyjwilli
Copy link

@kennyjwilli kennyjwilli commented Jun 16, 2017

In order to properly format my axis labels I need to access to the index of the data point. It looks like the only fields available from inside the axis formatter function are axis, chart, dateTimeLabelFormat, isFirst, isLast, and value. Would you guys be open to adding a new field called index or pos? At first glance, it looks like it would be as simple as adding the pos field to the labelFormatter call here. I am happy to submit a PR if it would be merged.

@TorsteinHonsi
Copy link
Collaborator

@TorsteinHonsi TorsteinHonsi commented Jun 19, 2017

Good point! Commit coming up.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.