Number formatting doesn't work on plotly indicator?

Hello!
I’m using an indicator to show a number (call it let value = 10000).
By default, the format is “10k”, but I can use number: {valueformat: ",.2f"} and it shows “10,000.00”, like this:

let value1 = 10000;
    let plotData = [
      {
        type: "indicator",
        mode: "number",
        value: value1,
        number: {valueformat: ",.2f"}
      }
    ];

However, I need it to show “10.000,00” because of an application in South America. There seems to be no solution…
I tried toLocaleString, numeral.js and even a function replacing ‘.’ to ‘,’ - apparently, nothing changes the default.
Is there anything I can do?

Thanks in advance!

1 Like

Separators

1 Like