How to Format Numbers in the Y Scale in Chart js

How to Format Numbers in the Y Scale in Chart js

Chart JS

2 года назад

8,757 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Godbless Onoriode
Godbless Onoriode - 19.05.2023 22:54

Thanks for sharing, I have used it to solve my issue.

Ответить
Bruno S.
Bruno S. - 14.12.2022 20:23

Great videos, thanks for the effort you put in! How can you change the date format to the appropriate country when the X axis displays the date and time?

Ответить
FABRICIO DEV
FABRICIO DEV - 02.10.2022 04:24

Hi! What would the code look like in Brazilian format? Example: R$ 1.500,00
I tried like this.. but it didn't generate the graph. : (

locale: 'pt-BR',
ticks: {
callback: (value,index,values) => {
return new Intl.NumberFormat('pt-BR',{
style: 'currency',
currency: 'BRL',
minimumFractionDigits: 2
}).format(value));
}
}

How to leave it in this format? R$ 1.500,00

Ответить
Fasal Sooppikkada
Fasal Sooppikkada - 28.09.2022 15:30

Thanks Bro, Your Videos are veri helpful and very good. is it possible to customize our price value from 1000 to 1K , 10000 to 10K and 1000000 to 1 M?

Ответить
Valter Neto
Valter Neto - 01.07.2022 07:22

Thanks so much! Your videos are so helpful and "save my life" ! Congrats man!

Ответить
TakiDDine boufedeche
TakiDDine boufedeche - 15.04.2022 05:13

thank you verry much

Ответить
Kayd Withers
Kayd Withers - 29.10.2021 13:46

These videos are amazing! Thanks so much for these. Would it be possible to get a video on positioning tooltips to the center of a bar chart instead of the top?

Ответить
Jonathan Oei Joeng
Jonathan Oei Joeng - 29.10.2021 13:30

Wow, you make that function even better. 👍👍👍

Ответить