-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Chart X-Axis tick limiting #67
Comments
You can use |
ok, understand this.. but is there a way to change it while the chart is in the page.. ie, dynamically load it? chart.load({ |
Would be great if we could pass a function to the tick.count so it would update automatically .e.g
Also, the tick.count seems to be a little buggy at the moment. When this is set to certain values it draws a different number of ticks. e.g. |
http://jsfiddle.net/e482V/8/ is an example where count is ignored when set to 5. if you set 5... it no longer listens to count |
Thank you for your troubleshooting, but it might be not easy to fix this because c3 uses d3 native function to set tick count.. @JakeSidSmith Hi, I agree with your idea. I'll add that functionality later. |
@masayuki0812 Any news on this one? |
Sorry, there is not, but I'm considering to use categorized axis. I'll try later. |
@chris-Opsimize I think this has been fixed and could you try on the latest version |
Looks grand! |
I am facing one issue in X axis values. See my code below
I have used "Shanghai" at two places in X axis value. Now its showing the position of Shanghai in array not name when I am plotting the graph. See attached graph image. How can I show the duplicate name in X - axis ..... because in my case there can be duplicate records in X- axis. |
Hi,
Is it possible to set the number of items in the x axis at a given time? for example.. currently for the chart, the x axis contains the same amount of values..:
Small screen size
Medium screen size
Large screen size
Regardless of the chart size, there is 7 items on the x-axis... is there an option in the API to limit this such as:
axis: {
x: {
values: 3
}
}
this would produce the following:
axis: {
x: {
values: 5
}
}
would produce the following:
The text was updated successfully, but these errors were encountered: