Skip to content

1e-7 causes chart to crash #4911

@mjchang

Description

@mjchang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions