Open silberzwiebel opened 4 years ago
Hi!
I'm using plotly to generate a standalone HTML-file that contains only my plot. I do want the axes to be localized in German (one axis has Dates).
plotly
This code does not work:
fig.write_html("index.html", include_plotlyjs="cdn", config={"locale": "de"} )
The reason is that the following line is missing in the generated HTML-file (cf. plotly.js documentation)
<script src="https://cdn.plot.ly/plotly-locale-de-latest.js"></script>
I suggest to add a locale argument to the write_html function that does two things (think of de as exchangeable):
locale
write_html
de
"locale": "de"
Same issue here with 5.5.0
Bump
Hi!
I'm using
plotly
to generate a standalone HTML-file that contains only my plot. I do want the axes to be localized in German (one axis has Dates).This code does not work:
The reason is that the following line is missing in the generated HTML-file (cf. plotly.js documentation)
<script src="https://cdn.plot.ly/plotly-locale-de-latest.js"></script>
I suggest to add a
locale
argument to thewrite_html
function that does two things (think ofde
as exchangeable):"locale": "de"
to the plotconfig