Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: plotly
Title: Create Interactive Web Graphics via Plotly's JavaScript Graphing Library
Version: 2.4.0
Version: 2.4.1
Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
email = "cpsievert1@gmail.com"),
person("Chris", "Parmer", role = c("aut", "cph"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.4.1 -- 2 Feb 2015

Attach base_url in as.widget() so it works in multiple contexts

2.4.0 -- 1 Feb 2015

* Pass plot configuration using ... to avoid conflicts in defaults/documentation
Expand Down
3 changes: 1 addition & 2 deletions R/plotly.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ plot_ly <- function(data = data.frame(), ..., type = "scatter",
layout = NULL,
url = NULL,
width = width,
height = height,
base_url = get_domain()
height = height
)

if (evaluate) p <- plotly_build(p)
Expand Down
1 change: 1 addition & 0 deletions R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ as.widget <- function(x, ...) {
list(b = 40, l = 60, t = 25, r = 10),
p$layout$margin %||% list()
)
p$base_url <- get_domain()
# customize the JSON serializer (for htmlwidgets)
attr(p, 'TOJSON_FUNC') <- to_JSON
htmlwidgets::createWidget(
Expand Down