0

is there a way to display a thousand number in the format 1.200,55 instead of 1,200.55?

Thanks in advance for any help.

Luca
  • 848
  • 1
  • 14
  • 33
  • Looks like http://stackoverflow.com/questions/18204678/how-to-format-numbers-in-google-api-linechart contains a good answer :) – Giacomo Rizzo Apr 10 '16 at 18:40

2 Answers2

1

There is a section in the documentation about numberformats. What you'd need to set are decimalSymbol and groupingSymbol.

var formatter = new google.visualization.NumberFormat(
{decimalSymbol: ',', groupingSymbol: '.'});
Peter Szekeli
  • 2,712
  • 3
  • 30
  • 44
0

Found another way in order to customize text for a country or language, affecting the formatting of values such as currencies, dates, and numbers.

https://developers.google.com/chart/interactive/docs/basic_load_libs#loadwithlocale

Luca
  • 848
  • 1
  • 14
  • 33