Line chart doesn't render all data until after media qu


Topic: Line chart doesn't render all data until after media query fires

jriley pro asked 8 months ago

So the line chart works correctly AFTER a media query fires when you resize the window - before that though, it only renders the first two data points. Same problem in two different charts, both in the snippet below.

You can find a snippet of it here: https://mdbootstrap.com/snippets/jquery/jriley/2350004

Thanks for any help!


Krzysztof Wilk staff answered 8 months ago

Hi!

You have to update your data after getting it. You can check corrected example here: https://mdbootstrap.com/snippets/jquery/m-dembna/2362853#js-tab-view

Best regards


jriley pro commented 8 months ago

That did it, thank you very much!


Krzysztof Wilk staff commented 8 months ago

I'm glad I could help :)


Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.19.1
  • Device: Any
  • Browser: Any
  • OS: ANy
  • Provided sample code: No
  • Provided link: Yes
Tags