You must be logged in to post your query.
Home › Forums › Chart Support › Bar/Col datapoint width got changed in V1.8.0
Tagged: datapointwidth
Hi,
We were using canvasjs v1.5.0 and have recently upgraded to v1.8.0 and now experiencing the below issue.
For the below sample data, I get to see the datapointwidth to be different in v.1.5.0 (bigger and better) and in V1.8.0 (smaller). I can set the dataPointWidth manually but I do need to calculate it manually based on the data. Is it something which I am missing to make my chart look like the same with newer version 1.8.0?
PS: This case is happening when I have jus Y and label.
var chart = new CanvasJS.Chart(“chartContainer”, { title:{ text: “Olympic Medals of all Times (till 2012 Olympics)” }, data: [ { type: “bar”,
dataPoints: [ { y: 198, label: “Italy”} ] }, { type: “bar”, dataPoints: [ { y: 166, label: “Italy”} ] }, { type: “bar”, dataPoints: [ { y: 185, label: “Italy”} ] } ] });
@veeru,
The behavior was changed due to aesthetic reasons. But still you can control the width of dataPoint by setting dataPointWidth.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic. Login/Register