Home Forums Chart Support problem in combination chart

problem in combination chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • #45323

    I am attempting to create a combination chart consisting of a column chart and a line chart. Each chart is created correctly on its own, but when I add the data for the line chart to the final chart, the column chart incorrectly converts to a line chart.
    https://jsfiddle.net/wmohkbj0/1/

    #45329

    @mahsa77,

    In the example you shared, the chart displays a line dataseries and a column dataseries with reduced width. This is happening because of the large difference in the number of datapoints between the line and column dataseries. The chart automatically reduces the width of the columns to accommodate datapoints from both series in the plot area.

    You can use the dataPointWidth property to set a fixed width for the column chart. Please check this updated JSFiddle for a working example.

    Combination chart with fixed column width


    Thangaraj Raman
    Team CanvasJS

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

You must be logged in to reply to this topic.