Skip to content

Commit

Permalink
opt: optimize the calculation of y-axis width when fold decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Mar 10, 2024
1 parent fcaf8c0 commit 532c607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/component/YAxis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ export default abstract class YAxisImp extends AxisImp implements YAxis {
if (shouldFormatBigNumber) {
valueText = customApi.formatBigNumber(valueText)
}
valueText = formatFoldDecimal(valueText, chartStore.getDecimalFoldThreshold())
crosshairVerticalTextWidth += (
crosshairStyles.horizontal.text.paddingLeft +
crosshairStyles.horizontal.text.paddingRight +
Expand Down

0 comments on commit 532c607

Please sign in to comment.