Home Forums Chart Support why are some columns smaller than others?

why are some columns smaller than others?

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

    @scompliance,

    Datapoint width depends on multiple factors including range of x-axis, number of dataseries, sequence of datapoint values, etc. Sorting the data by x-values should work in your case, and give you columns of similar width. Please take a look at this updated JSFiddle for an example of the same.

    column charts - datapoint width


    Ananya Deka
    Team CanvasJS

    #45754

    thank you but there are still not the same width, look at the 20 in the first graph vs the 2nd one. it should look the same since it the same properties for both graphs. Is it possible to force a certain width?

    #45765

    @scompliance,

    Since the two charts have varying number of dataseries, there is a difference in datapoint width. You can use dataPointWidth property to enforce the same column width across the charts.


    Ananya Deka
    Team CanvasJS

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

You must be logged in to reply to this topic.