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.
var chart = new CanvasJS.Chart("container", { . . dataPointMinWidth: 2, . . }); chart.render();
Also See:
Comments 5
Server Side Technologies |
Front End Technologies |
Contact |
|
---|---|---|---|
ASP.NET MVC Charts | JavaScript Charts | FAQs | |
PHP Charts | jQuery Charts | Sales Enquiries | |
Spring MVC Charts | React Charts | Support Forum | |
JSP Charts | Angular Charts | Careers | |
JavaScript StockCharts | |||
Privacy Policy © fenopix
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.