Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Using comma separator changes number

Hi,

I got numbers like this: “1,7”, “4,6” and so on. When I set this:

layout.separators = ',.'

“1,7” turns into “17”. What I am doing wrong?

Thanks in advance!

Oh. layout.separators applies to the output number on the graph, not the input number in your coordinate arrays.

You’ll have to format them before passing them to Plotly.plot.