ZingChart: Dynamically Updating Loading Screen
Note: For the demo we have used timeouts to help mimic API calls or promises.
You will use ZingCharts api method modify
to update the chart noData
display text.
// myChart is the id of the chart
zingchart.exec('myChart', 'modify', {
data: {
noData: {
text: 'Downloading data from server...'
}
}
});