Home forums Using CanvasJS Number of Labels on the xAxis

Tagged: , ,

This topic contains 4 replies, has 2 voices, and was last updated by  Suyash Singh 2 weeks, 6 days ago.

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

    Kristoffer
    Member

    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

    Suyash Singh
    Moderator

    Kristoffer,

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

    #14483

    Kristoffer
    Member

    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

    Kristoffer
    Member

    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

    Suyash Singh
    Moderator

    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.