Home forums Using CanvasJS Multi data on x axis

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  aarya81 6 months, 2 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #19237

    aarya81
    Member

    Hello All
    i have trying to show the number of registrations for institution. for each month. i have created 12 data points to display data for 12 months. In x axis it is showing the City name correctly but the value in columns in mixing between the cities like Mysore data is showing in BBSR or bangalore. I have created for fiddle for the same.

    https://jsfiddle.net/QwZuf/825/

    #19277

    Suyash Singh
    Participant

    Aarya,

    The dataPoints in multi-series charts need to be aligned, i.e. there should be the same number of dataPoints in all the data-series. In cases where y values are missing in some of the data-series adding a dataPoint will null y value should work fine. I have updated your jsfiddle, please take a look.

    ___
    Suyash Singh
    Team CanvasJS

    #19281

    aarya81
    Member

    Thanks Suyash for the update. I have updated the sample data. Now if you observe the data of BBSR is showing in both BBR and Bangalore on x axis. how to fix this one

    #19282

    Suyash Singh
    Participant

    Aarya,

    Can you please provide the link to jsfiddle with sample data?

    ___
    Suyash Singh
    Team CanvasJS

    #19286

    aarya81
    Member
    #19290

    Suyash Singh
    Participant

    Aarya,

    You can either keep the data-points in the same sequence in all the data-series as in this
    jsfiddle
    , or add x values in all the data-points as in this example.

    ___
    Suyash Singh
    Team CanvasJS

    #19291

    aarya81
    Member

    Thanks that solve my issue.

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

You must be logged in to reply to this topic.