I have a TimeChart that updates a PieChart - according to the time selection.
Until now, I was using preloaded data, and having my TimeChart calling the PieChart replaceData:
events: {
onAnimationDone: function (ev, args) {
if ((rangeTime.timeStart != args.timeStart)
|| (rangeTime.timeEnd != args.timeEnd)) {
processData(
dataTime,
args.timeStart,
args.timeEnd,
dataPie);
myPie.replaceData(dataPie);
rangeTime.timeStart = args.timeStart;
rangeTime.timeEnd = args.timeEnd;
}
},
},
But now, I need to call an angular service in order to bring the data that will be used on my PieChart.
Can I still use this approach?