指定与取消ECharts数据图形高亮

ECharts 中支持的图表行为,通过 dispatchAction 触发。 注: 代码中…

ECharts 中支持的图表行为,通过 dispatchAction 触发。

注: 代码中的 ?: 表示该属性是可选的。EVENT: 是 action 对应触发的事件。

action.highlight  |  Action


高亮指定的数据图形。

通过 seriesName 或者 seriesIndex 指定系列。如果要再指定某个数据可以再指定 dataIndex 或者 name。

dispatchAction({
type: 'highlight',
// 可选,系列 index,可以是一个数组指定多个系列
seriesIndex?: number|Array,
// 可选,系列名称,可以是一个数组指定多个系列
seriesName?: string|Array,
// 可选,数据的 index
dataIndex?: number,
// 可选,数据的 名称
name?: string
})

action.downplay   |  Action


取消高亮指定的数据图形。

通过 seriesName 或者 seriesIndex 指定系列。如果要指定某个数据可以再指定 dataIndex 或者 name。

dispatchAction({
type: 'downplay',
// 可选,系列 index,可以是一个数组指定多个系列
seriesIndex?: number|Array,
// 可选,系列名称,可以是一个数组指定多个系列
seriesName?: string|Array,
// 可选,数据的 index
dataIndex?: number,
// 可选,数据的 名称
name?: string
})

为您推荐

设置ECharts直角坐标系的y轴

yAxis yAxis 是对 ECharts 图表中直角坐标系 grid 中的 y 轴进行配置,通常并默认为数值型。一般...

parallel坐标轴组件的使用

ECharts 中设置 parallel 坐标轴的方法有两种,分别是使用 parallel 坐标轴组件(parallel...

ECharts图例组件配置项

legend 图例组件。 图例组件展现了不同系列的标记(symbol),颜色和名字。可以通过点击图例控制哪些系列不显示。...

ECharts工具栏组件的icon样式

toolbox.iconStyle   |   Object ECharts 工具栏组件中...

ECharts xAxis配置 x坐标轴刻度设置

xAxis.axisTick   |   Object 坐标轴刻度相关设置。 xAxis....
返回顶部