[FEATURE]: Make it possible to base heights of horizontal bars (and widths of vertical bars) on a given variable
@camdecoster já está trabalhando nisso.
Desde 15/9/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Description
I would love to make it possible to easily vary the width of vertical bars, or the height of horizontal bars, within a bar chart, to reflect a certain variable (such as the sample size on which that bar is based).
Why should this feature be added?
This would make it easier to visually represent an additional data point (e.g. sample size, monthly revenue, etc.), thus allowing viewers to get more context about a bar.
For example, suppose that you're showing the percentage of individuals in five political parties that support or oppose a certain measure. However, some of these parties have only a small amount of respondents. Varying the thickness of these bars by your sample size would make it clearer that some of your data points are based on a relatively small sample.
Mocks/Designs
Here is an example of what a variable-height horizontal bar chart would look like. (I created this using go.Bar() rather than px.bar(), but this involved a decent amount of additional code, including a custom legend. Being able to customize these heights via a 'bar_width' or 'bar_height' argument within px.bar would be terrific.
- Linguagem predominante
- Python
- Estrelas
- 18.8k
- Forks
- 2.8k
- Merge médio
- 16h 26min
- PRs com merge (30d)
- 21
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de plotly/plotly.py
-
P3 size: 1 task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
bug P1
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
-
feature P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
-
feature P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
Todas as issues de plotly/plotly.py
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
OpenHands/extensions#626 · 1 comentário ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
CSCfi/sd-search-api#39 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
-
please add to porn list Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
StevenBlack/hosts#3255 ·