Topic: Updating options in Chart
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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- User: 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
Related topics
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.