I've setup a scatterplot as in the documentation and I'm getting the above error when hovering in the chart area after having clicked one of the graph points.
Controller contains this:
$scope.onSeriesHover = function (e) {
}
function getDataForGraph() {
graphDataService.getData('issuer.sector', $scope.selectedSector).then(function (result) {
$scope.data = result;
});
}
and the view this:
<div kendo-chart
k-series-defaults="{type: 'scatter'}"
k-series="[{xField:'duration', yField:'cost'}]"
k-x-axis="{
labels: { format: '{0}' },
title: { text: 'Duration' }
}"
k-y-axis="{
labels: { format: '{0}' },
title: { text: 'Cost }
}"
k-data-source="data"
k-series-click="onSeriesClick"
k-series-hover="onSeriesHover"></div>
After the controller is initialized the getDataForGraph method is called.
It displays data perfectly but I get this TypeError all the time after the first click on the graph.
I've attached a screenshot from the chrome dev tools if this could help. As I'm on the trial version I do not have access to the full code.
Controller contains this:
$scope.onSeriesHover = function (e) {
}
function getDataForGraph() {
graphDataService.getData('issuer.sector', $scope.selectedSector).then(function (result) {
$scope.data = result;
});
}
and the view this:
<div kendo-chart
k-series-defaults="{type: 'scatter'}"
k-series="[{xField:'duration', yField:'cost'}]"
k-x-axis="{
labels: { format: '{0}' },
title: { text: 'Duration' }
}"
k-y-axis="{
labels: { format: '{0}' },
title: { text: 'Cost }
}"
k-data-source="data"
k-series-click="onSeriesClick"
k-series-hover="onSeriesHover"></div>
After the controller is initialized the getDataForGraph method is called.
It displays data perfectly but I get this TypeError all the time after the first click on the graph.
I've attached a screenshot from the chrome dev tools if this could help. As I'm on the trial version I do not have access to the full code.