@@ -64,6 +64,7 @@ class Symbol extends graphic.Group {
6464 data : SeriesData ,
6565 idx : number ,
6666 symbolSize : number [ ] ,
67+ z2 : number ,
6768 keepAspect : boolean
6869 ) {
6970 // Remove paths created before
@@ -79,8 +80,8 @@ class Symbol extends graphic.Group {
7980 symbolType , - 1 , - 1 , 2 , 2 , null , keepAspect
8081 ) ;
8182
82- symbolPath . attr ( {
83- z2 : 100 ,
83+ symbolPath . attr ( {
84+ z2,
8485 culling : true ,
8586 scaleX : symbolSize [ 0 ] / 2 ,
8687 scaleY : symbolSize [ 1 ] / 2
@@ -156,12 +157,13 @@ class Symbol extends graphic.Group {
156157 const symbolType = data . getItemVisual ( idx , 'symbol' ) || 'circle' ;
157158 const seriesModel = data . hostModel as SeriesModel ;
158159 const symbolSize = Symbol . getSymbolSize ( data , idx ) ;
160+ const z2 = Symbol . getSymbolZ2 ( data , idx ) ;
159161 const isInit = symbolType !== this . _symbolType ;
160162 const disableAnimation = opts && opts . disableAnimation ;
161163
162164 if ( isInit ) {
163165 const keepAspect = data . getItemVisual ( idx , 'symbolKeepAspect' ) ;
164- this . _createSymbol ( symbolType as string , data , idx , symbolSize , keepAspect ) ;
166+ this . _createSymbol ( symbolType as string , data , idx , symbolSize , z2 , keepAspect ) ;
165167 }
166168 else {
167169 const symbolPath = this . childAt ( 0 ) as ECSymbol ;
@@ -405,6 +407,9 @@ class Symbol extends graphic.Group {
405407 static getSymbolSize ( data : SeriesData , idx : number ) {
406408 return normalizeSymbolSize ( data . getItemVisual ( idx , 'symbolSize' ) ) ;
407409 }
410+ static getSymbolZ2 ( data : SeriesData , idx : number ) {
411+ return data . getItemVisual ( idx , 'z2' ) ;
412+ }
408413}
409414
410415
0 commit comments