Why tickvals/ticktext is not showing on x-axis in population pyramid graph
未關閉
還沒有人認領這個 Issue。
- 主要語言
- R
- 星號
- 2.7k
- 分支
- 641
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Creating instance of the figure
fig = gp.Figure()
Adding Male data to the figure
fig.add_trace(gp.Bar(y= y_age, x = x_M,
name = 'Male', orientation = 'h'))
Adding Female data to the figure
fig.add_trace(gp.Bar(y = y_age, x = x_F,
name = 'Female', orientation = 'h'))
Updating the layout for our graph
fig.update_layout(title = 'Population Pyramid of Registration Data',
title_font_size = 22, barmode = 'relative',
bargap = 0.6, bargroupgap = 0,
xaxis = dict(tickvals = [-1000, -800, -600, -400, -200, 0, 200, 400, 600, 800, 1000],
ticktext = ['10H', '8H', '6H', '4H', '2H',
'0', '2H', '4H', '6H', '8H', '10H'],
title = 'Population in Hundreds',
title_font_size = 12)
)
fig.show()
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
使用提供的 R 人口金字塔範例重現問題,特別檢查 xaxis、tickvals 和 ticktext 設定,並檢視 fig.show() 附近的行為。確認設定的標籤是否出現在 x 軸上;完成的標準是範例正確呈現所要求的刻度標籤,或記錄該限制及其原因。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- r
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100
