Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kendo ui chart with angular - handling series click
$scope.onSeriesClick = function(e){
var categorySelected = e.category;
if(categorySelected === "MSIE")
{
$scope.chartDataSource.data($scope.msieData);
}
else if(categorySelected === "Firefox")
{
$scope.chartDataSource.data($scope.ffData);
}
else if(categorySelected === "Chrome")
{
$scope.chartDataSource.data($scope.chromeData);
}
else if(categorySelected === "Safari")
{
$scope.chartDataSource.data($scope.safariData);
}
else if(categorySelected === "Opera")
{
$scope.chartDataSource.data($scope.operaData);
}
else
{
$scope.chartDataSource.data($scope.initialData);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment