var chart = new CanvasJS.Chart(“chartContainer”, {
animationEnabled: true,
theme: “light2”,
title: {
text: “TESTING!! ”
},
subtitles: [{
text: “test”
}],
rangeChanging: getViewport,
axisX: {
title: “”,
tickLength: 0,
margin: 0,
lineThickness: 0,
valueFormatString: ” “,
},
data: [
{
type: “line”,
lineColor: “#00b7c3”,
indexLabel: “{y}”,
indexLabelPlacement: “outside”,
dataPoints:
[
]
}
]
});
function getViewport(e) {
try {
if (e.chart.isMouseDown && e.chart.draggingDataPoint) {
}
}
catch (ex)
{ }
}