Covers every action registered by ECharts core and its built-in
components. The final Payload member is an escape hatch for custom
actions registered via registerAction - it accepts any object with
a type: string field.
Use seActions factories to construct payloads with full type safety and autocomplete rather than building raw objects manually.
// Typed via seActions factory - preferred
dispatch(seActions.highlight({ seriesIndex: 0, dataIndex: 2 }));
// Raw object - valid but no autocomplete on fields
dispatch({ type: 'highlight', seriesIndex: 0, dataIndex: 2 });
// Custom action via escape hatch
dispatch({ type: 'myCustomAction', data: { foo: 'bar' } });
action API [external]
Union of all built-in ECharts action payloads accepted by
dispatchand createAction.