@@ -38,6 +38,7 @@ import {
38
38
import GlobalModel from '../../model/Global' ;
39
39
import SeriesData from '../../data/SeriesData' ;
40
40
import Radar from '../../coord/radar/Radar' ;
41
+ import IndicatorAxis from '../../coord/radar/IndicatorAxis' ;
41
42
import {
42
43
createTooltipMarkup , retrieveVisualColorForTooltipMarker
43
44
} from '../../component/tooltip/tooltipMarkup' ;
@@ -71,6 +72,10 @@ export interface RadarSeriesOption
71
72
72
73
data ?: ( RadarSeriesDataItemOption | RadarSeriesDataValue ) [ ]
73
74
}
75
+ export interface RadarCallbackDataParams extends CallbackDataParams {
76
+ indicatorIndex : number ,
77
+ indicatorAxes : Array < IndicatorAxis >
78
+ }
74
79
75
80
class RadarSeriesModel extends SeriesModel < RadarSeriesOption > {
76
81
@@ -102,6 +107,17 @@ class RadarSeriesModel extends SeriesModel<RadarSeriesOption> {
102
107
} ) ;
103
108
}
104
109
110
+ /**
111
+ * @overwrite
112
+ */
113
+ getDataParams ( dataIndex : number , dataType : any , el ?: Element ) : RadarCallbackDataParams {
114
+ const params = super . getDataParams ( dataIndex ) as RadarCallbackDataParams ;
115
+ // indicatorIndex && indicatorAxes
116
+ params . indicatorIndex = ( el && ( el as any ) . __dimIdx ) ?? null ;
117
+ params . indicatorAxes = this . coordinateSystem . getIndicatorAxes ( ) ;
118
+ return params ;
119
+ }
120
+
105
121
formatTooltip (
106
122
dataIndex : number ,
107
123
multipleSeries ?: boolean ,
0 commit comments