Skip to content

UpdateOptions not working for styling charts - Possible CDN issue #5027

@JasonHeyburgh

Description

@JasonHeyburgh

Description

I am suddenly unable to use the updateOptions to update styling or chart types after load using the CDN. My current apps having been working fine until yesterday evening and based on my investigation it seems to be a CDN issue because when changing it to https://cdnjs.cloudflare.com/ajax/libs/apexcharts/1.4.6/apexcharts.min.js or https://cdnjs.cloudflare.com/ajax/libs/apexcharts/4.5.0/apexcharts.min.js" it works as expected.

Steps to Reproduce

  1. Link CDN: https://cdn.jsdelivr.net/npm/apexcharts
  2. Draw a chart
  3. Update chart after load using an event listener: Any styling updates or chart type change

Expected Behavior

The chart should update styling or chart

Actual Behavior

Update's do not happen unless the window is resized triggering a redraw.

Screenshots

Reproduction Link

https://codepen.io/MrShibumi/pen/zxxEgVp

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