Skip to content

1e-7 causes chart to crash #4911

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

Closed
mjchang opened this issue Jan 10, 2025 · 2 comments
Closed

1e-7 causes chart to crash #4911

mjchang opened this issue Jan 10, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@mjchang
Copy link

mjchang commented Jan 10, 2025

Description

Steps to Reproduce

Generate a chart with a data point that is 1e-7 or smaller

  <Chart
    options={{
      chart: { id: "basic-bar" },
      xaxis: { categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998] },
    }}
    series={[{ name: "series-1", data: [30, 40, 45, 50, 49, 60, 70, 1e-7] }]}
    type="bar"
    width="500"
  />

Expected Behavior

Chart should render

Actual Behavior

Chart crashes

Screenshots

Reproduction Link

https://codesandbox.io/p/sandbox/musing-water-56gs7n?file=%2Fsrc%2F_app.js%3A23%2C7

My Research

@mjchang mjchang added the bug Something isn't working label Jan 10, 2025
@mjchang mjchang changed the title 1e-6 1e-7 causes chart to crash Jan 10, 2025
@mjchang
Copy link
Author

mjchang commented Jan 10, 2025

Update - just saw #4909

@junedchhipa
Copy link
Contributor

fixed by #4909

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants