bar_mode(BarMode::Group) not working with second y axis
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 55/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- rust
研究方向
從 examples/statistical_charts 和 bar_chart_with_error_bars 進入點開始,接著檢查當某個 trace 使用 y2 時,產生的圖表設定如何表示 BarMode::Group。將輸出與顯示的結果進行比較;當兩個 y 軸 bar trace 在群組模式下並排呈現,而不是彼此重疊時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Added second y axis to bar_chart_with_error_bars from examples/statistical_charts
fn bar_chart_with_error_bars(show: bool, file_name: &str) {
let trace_c = Bar::new(vec!["Trial 1", "Trial 2", "Trial 3"], vec![3, 6, 4])
.error_y(ErrorData::new(ErrorType::Data).array(vec![1., 0.5, 1.5]));
let trace_e = Bar::new(vec!["Trial 1", "Trial 2", "Trial 3"], vec![400, 700, 300])
.y_axis("y2")
.error_y(ErrorData::new(ErrorType::Data).array(vec![50.0, 100., 200.]));
let mut plot = Plot::new();
plot.add_trace(trace_c);
plot.add_trace(trace_e);
let layout = Layout::new()
.bar_mode(BarMode::Group)
.y_axis(Axis::new().title("Trace C"))
.y_axis2(
Axis::new()
.title(Title::from("Trace E"))
.side(AxisSide::Right),
);
plot.set_layout(layout);
let path = write_example_to_html(&plot, file_name);
if show {
plot.show_html(path);
}
}
Resulting chart. Overlay instead of group.
python version is also broken, but in different way - stack instead of group: https://github.com/plotly/plotly.py/issues/5582
- 主要語言
- Rust
- 星號
- 1.5k
- 分支
- 130
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly.rs 的其他 Issue
-
Surface::surface_color has the wrong type: it should be a 2D numeric array, not Vec<Box<dyn Color>>未關閉
難度 3/5 1-2 天 新手友好度 68/100
-
難度 3/5 1-2 天 新手友好度 62/100
-
難度 4/5 3-5 天 新手友好度 62/100
-
難度 5/5 一週以上 新手友好度 38/100
-
Support Plotly Express color sequences可能已有人在做 @iynehz 於 41 天前認領。 未關閉enhancement
難度 5/5 一週以上 新手友好度 35/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 66/100
riverqueue/river#1576 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
stadelmanma/fitparse-rs#64 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆