add title parameter for the angular axis of polar charts
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
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.

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 layout/polar/angularaxis 页面上的 angularaxis 配置和 polar-chart 参考文档开始。定义对于 0–180 和 0–90 等扇区,角度轴标题应如何公开和定位,然后验证该标题可以与现有的径向轴标题一起设置,并且文档描述了该参数。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100