Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Updating options in Chart

rernens pro asked 6 years ago


Hi,

I am using your chartjs implementation and while everything works fine with dynamic data changes, options changes are not taken into account and reflected in the displayed chart.

For example changing the min and max chart values for y axis in bar charts is not taken into account.


ak.leimrey pro commented 6 years ago

Are you certain? Because I do calculate the greatest value in a chart, so I can fit in my labels from the datalabels plugin on top. And for that reason I "suggest" a roughly 10% greater value which the chart.js rounds up to the next appropriate value. 


rernens pro commented 6 years ago

Yes I am.

I found the work around !

Setting the x labels at the same time as setting the appropriate values for min and max fixes the issue.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.0.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: No