Skip to content

Regression in 3.36.1+: Cannot read properties of undefined (reading '0') in datetime bar chart #3610

@khitrenovich

Description

@khitrenovich

Description

Bar chart with datetime X-axis results in Cannot read properties of undefined (reading '0') console error.
This worked in 3.36.0 and is broken in 3.36.1 and higher versions.

Steps to Reproduce

  1. Open https://codesandbox.io/s/react-basic-example-forked-2p3t0c?file=/src/App.js, observe the bar chart as expected.
  2. Change apexcharts dependency version to 3.36.1 or newer (3.36.3 is latest ATM), observe console error.

Expected Behavior

image

Actual Behavior

image

Reproduction Link

https://codesandbox.io/s/react-basic-example-forked-2p3t0c?file=/src/App.js

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