diff --git a/DESCRIPTION b/DESCRIPTION index 13936cc4c7..30e6b9d6fd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: plotly Title: Create Interactive Web Graphics via 'plotly.js' -Version: 3.4.6 +Version: 3.4.7 Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"), email = "cpsievert1@gmail.com"), person("Chris", "Parmer", role = c("aut", "cph"), diff --git a/NEWS b/NEWS index 24e8ca2ae6..5780565cab 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,9 @@ +3.4.7 -- 19 Mar 2016 + +BUGFIX: + +* Added custom CSS which allows plotly to work nicely in ioslides. + 3.4.6 -- 17 Mar 2016 NEW FEATURES: diff --git a/inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css b/inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css new file mode 100644 index 0000000000..f35906d52c --- /dev/null +++ b/inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css @@ -0,0 +1,9 @@ +/* +just here so that plotly works +correctly with ioslides. +see https://github.com/ropensci/plotly/issues/463 +*/ + +slide:not(.current) .plotly.html-widget{ + display: none; +} diff --git a/inst/htmlwidgets/plotly.yaml b/inst/htmlwidgets/plotly.yaml index 05da1f0eb4..381a0f4a07 100644 --- a/inst/htmlwidgets/plotly.yaml +++ b/inst/htmlwidgets/plotly.yaml @@ -3,3 +3,4 @@ dependencies: version: 1.6.1 src: "htmlwidgets/lib/plotlyjs" script: plotly-latest.min.js + stylesheet: plotly-htmlwidgets.css