Hi
I have a graph that works fine with 89 data points, but fail to work with 255 data points. The problem is that the zoom does not work when having 255 datapoints.
The code is the same in both case, could you please direct me to the issue?
Many thanks.
Code:
`unction RenderTurningGraph() {
var turningData = data;
chartTurning = new CanvasJS.Chart(“trolley-turning-graph”, {
title: {
text: “Turning”
},
zoomEnabled: true,
zoomType: “xy”,
exportEnabled: true,
axisY: {
minimum: -50,
maximum: 50,
title: ‘Turning’,
titleFontSize: 20,
stripLines: [
{
value: $(‘#threshold-data’).data(‘turning-min’),
color: ‘#222’
},
{
value: $(‘#threshold-data’).data(‘turning-max’),
color: ‘#222’
}
],
gridThickness: 1
},
axisX: {
title: ‘Time [Days|Hours]’,
titleFontSize: 20,
labelFormatter: function (e) {
//
}
},
toolTip: {
contentFormatter: function (e) {
return e.entries[0].dataPoint.Label + “: ” + e.entries[0].dataPoint.y + ‘°’ +
‘<p>’ + e.entries[0].dataPoint.SampleTime + ‘</p>’;
}
},
data: [
{
type: “line”,
markerSize: 7,
dataPoints: turningData
}
]
});
chartTurning.render();
}