MES Chart
Overview
The MES Chart component is a custom Perspective component that renders an Apache ECharts chart. The chart is described by an ECharts option object, so any chart type that ECharts supports can be drawn, and the option can be bound to a script or expression like any other Perspective property.
Props
The MES Chart component has the following props:
| Prop Name | Type | Description | Input/Output |
|---|---|---|---|
options | object | The ECharts option object that describes the chart. The chart is updated whenever it changes. | Input |
settings | object | The ECharts setOption settings used when options is applied, for example { "lazyUpdate": false, "notMerge": false }. Defaults to those two values. | Input |
loading | boolean | If true, the ECharts loading indicator is shown over the chart. Default is false. | Input |
theme | string | The ECharts theme to draw the chart with, light or dark. Default is light. Changing it redraws the chart with the current options. | Input |
clearOnReload | boolean | If true, the chart is cleared before options is applied, so nothing from the previous options is kept. Default is false. | Input |
style | object | The standard Perspective style properties, including style classes. | Input |
Notes
- The chart follows the size of its container. It redraws as the container changes, for example when a sidebar or dock opens, a split pane divider is dragged, a dashboard widget is resized, or a hidden container is shown. No window resize is needed.
- It also stays sharp when the browser zoom level changes or the window moves to a screen with a different pixel density.
- Resizing only changes the size of the chart. The options are not re-applied, so any zoom range the viewer has set is kept.
- The component has no events.