Home Forums Chart Support Number of Labels on the xAxis

Number of Labels on the xAxis

Viewing 5 posts - 1 through 5 (of 5 total)
  • #14476

    Hi All!

    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?

    Best Regards,
    Kristoffer

    #14479

    Kristoffer,

    You can achieve this using interval and intervalType.
    __
    Suyash Singh
    Team CanvasJS

    #14483

    Thank you for your answer Suyash!

    Could you please guide me to where i can find the different types of IntervalType?

    Best Regards,
    Kristoffer Frostholm

    #14484

    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!

    #14490

    Kristoffer,

    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.

    __
    Suyash Singh
    Team CanvasJS

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.