plotly / plotly/plotly.R

Add horizontal attribute for colorbars

オープン
#2,147 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

As of plotly JS v2.8.0 horizontal colorbars are available.

Plotly.R currently uses plotly.js v2.11.1 and the parameter is listed in the R Figure Reference, so it should be possible to make use of this feature.

However I can't find it in schema() and can't apply it:

library(plotly)

fig <- plot_ly(mtcars, x = ~wt, y = ~mpg, color = ~cyl, type = "scatter", mode = "markers")
fig1 <- colorbar(fig, len = 0.5, orientation = "h", bgcolor= "green")
fig1

fig2 <- layout(fig, title = "colorbar orientation", coloraxis = list(colorbar = list(orientation = "h", bgcolor= "green")))
fig2

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず issue の schema() と colorbar()/layout() の例から始め、次に R Figure Reference の項目と Plotly.js v2.11.1 schema を比較します。colorbar 属性がどのように公開されているかを追跡し、両方の例をテストします。orientation = "h" が受け入れられ、水平な colorbar が生成されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, r
領域
data-visualization
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。