File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -855,8 +855,7 @@ class ContinuousView extends VisualMapView {
855855 }
856856
857857 const data = dataModel . getData ( ecData . dataType ) ;
858- const value = data . getStore ( )
859- . get ( visualMapModel . getDataDimensionIndex ( data ) , ecData . dataIndex ) as number ;
858+ const value = data . getStore ( ) . get ( visualMapModel . getDataDimensionIndex ( data ) , ecData . dataIndex ) as number ;
860859
861860 if ( ! isNaN ( value ) ) {
862861 this . _showIndicator ( value , value ) ;
Original file line number Diff line number Diff line change @@ -313,13 +313,11 @@ class PiecewiseModel extends VisualMapModel<PiecewiseVisualMapOption> {
313313 const dataIndices : number [ ] = [ ] ;
314314 const data = seriesModel . getData ( ) ;
315315
316- data . each (
317- this . getDataDimensionIndex ( data ) ,
318- function ( value : number , dataIndex : number ) {
319- // Should always base on model pieceList, because it is order sensitive.
320- const pIdx = VisualMapping . findPieceIndex ( value , pieceList ) ;
321- pIdx === pieceIndex && dataIndices . push ( dataIndex ) ;
322- } , this ) ;
316+ data . each ( this . getDataDimensionIndex ( data ) , function ( value : number , dataIndex : number ) {
317+ // Should always base on model pieceList, because it is order sensitive.
318+ const pIdx = VisualMapping . findPieceIndex ( value , pieceList ) ;
319+ pIdx === pieceIndex && dataIndices . push ( dataIndex ) ;
320+ } , this ) ;
323321
324322 result . push ( { seriesId : seriesModel . id , dataIndex : dataIndices } ) ;
325323 } , this ) ;
You can’t perform that action at this time.
0 commit comments