apache / apache/echarts

[Bug] tooltip display incorrect when the number of dimensions bigger than 30

Open
#17,211 8 comments 0 reactions 0 assignees View on GitHub
bug difficulty: easy en topic: tooltip
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.2.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?version=5.2.0

### Steps to Reproduce
```js
option = {
dataset: {
dimensions: [
'aq', 'aw','ae','ar','at','ay','au','ai','ao','ap','aa','as',
'ad','af','ag','ah','aj','ak','al','az','ax','ac','av','ab',
'an','am','bq','dataTime','bw','be',
// 'br',
// 'bt'
],
source: [
{
ac: 6.12,
dataTime: '202101'
},
{
ac: 6.12,
dataTime: '202102'
}
]
},
series: [
{
encode: {
x: ['dataTime'],
y: ['ac']
},
label: {
show: true
},
labelLayout: {
hideOverlap: true
},
symbolSize: '8',
type: 'line',
}
],
tableType: 'chart',
tooltip: {
axisPointer: {
type: 'shadow'
},
borderColor: '#f1f1f1',
show: true,
trigger: 'item'
},
xAxis: [
{
axisLabel: {
show: true
},
axisLine: false,
axisTick: false,
show: true,
type: 'category'
}
],
yAxis: [
{
axisLine: false,
axisTick: false,
type: 'value'
}
]
};
```
### Current Behavior

When the number of dimensions bigger than 30 , tooltip can't display datatime in my option. And I find this after 5.2.0.

### Expected Behavior

When the number of dimensions bigger than 30 , tooltip display datatime after version 5.2.0 .

### Environment

```markdown
- OS:windows 10
- Browser:edge 102.0.1245.33
- Framework: angular 10.2.4
```

### Any additional comments?

Is this a update version bug?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.