File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/vchart/src/series/cartesian Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 9
9
STACK_FIELD_END_OffsetSilhouette ,
10
10
STACK_FIELD_START ,
11
11
STACK_FIELD_START_PERCENT ,
12
- STACK_FIELD_START_OffsetSilhouette
12
+ STACK_FIELD_START_OffsetSilhouette ,
13
+ PREFIX
13
14
} from '../../constant' ;
14
15
import type { IAxisHelper } from '../../component/axis/cartesian/interface' ;
15
16
import type { DirectionType } from '../../typings/space' ;
@@ -196,6 +197,16 @@ export abstract class CartesianSeries<T extends ICartesianSeriesSpec = ICartesia
196
197
return this . getGroupFields ( ) ;
197
198
}
198
199
200
+ getStackValue ( ) {
201
+ return (
202
+ this . _spec . stackValue ??
203
+ `${ PREFIX } _series_${ this . type } _${ ( this . direction === Direction . horizontal
204
+ ? this . getXAxisHelper ( )
205
+ : this . getYAxisHelper ( )
206
+ ) . getAxisId ( ) } `
207
+ ) ;
208
+ }
209
+
199
210
getStackValueField ( ) {
200
211
// TODO: hack
201
212
if ( this . direction === Direction . vertical ) {
You can’t perform that action at this time.
0 commit comments