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

Skip labeling? #614

Closed
ghost opened this issue Sep 9, 2014 · 6 comments
Closed

Skip labeling? #614

ghost opened this issue Sep 9, 2014 · 6 comments

Comments

@ghost
Copy link

ghost commented Sep 9, 2014

I have a lot of data points on a single graph and I would like to have the ability to label only every X points on the x axis.

There's a discussion going on right here: #12 but the merge request hasn't been accepted yet. Is there an official way to manage the excessive labeling on the X axis?

@petsuter
Copy link

+1

@fulldecent
Copy link
Contributor

Hello, this issue looks like a QUESTION regarding the Chart.js API. It would be very helpful if you could please create an example chart showing your attempt, and even call the methods that don't exist yet which you are expecting to be there. A mockup here of what the result should look like would be for bonus points.

To help, I have created a simple JSBIN which you could fork:
http://jsbin.com/yozobahucero/1/edit?html,js,output

Sorry that this response is templated as we are triaging many issues and ones with test cases will be seen first.

@petsuter
Copy link

Here's a fork demonstating the issue, with a simple non-existing API proposal:
http://jsbin.com/biqut/1/edit

(#12 (comment) has a mockup / screenshot of the rejected fix.)

While preparing this I realized a (static) workaround can be to just put empty strings in the labels array e.g. 9 times out of 10. (A big downside of this is that it also kills the label in the tooltip.)

@jivinivan
Copy link

👍

@jivinivan
Copy link

Similar to #624

@tannerlinsley
Copy link
Contributor

Duplicate, and fixed in v2.0

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

No branches or pull requests

5 participants