-
Notifications
You must be signed in to change notification settings - Fork 19.8k
[Bug] canOmitUnusedDimensions will mess up the dimension indexes #20672
Copy link
Copy link
Closed
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Description
Version
5.6.0
Link to Minimal Reproduction
Steps to Reproduce
Hover to see the unexpected NaN tooltip.
tooltip: {
trigger: 'axis',
formatter: (p) => p[0].name,
show: true
},the item selection is broken too.
Clicking an item will select all items in the same series.
Current Behavior
the name of the tooltip formatter params is NaN
Clicking an item will select all items in the same series.
Expected Behavior
Show correct category name
Clicking an item selects only that item.
Environment
- OS:
- Browser:
- Framework:Any additional comments?
It was caused by canOmitUnusedDimensions.
when canOmitUnusedDimensions is true
prepareSeriesDataSchemaonly create necessary dimensions

DataStoreis still generated with all dimensions.(see the length of_chunks)

SeriesDatauses_nameDimIdxto reference the data inDataStore.
Since unnecessrary dimensions are not created,_nameDimIdxis assigned the wrong idx


SeriesData._nameListis filled with wrong names

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.