Home Forums Chart Support Not every label in x-axis is displayed

Not every label in x-axis is displayed

Viewing 4 posts - 1 through 4 (of 4 total)
  • #11630

    I want to create a graph with x-axis representing city names .But every city name is not displayed in the x-axis as some get skipped. I have about 20-25 cities.
    i tried by setting interval :1 but still the problem remains.

    • This topic was modified 8 years, 4 months ago by Akhil H.
    #11632

    Akhil,

    We are unable to reproduce the issue at our end. Can you kindly create a jsfiddle reproducing the issue you are facing and share it with us so that we can look into the code / chart-options being used, understand the scenario better and help you out?


    Sanjoy

    #11675

    http://jsfiddle.net/QwZuf/444/
    Here is the code and the problem here is when there is lot of data in x-axis its affecting the design

    #11676

    Akhil,

    We observe that the labels are shown for every dataPoints.
    Chart with Labels shown for all dataPoints

    If there are more number of dataPoints, its better not to show every labels, which can be controlled by setting interval, and show few to make it look better or by increasing the chart width, labels get more space and can be shown better.

    Suggestion: Compared to labelAngle: 90, setting it to -45 makes it much readable. Check this JSFiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.