Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Funky tick values #15

Closed
tkeffer opened this issue Feb 24, 2018 · 1 comment
Closed

Funky tick values #15

tkeffer opened this issue Feb 24, 2018 · 1 comment

Comments

@tkeffer
Copy link
Owner

tkeffer commented Feb 24, 2018

With domain [32.7653846153847, 42.21986754966882], recharts is picking tick values of

[
  32.00000000000001,
  36.000000000000014,
  40.000000000000014,
  44.000000000000014,
  48.00000000000002,
]

These then create very long tick labels, which get clipped on the left side. Either

  1. Fix the rounding problem; or
  2. Use a custom label that only displays the first few digits.

image

@tkeffer
Copy link
Owner Author

tkeffer commented Apr 5, 2018

Seems to be fixed by specifying interval of preserveStartEnd

@tkeffer tkeffer closed this as completed Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant