plotly / plotly/plotly.py

implement Plotly.js’ localization features in Plotly.py

Open
#4,052 6 comments 6 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.