diff --git a/src/chart/bar/PictorialBarView.ts b/src/chart/bar/PictorialBarView.ts index c9460daac7..196ab078fb 100644 --- a/src/chart/bar/PictorialBarView.ts +++ b/src/chart/bar/PictorialBarView.ts @@ -278,6 +278,7 @@ function getSymbolMeta( hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']), z2: itemModel.getShallow('z', true) || 0 } as SymbolMeta; + console.log(symbolMeta) prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta); @@ -341,7 +342,7 @@ function prepareBarLength( // if 'pxSign' means sign of pixel, it can't be zero, or symbolScale will be zero // and when borderWidth be settled, the actual linewidth will be NaN - outputSymbolMeta.pxSign = boundingLength > 0 ? 1 : -1; + outputSymbolMeta.pxSign = boundingLength >= 0 ? 1 : -1; } function convertToCoordOnAxis(axis: Axis2D, value: number) {