Skip to content

Commit 30d05bb

Browse files
committed
upgrade to v1.46.0
1 parent 0bfa6fa commit 30d05bb

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

NEWS.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# 4.8.0.9000
22

3+
## Changes to plotly.js
4+
5+
* This version of the R package upgrades the version of the underlying plotly.js library from v1.42.3 to v1.46.0. The [plotly.js release page](https://github.com/plotly/plotly.js/releases) has the full list of changes, but here is summary most pertainent ones for the R package:
6+
* New trace types: `sunburst`, `waterfall`, `isosurface`.
7+
* New `hovertemplate` attribute allows for finer-tuned control over tooltip text. See [here](https://plotly-r.com/controlling-tooltips.html#fig:tooltip-format-heatmap) for an example.
8+
* Providing a string to `title` is now deprecated (but still works). Instead, use `title = list(text = "title")`. This change was made to support a new title placement API (e.g., `title = list(text = "title", xanchor = "left")`). Note that these changes are relevant for `layout.title` as well as `layout.xaxis.title`/`layout.yaxis.title`/etc.
9+
310
## NEW FEATURES
411

512
* The `orca_serve()` function was added for efficient exporting of many plotly graphs. For examples, see `help(orca_serve)`.
@@ -12,7 +19,6 @@
1219

1320
## IMPROVEMENTS
1421

15-
* Upgraded to plotly.js v1.45.3.
1622
* The `orca()` function now supports conversion of much larger figures (#1322) and works without a mapbox api token (#1314).
1723
* The `style()` function now supports "partial updates" (i.e. modification of a particular property of an object, rather than the entire object). For example, notice how the first plot retains the original marker shape (a square): `p <- plot_ly(x = 1:10, y = 1:10, symbol = I(15)); subplot(style(p, marker.color = "red"), style(p, marker = list(color = "red")))` (#1342).
1824
* **plotly** objects can now be serialized and unserialized in different environments (i.e., you can now use `saveRDS()` to save an object as an rds file and restore it on another machine with `readRDS()`). Note this object is *dynamically* linked to JavaScript libraries, so one should take care to use consistent versions of **plotly** when serializing and unserializing (#1376).

R/plotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ typedArrayPolyfill <- function() {
444444
plotlyMainBundle <- function() {
445445
htmltools::htmlDependency(
446446
name = "plotly-main",
447-
version = "1.45.3",
447+
version = "1.46.0",
448448
package = "plotly",
449449
src = dependency_dir("plotlyjs"),
450450
script = "plotly-latest.min.js",

R/sysdata.rda

1.6 KB
Binary file not shown.

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

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

0 commit comments

Comments
 (0)