use hex color with transparency in the colors parameter
未關閉
還沒有人認領這個 Issue。
- 主要語言
- R
- 星號
- 2.7k
- 分支
- 641
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hello Developer:
plot_ly(mtcars,
x = ~mpg,
y = ~cyl,
color = ~as.factor(cyl),
colors = c("#3B4992A3","red","green"))
When I use a hex color with transparency in the colors parameter, it doesn't work, how can I fix it?

When I use as below, although the colors are correct, but the order is wrong.
plot_ly(mtcars,
x = ~mpg,
y = ~cyl,
color = ~as.factor(cyl),
marker = list(
color = c("#3B4992A3","red","green")))
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先使用 colors 參數中的透明十六進位顏色重現提供的 plot_ly(mtcars, ...) 範例,然後將其與 marker color 範例比較。追蹤顏色如何指派給因子層級,並驗證透明十六進位顏色可以被接受,同時保留預期的顏色到層級順序。範例依預期順序呈現預期顏色即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- r
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100