-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed as not planned
Labels
new-featurependingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Description
What problem does this feature solve?
在如下场景中 需要高亮 series 0 的dataindex 0 以及 series 1的dataindex 0, 1
原始:
高亮:
代码:
const hightLight = (e) => {
const name = e.name;
if (e.isFired) return;
const series0DataIndex = [];
const series1DataIndex = [];
for (let i = 0; i < levelOData.length; i++) {
if (levelOData[i].name === name) {
series0DataIndex.push(i);
}
}
for (let i = 0; i < level1Data.length; i++) {
if (level1Data[i].name === name) {
series1DataIndex.push(i);
}
}
console.log(series1DataIndex);
console.log(series0DataIndex);
myChart.dispatchAction({
type: 'highlight',
seriesIndex: [0, 1],
isFired: true,
// 期望 这里根据不同的series去做区分
dataIndex: [series1DataIndex, series0DataIndex],
});
};
myChart.on('highlight', hightLight);如果不支持的话是否有代替方案?
Demo
https://stackblitz.com/edit/js-wn7p1d?file=index.html,index.js
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
new-featurependingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.

