Skip to content

Commit

Permalink
fix: dataIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Feb 28, 2022
1 parent 37b4286 commit 66c5c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/axis/AxisBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ function buildAxisLabel(
eventData.value = rawLabel;
eventData.tickIndex = index;
if (axis.type === 'category') {
eventData.dataIndex = index;
eventData.dataIndex = tickValue;
}

getECData(textEl).eventData = eventData;
Expand Down

0 comments on commit 66c5c22

Please sign in to comment.