Hi all,
I have a simple problem.. but I really getting it not solved. I try to define my y-Axis range (max:100, min: 50) and tried to follow the documentation. However, scaling does not react at all. My code is the following:
window.chart1 = new CanvasJS.Chart("chart1ContainerDisk", {
animationEnabled: true,
theme: "light2",
title: {
text: title,
fontSize: 14
},
axisX: {
title: xtitle,
titleFontSize: 13,
includeZero: false
},
axisY: {
title: ytitle,
titleFontSize: 13,
includeZero: false
},
data: [{
type: "line",
indexLabelFontSize: 12,
dataPoints: arr_Datapoints
}],
options: {
scales: {
yAxes: [{
ticks: {
min: 50,
max: 100
}
}]
}
}
});
window.chart1.render();
Can someone tell me what is wrong with that code?
Thank in advance, Cheers
J
-
This topic was modified 4 years, 7 months ago by Tschounes.