add title parameter for the angular axis of polar charts
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
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.

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der angularaxis-Konfiguration und der Referenzdokumentation für polar-chart auf der verlinkten layout/polar/angularaxis-Seite. Lege fest, wie ein Titel für die Winkelachse für Sektoren wie 0–180 und 0–90 bereitgestellt und positioniert werden soll, und überprüfe anschließend, dass der Titel zusammen mit dem bestehenden Titel der Radialachse gesetzt werden kann und dass die Dokumentation den Parameter beschreibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100