ChartJS Format Numbers

0
0

Hi Wisej:

We need to format the numbers on our chartJs implementations.

How?

We searched a lot but we didn’t found.

Thanks in advance.

  • You must to post comments
0
0

Hi Arturo,

we have just extended our ChartJS extension in Github (for Wisej 2).
Now you can set a second collection of type string in parallel with your object[].dataSet.Data
It´s called dataSet.Formatted.

Here you can format your data as you wish, e.g. adding decimal separators, currency symbols etc.

It will then be used to display the formatted data string.

Best regards
Frank

  • You must to post comments
0
0

Hi Arturo,

you want to change the font size of the DataLabel ?

chart_legend1

See here:

chart_legend2

Best regards
Frank

  • ARTURO ESTIGARRIBIA
    No. We want to format like number the numbers on the chart, something like this: format-number(123456789, “$DDD,DDD,DDD.DD”) equals: $123,456,789.
  • ARTURO ESTIGARRIBIA
    We tried to send to the barDataSet.Data the formated numbers but doesn’t work. how do we format like numbers, with thousand separators (point), decimal point (comma) in CharJS?
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.