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”}
]
}
]
});