The mouse hover
event does not fire up. I could not able to figure that out
function createChart() {
$("#chart")
.kendoChart({
xAxis: {},
yAxis: {},
seriesDefaults: {type: "scatterLine" },
series: [{data: stats2}],
})
}
// the following part does not fire up
var isHover = false;
$("#chart").hover(
function () {
if (!isHover) {
var chart = $("#chart").data().kendoChart;
chart.options.series.data=stats2;
isHover = true;
}
}, function () {
if (isHover) {
var chart = $("#chart").data().kendoChart;
chart.options.series.data=stats;
isHover = false;
}
});
http://jsfiddle.net/epvg86qu/7/