Home › Forums › Chart Support › Remove Spacing Between Columns in Bar Graph › Reply To: Remove Spacing Between Columns in Bar Graph
@dmehta,
By setting dataPointWidth based on axis width and number of dataPoints in column chart, histogram chart can be rendered. Please take a look below code snippet for the same
chart.set("dataPointWidth",Math.ceil(chart.axisX[0].bounds.width/chart.data[0].dataPoints.length),true);
Please check this JSFiddle for complete code.
— Manoj Mohan Team CanvasJS