Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tickFormatting is not done using Intl #571

Closed
PolarbearDK opened this issue Oct 5, 2017 · 2 comments
Closed

tickFormatting is not done using Intl #571

PolarbearDK opened this issue Oct 5, 2017 · 2 comments

Comments

@PolarbearDK
Copy link

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior
Some numbers (and dates) are formatted using Intl but others like ticks are not.

Expected behavior
All numbers and dates be formatted using Intl.

Reproduction of the problem
Example from https://swimlane.github.io/ngx-charts/#/ngx-charts/bar-vertical with Danish locale.
ngx-chart-intl
Notice that the popup is formatted correctly (using dot as thousand separator which is correct ), but the tics are not (using "comma" as thousand separator).

What is the motivation / use case for changing the behavior?
Correct formatting of numbers/dates using browsers current locale

Please tell us about your environment:
Windows 10, VS Code, Yarn, Chrome

  • ngx-charts version: 6.0.1

  • Angular version: 4.3.4

  • Browser: [all ]

  • Language: [all ]

@marjan-georgiev
Copy link
Member

This should be consistent in the latest version. For custom formatting, please look at the yAxisTickFormatting tick formatting input and the tooltip templates feature.

@ChrTall
Copy link

ChrTall commented Mar 29, 2023

@marjan-georgiev
For me the issue is still present in the current version. Could you provide an example on the yAxisTickFormatting function for this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants