This PR shows a NO DATA AVAILABLE label in place of the chart in case there are no data.
loadingInProgress has been brought before the options check in order for the loader to be displayed in case the check takes a while.
loadingInProgress has been also added, before the return statement when there are no data, in order to hide the loader if it's previously shown and an error occurred on the previous chart.
@mpx200 You may want to change the label with an image. I don't know your preferences so I went with the simplest solution.
This PR shows a
NO DATA AVAILABLE
label in place of the chart in case there are no data.loadingInProgress
has been brought before theoptions
check in order for theloader
to be displayed in case the check takes a while.loadingInProgress
has been also added, before thereturn
statement when there are no data, in order to hide theloader
if it's previously shown and an error occurred on the previous chart.@mpx200 You may want to change the label with an image. I don't know your preferences so I went with the simplest solution.