swimlane / ngx-charts

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

ngx-charts-gauge, numbers < 10 doesn't display properly #1790

Open KGDI01 opened 1 year ago

KGDI01 commented 1 year ago

Describe the bug

Numbers < 10 doesn't display properly. If the value is > 10 it looks good.

To Reproduce Steps to reproduce the behavior: Add a ngx-charts-gauge and set the value to 2, value is not displaying properly. Add a ngx-charts-gauge and set the value to 20, value looks fine

Expected behavior Numbers should be shown correctly independent of value.

Screenshots image image image

Demo Provide an online demo (stackblitz, codesandbox, or similar) where the issue can be reproduced

ngx-charts version "@swimlane/ngx-charts": "^20.1.0",

Additional context Angular CLI: 14.2.1 Node: 16.17.0 Package Manager: npm 8.15.0 OS: win32 x64

Angular: 13.3.11 ... animations, common, compiler, compiler-cli, core, forms ... localize, platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1303.9 @angular-devkit/build-angular 13.3.9 @angular-devkit/core 13.3.9 @angular-devkit/schematics 14.2.1 @angular/cdk 13.3.9 @angular/cli 14.2.1 @angular/material 13.3.9 @schematics/angular 14.2.1 rxjs 6.6.7 typescript 4.6.4

RAJEEV2510 commented 1 year ago

Hmm ,Its happening ,I saw this

RAJEEV2510 commented 1 year ago

I fixed This issues ,And This happening because you are not giving units attribute ,Now its will be work after my pr merge