I am currently facing a challenge in my Angular application where I need to update the data source for multiple charts and then redraw them. The data source is updated through an Angular service that returns a promise. While I am able to successfully update the data, I am having difficulty redrawing the graphs once this process is complete. Can you offer some guidance or assistance with this issue? Below is the relevant datasource information for one of the charts:
chartDataEl.dataSource = new kendo.data.DataSource({
transport: {
type: 'json',
read: function(options) {
var request = vm.shipmentManagementRequest;
request.RequestType = myChart.chartData.htmlID;
shipmentService.getBasicChartData(request)
.then(function(result) {
options.success(result.data);
}).catch(function(error) {
options.error(error);
});
}
},
sort: {
field: "date",
dir: "asc"
},
schema: {
model: {
fields: {
date: {
type: "date"
}
}
}
}
});