Created
October 3, 2016 04:56
-
-
Save lohithgn/4506a56eef40844171ee116ffba5187d to your computer and use it in GitHub Desktop.
kendo ui chart with angular - handling series click
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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