react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

How to change width of ApexCharts bar smootly?

Open hdsand opened this issue 4 years ago • 0 comments

I have a sidebar and a ApexCharts bar. When I click on the sidebar, it opens smoothly, but the bar changes its width abruptly.

Please, look at the example https://codesandbox.io/s/react-apexcharts-bar-chart-forked-c52pq?file=/src/index.js

Click on the red rectangle aka "sidebar" on the left.

Is it possible to make the bar change its width smoothly without a horizontal scrollbar? Thanks in advance!

I've tried but failed:

  • transition on the parent
  • apexcharts animations
  • redrawOnParentResize
  • window.dispatchEvent(new Event('resize'))
  • react refs
  • setTimeout

hdsand avatar Aug 10 '21 09:08 hdsand