plotly / plotly/plotly.py

implement Plotly.js’ localization features in Plotly.py

Aperta
#4,052 6 commenti 6 reazioni 1 assegnatario Vedi su GitHub

Nessuno ha ancora preso questa issue.

feature P3
Lingua principale
Python
Stelle
18.8k
Fork
2.8k
Merge medio
16h 26m
PR unite (30g)
21

Descrizione

Forum Tread: https://community.plotly.com/t/how-to-get-plotly-to-use-the-set-locale/43499

TLDR: You can't get Plotly graphs to show in any other language than English (e.g. axis labels for a date axis). The only workaround is to convert every label into a string, but then you loose some important features like tickstops.

The solution would be to get Plotly.py to use the set locale (e.g. locale.setlocale(locale.LC_ALL, "") to set it to the locale of the machine it's running on) - which apparently works in Plotly.js, but not Plotly.py.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.