Skip to content

Commit

Permalink
feat(radar): Radar series tooltip support dimensionIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
奥尘 committed Jan 10, 2025
1 parent c09cab5 commit 47fdb7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/component/tooltip/TooltipView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ class TooltipView extends ComponentView {
params.marker = markupStyleCreator.makeTooltipMarker(
'item', convertToColorString(params.color), renderMode
);
params.dimensionIndex = dispatcher.__dimIdx;

const seriesTooltipResult = normalizeTooltipFormatResult(
dataModel.formatTooltip(dataIndex, false, dataType)
Expand Down
5 changes: 5 additions & 0 deletions src/util/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ export interface ECElement extends Element {
* Force disable morphing
*/
disableMorphing?: boolean

/**
* From RadarSymbol
*/
__dimIdx?: number;
}

export interface DataHost {
Expand Down

0 comments on commit 47fdb7a

Please sign in to comment.