Skip to main content
Version: V2 (Ignition 8.1)

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 NameTypeDescriptionInput/Output
optionsobjectThe ECharts option object that describes the chart. The chart is updated whenever it changes.Input
settingsobjectThe ECharts setOption settings used when options is applied, for example { "lazyUpdate": false, "notMerge": false }. Defaults to those two values.Input
loadingbooleanIf true, the ECharts loading indicator is shown over the chart. Default is false.Input
themestringThe ECharts theme to draw the chart with, light or dark. Default is light. Changing it redraws the chart with the current options.Input
clearOnReloadbooleanIf true, the chart is cleared before options is applied, so nothing from the previous options is kept. Default is false.Input
styleobjectThe 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.