Add horizontal attribute for colorbars
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit den Beispielen zu schema() sowie colorbar()/layout() im Issue und vergleiche anschließend den Eintrag in der R Figure Reference mit dem Plotly.js v2.11.1-Schema. Verfolge, wie colorbar-Attribute bereitgestellt werden, und teste beide Beispiele; abgeschlossen bedeutet, dass orientation = "h" akzeptiert wird und eine horizontale colorbar erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, r
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100