Skip to content

Commit 193ba4e

Browse files
committed
Merge branch 'master' of github.com:ropensci/plotly into fix/subplot
2 parents 4655d89 + e449e3c commit 193ba4e

File tree

7 files changed

+46
-23
lines changed

7 files changed

+46
-23
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: plotly
22
Title: Create Interactive Web Graphics via 'plotly.js'
3-
Version: 3.5.1
3+
Version: 3.5.4
44
Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
55
email = "[email protected]"),
66
person("Chris", "Parmer", role = c("aut", "cph"),

NEWS

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
1-
3.6.0 -- 26 Apr 2016
1+
3.5.4 -- 5 May 2016
2+
3+
BUG FIX:
4+
5+
gg2list() now returns an object of class "plotly_built" instead of "plotly"
6+
to ensure a sensible print method is invoked.
7+
8+
3.5.3 -- 3 May 2016
9+
10+
CHANGES:
11+
12+
Upgrade to plotlyjs v1.10.1 -- https://github.com/plotly/plotly.js/releases/tag/v1.10.1
13+
14+
3.5.2 -- 2 May 2016
15+
16+
BUG FIX:
17+
18+
Added missing key properties in ggplotly() converter so selections can be accessible via event_data().
19+
20+
3.5.1 -- 26 Apr 2016
221

322
CHANGES:
423

5-
Upgrade to plotlyjs v1.10.0 -- https://github.com/plotly/plotly.js/releases/tag/v1.9.0
24+
Upgrade to plotlyjs v1.10.0 -- https://github.com/plotly/plotly.js/releases/tag/v1.10.0
625

726
Distinguish between "built" (plotly_built) and "non-built" (plotly_hash) plotly objects. See #562
827

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ gg2list <- function(p, width = NULL, height = NULL, tooltip = "all", source = "A
664664
l$width <- width
665665
l$height <- height
666666
l$source <- source
667-
structure(l, class = "plotly")
667+
structure(l, class = "plotly_built")
668668
}
669669

670670

R/layers2traces.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ geom2trace.GeomPath <- function(data, params, p) {
376376
x = data$x,
377377
y = data$y,
378378
text = data$hovertext,
379+
key = data$key,
379380
type = "scatter",
380381
mode = "lines",
381382
name = if (inherits(data, "GeomSmooth")) "fitted values",
@@ -433,6 +434,7 @@ geom2trace.GeomBar <- function(data, params, p) {
433434
x = data$x,
434435
y = data$y,
435436
text = data$hovertext,
437+
key = data$key,
436438
type = "bar",
437439
marker = list(
438440
autocolorscale = FALSE,
@@ -455,6 +457,7 @@ geom2trace.GeomPolygon <- function(data, params, p) {
455457
x = data$x,
456458
y = data$y,
457459
text = data$hovertext,
460+
key = data$key,
458461
type = "scatter",
459462
mode = "lines",
460463
line = list(
@@ -515,6 +518,7 @@ geom2trace.GeomText <- function(data, params, p) {
515518
x = data$x,
516519
y = data$y,
517520
text = data$label,
521+
key = data$key,
518522
textfont = list(
519523
# TODO: how to translate fontface/family?
520524
size = aes2plotly(data, params, "size"),

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ last_plot <- function(data = NULL) {
7373
if (inherits(p, "try-error")) stop("The last plot doesn't exist")
7474
structure(
7575
p,
76-
class = unique(c("plotly", class(p)))
76+
class = unique(c("plotly_hash", class(p)))
7777
)
7878
}
7979

inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/htmlwidgets/plotly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: plotlyjs
3-
version: 1.10.0
3+
version: 1.10.1
44
src: "htmlwidgets/lib/plotlyjs"
55
script: plotly-latest.min.js
66
stylesheet: plotly-htmlwidgets.css

0 commit comments

Comments
 (0)