add title parameter for the angular axis of polar charts
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 18.3k
- Forks
- 2k
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 28
Descripción
As the title says, the title of the angular axis can't be changed or set as a parameter. I can change the radial axis title, but not the angular one. There is also no parameter in the documentation https://plotly.com/python/reference/layout/polar/#layout-polar-angularaxis. The code for the redefinition of my chart is below.
chart_result.update_layout(
polar = dict(
sector=[0, 180],
angularaxis=dict(
#thetaunit = "degrees",
dtick=10,
#rotation=270,
direction="counterclockwise",
#tickmode="array",
tickvals=list_angular_ticks,
ticktext=list_angular_labels,
),
),
height=600
)
chart_result.update_polars(
radialaxis_title_text='Normalized STD',
)
I also have a proposal for the placement of the title. As seen in the code below, I will only consider the upper half of a circle. Therefore, the title could be placed in the middle - at 90 degrees (above the tick labels). This is also valid if we have, for example, only one quadrant (0-90). In that case, the label should be placed above 45 degrees tick label. An example can be seen below. This logic also works for other domains.

Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la configuración de angularaxis y la documentación de referencia de polar-chart en la página vinculada layout/polar/angularaxis. Define cómo debe exponerse y posicionarse un título del eje angular para sectores como 0–180 y 0–90, y verifica después que el título pueda establecerse junto con el título existente del eje radial y que la documentación describa el parámetro.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- data-visualization
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100