xiaolicui opened a new issue, #16913:
URL: https://github.com/apache/echarts/issues/16913
### Version
5.3.2
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
that is what I code:
<div style="width: 500px; height: 300px" id="echart">
</div>
import * as echarts from 'echarts'
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('echart'));
// 绘制图表
myChart.setOption({
title: {
text: 'ECharts 入门示例'
},
tooltip: {},
xAxis: {
data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子'],
type: 'category'
},
yAxis: {
type: 'value'
},
series: [
{
selectedMode: false,
select: {
itemStyle: {
color: 'gray'
}
},
name: '销量',
type: 'bar',
data: [5, 20, 36, 10, 10, 20]
}
]
});
myChart.on('click', function() {
myChart.dispatchAction({
type: 'showTip',
seriesIndex: 0,
dataIndex: [1, 2, 3]
})
});
### Current Behavior
when I click the chart , only the last item work in the dataIndex array
### Expected Behavior
all the item work in that dataIndex array
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]