Skip to content

Commit 8808852

Browse files
committed
upgrade to plotly.js v1.17.0
1 parent 8c7abd0 commit 8808852

File tree

4 files changed

+67
-56
lines changed

4 files changed

+67
-56
lines changed

R/sysdata.rda

-509 Bytes
Binary file not shown.

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

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

inst/htmlwidgets/plotly.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ HTMLWidgets.widget({
44
type: "output",
55

66
initialize: function(el, width, height) {
7+
// when upgrading plotly.js,
8+
// uncomment this console.log(), then do `load_all(); plot_ly()`
9+
// open in chrome, right-click on console output: "save-as" -> "schema.json"
10+
// Schema <- jsonlite::fromJSON("~/Downloads/schema.json")
11+
// devtools::use_data(Schema, overwrite = T)
12+
// console.log(JSON.stringify(Plotly.PlotSchema.get()));
713
return {};
814
},
915

inst/plotlyjs.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ update_attributes <- function(path = ".") {
4141
}
4242

4343
update_attributes()
44+
45+
# For some reason this fails as of plotly.js v1.17.0, probably because
46+
# Plotly is a global anymore. Anyway, see plotly.js for another hack to
47+
# get at the schema.

0 commit comments

Comments
 (0)