Home › forums › Using CanvasJS › Number of Labels on the xAxis
Tagged: label, Labels, xaxis
Sorry if this has been posted before as a question, but i couldn’ find it in the support section.
I have 12 months that i want to get information from a database, but when i put it in the chart, it only shows 9 labels on the X-Axis. How can i manually set that i want to show 12 labels, not 9?
Is this possible?
You can achieve this using interval and intervalType.
Thank you for your answer Suyash!
Could you please guide me to where i can find the different types of IntervalType?
I can see that it works now, but now all the labels underneath the chart is missing.
They are formatted as Period: 2016-03, 2016-04 and so on, but it does not show up under the chart.
Thank you for your help!
Please refer this page for info on intervalType. Can you kindly create a working jsfiddle, so that we can understand the code better and help you out resolving the issue.
You must be logged in to reply to this topic.