ConstSets brush selection areas programmatically.
areas defines the selection regions. Requires the
BrushComponent to be registered via seSetup.
Programmatically sets the dataZoom range.
Reverses a highlight - restores all elements to their normal state.
Highlights the adjacency of a node in a graph series.
Triggers a geo component roam (pan/zoom) action.
Hides the tooltip.
Highlights specified data graphics. Other elements are blurred unless
notBlur is true.
Selects all legend items - makes all series visible.
Inverts the selected state of all legend items.
Selects (shows) a legend item by name.
Toggles the selected state of a legend item by name.
Unselects (hides) a legend item by name.
Resets the chart to its initial state - reverses all user interactions including zoom, legend selections, and data selections.
Selects specified data. Requires selectedMode on the series option
("single", "multiple", or true) - without it the action fires
but has no visual effect.
Shows the tooltip at a specific data point or pixel coordinate.
Changes the current timeline index.
Sets the timeline play state.
Toggles selection state on specified data. Selects if unselected,
deselects if selected. Requires selectedMode on the series.
Clears the adjacency highlight on a graph series node.
Clears selection on specified data. dataIndex accepts an array
for bulk unselect - pass all indices to clear the entire series.
Factories are pure - no runtime logic, no side effects. They exist solely
to provide type safety and autocomplete over raw { type: '...', ... } objects.
type is always injected by the factory - never pass it manually.
// Imperative, fire once in response to an event
const { dispatch } = useChart();
dispatch(seActions.highlight({ seriesIndex: 0, dataIndex: 2 }));
dispatch(seActions.dataZoom({ start: 20, end: 80 }));
dispatch(seActions.legendToggleSelect({ name: "Revenue" }));
// Declarative, keep action in sync with a signal
createAction(instance, () =>
hoveredRow() !== null
? seActions.highlight({ seriesIndex: 0, dataIndex: hoveredRow()! })
: seActions.downplay({})
);
dispatchaction API [external]
Typed factory functions for all built-in ECharts
dispatchActionpayloads.Each factory takes the action fields (excluding
typewhich is injected automatically) and returns a correctly shaped payload. Use with dispatch for imperative actions or createAction for reactive bindings.