You must be logged in to post your query.
Home › Forums › Chart Support › problem in combination chart
Tagged: combination chart
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/
@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.
— Thangaraj Raman Team CanvasJS
You must be logged in to reply to this topic. Login/Register