dataPointMinWidth sets the minimum width of dataPoints in column / bar, ohlc and candlestick, charts. This allows you to set a minimum limit on the width of dataPoints so that they don’t become very thin when there are too many dataPoints. At the same time, when the number of dataPoints decrease, chart increase their width automatically.
Default : nullvar chart = new CanvasJS.Chart("container", { . . dataPointMinWidth: 2, . . }); chart.render();
Also See:
5 Comments
Pingback: CanvasJS Charts 1.8.0 Beta 4 Released with dataPointMinWidth and dataPointMaxWidth - CanvasJS
Is it possible to set different dataPointMinWidth for different data sets?
Nikolai,
Sorry, this feature is not available as of now.
Any work around on this to set set different dataPointMinWidth for different data sets?
Sorry, as of now this feature is not available. Currently you can control dataPointWith or dataPointMaxWith/dataPointMinWidth for all the dataSeries.