ngx-charts icon indicating copy to clipboard operation
ngx-charts copied to clipboard

vertical-bar-chart with showDataLabel wont format correctly between 1000 and 9999

Open blogcraft opened this issue 3 years ago • 1 comments

Describe the bug The bar chart wont format correctly the thousand separator. Values range 1000 to 9999 wont show thousand separator, while 10000 forward will.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/edit/vertical-bar-chart-erzcbd
  2. See a vertical-bar-chart with showDataLabel = true and values from 1000 to 9999
  3. Values wont format correctly.

Expected behavior Values from 1000 to 9999 should format as 1,000 to 9,999

Screenshots If applicable, add screenshots to help explain your problem.

Demo https://stackblitz.com/edit/vertical-bar-chart-erzcbd

ngx-charts version 17

blogcraft avatar Apr 27 '21 20:04 blogcraft