i have a onclick event inside my chart,whenever its clicked ,the function is invoked and find what is clicked,now,in my main page,i need to know when the function is invoked to get its value,how should i do that?
function pieChartForInterventions(chartID,pieChartData) {
chartID.kendoChart({
dataSource: {
data: pieChartData
},
series: [{
type: "pie",
field: "list",
categoryField: "mm",
padding: 0,
labels: {
visible: true,
}
}],
seriesClick:onDb,
tooltip: {
visible: true,
template: "${ category }"
}
,
legend: {
position: "bottom"
}
});
}
function onDb(e) {
debugger;
var _clicked = e.category;
var whatClicked;
debugger;
return _clicked;
}
onDb function get the value of chart when its clicked,now i want to have this value,how can i get the returned value of onDb() on my main page and save it?
var s=onDb()
this does not work