Skip to content

Fix near-zero linear tick labels#7823

Open
puneetdixit200 wants to merge 1 commit into
plotly:masterfrom
puneetdixit200:fix-ticklabel-zero-artifacts
Open

Fix near-zero linear tick labels#7823
puneetdixit200 wants to merge 1 commit into
plotly:masterfrom
puneetdixit200:fix-ticklabel-zero-artifacts

Conversation

@puneetdixit200
Copy link
Copy Markdown

Summary

  • Snap linear tick values that land extremely close to tick0 or zero before formatting.
  • Add a regression for tickformat: "~r" so the zero tick renders as 0 instead of a floating-point artifact.

Fixes #7765.

Testing

  • git diff --check
  • npx @biomejs/biome lint src/plots/cartesian/axes.js test/jasmine/tests/axes_test.js
  • npm run test-jasmine -- axes --nowatch --report-spec (the new regression passes; this local run still has the existing untagged insiderange react to new data failure at test/jasmine/tests/axes_test.js:8233)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: floating-point artefacts in tick labels

1 participant