Version
5.6.0
Link to Minimal Reproduction
Demo
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
prepareSeriesDataSchema only create necessary dimensions

DataStore is still generated with all dimensions.(see the length of _chunks)

SeriesData uses _nameDimIdx to reference the data in DataStore.
Since unnecessrary dimensions are not created, _nameDimIdx is assigned the wrong idx


SeriesData._nameList is filled with wrong names

Version
5.6.0
Link to Minimal Reproduction
Demo
Steps to Reproduce
Hover to see the unexpected
NaNtooltip.the item selection is broken too.
Clicking an item will select all items in the same series.
Current Behavior
the
nameof the tooltip formatter params isNaNClicking an item will select all items in the same series.
Expected Behavior
Show correct category name
Clicking an item selects only that item.
Environment
Any additional comments?
It was caused by
canOmitUnusedDimensions.when
canOmitUnusedDimensionsis trueprepareSeriesDataSchemaonly create necessary dimensionsDataStoreis 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 idxSeriesData._nameListis filled with wrong names