-
안녕하세요. |
Beta Was this translation helpful? Give feedback.
Answered by
jwlee1108
Jan 5, 2022
Replies: 1 comment
-
Hello, I missed your question. I'm sorry for the late replying. https://github.com/nhn/tui.chart/blob/main/docs/en/common-axes.md#formatter FYI, here is the sample code with regexp. I used this regexp in this link to make the sample code. yAxis: {
title: 'Temperature (Celsius)',
label: {
formatter: (value) => value.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ','),
},
},
tooltip: {
formatter: (value) => value.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ','),
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jwlee1108
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jewon7377
Hello, I missed your question. I'm sorry for the late replying.
I think if you are using a typical chart, please refer to the links below and try the
formatter
option.https://github.com/nhn/tui.chart/blob/main/docs/en/common-axes.md#formatter
https://github.com/nhn/tui.chart/blob/main/docs/en/common-tooltip.md#formatter
FYI, here is the sample code with regexp. I used this regexp in this link to make the sample code.