swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.29k stars 1.15k forks source link

valueFormatting is not working with Treemap chart in Angular 9. #1514

Open yogesh-kumawat opened 4 years ago

yogesh-kumawat commented 4 years ago

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.

shubham708 commented 4 years ago

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???

inexuscore commented 3 years ago

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?

inexuscore commented 3 years ago

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? 🧛‍♂️

andrewhwang10 commented 3 years ago

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

andrewhwang10 commented 3 years ago

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

andrewhwang10 commented 3 years ago

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