JavaScript/jQuery PieChart - loadingIndicator
Type:
viz/core/base_widget:BaseWidgetLoadingIndicator
When the UI component is bound to a remote data source, it can display a loading indicator while data is loading.
To enable the automatic loading indicator, set the enabled property to true.
If you want to change the loading indicator's visibility, use the show property or the showLoadingIndicator() and hideLoadingIndicator() methods.
backgroundColor
Type:
Default Value: '#FFFFFF'
This property supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
- Paint server address
enabled
Type:
Default Value: false
The loading indicator's visibility is tied to the DataSource's load method: it appears when the method's execution starts and hides when the execution is complete. The PieChart calls the method internally.
NOTE
The dataSource property does not have to be set to a DataSource instance because the UI component wraps anything passed to this property in the DataSource.
If you want to change the loading indicator's visibility, use the show property.
Feedback