Ngx-charts: valueFormatting is not working with Treemap chart in Angular 9.

Created on 25 Sep 2020  ·  6Comments  ·  Source: swimlane/ngx-charts

I have tried valueFormatting options in treemap chart in Angular 9 and @swimlane/ngx-charts": "16.0.0" but its not working.
Can you please suggest us.

Most helpful comment

Wow, duh! If I disable animations (animations=false), then the valueFormatting callback works. I'm using the advanced-pie-chart component. Works fine for now but it kinda sucks to lose those nice animations just for value formatting. Help? 🧛‍♂️

All 6 comments

I am using advanced pie chart. Interesting thing is valueFormatting works fine in the sample stackblitz code, but not in my sample vs code project. Wondering why???

Facing the same issue, the StackBlitz example works fine but for some reason, it has no effect on version ^16.0.0. Been struggling for a couple of hours, plowing through SO threads and elsewhere. Any ideas?

Wow, duh! If I disable animations (animations=false), then the valueFormatting callback works. I'm using the advanced-pie-chart component. Works fine for now but it kinda sucks to lose those nice animations just for value formatting. Help? 🧛‍♂️

Having the same problem on ^16.0.0 with advanced-pie-chart

Also would help if there were examples for valueFormatting or if the StackBlitz code was available in the repo.

I'm looking through the git history, and there are some weird changes in commit 9726259d92b37bddde0c5a53557d833962574aee, in regards to the internal 'count-up' directive. Link to changes to count.directive.ts

Was this page helpful?
0 / 5 - 0 ratings