There are two pie-charts. I want the functionality so that only one slice of the pie-charts pulls out whichever last clicked. "pullOutOnlyOne" is working only for single pie-chart. I need it to be worked like this, If i click on a slice of One pie-chart then second one, then slice of first pie-chart should pulled in.
I tried this one but unable to capture which pie-chart and which slice...:(
var lastClickedSlice;
...
...
{
"event": "clickSlice",
"method": function (e) {
if (lastClickedSlice === "") {
lastClickedSlice = e.dataItem.dataContext;
} else {
console.log(JSON.stringify(lastClickedSlice));
lastClickedSlice.clickSlice(lastClickedSlice.index);
lastClickedSlice = e.dataItem.dataContext;
}
}
}
How to implement this thing with 2 or more than 2 pie-charts?