|
1 | | -# 4.x |
| 1 | +# plotly (development version) |
2 | 2 |
|
3 | 3 | ## Improvements |
4 | 4 |
|
5 | 5 | * Create the proper `bundleTraceMap` list as internal package data object directly from the upstream JS file when plotly.js is updated. As a consequence, it's now possible to use the [`strict` bundle](https://github.com/plotly/plotly.js/blob/master/dist/README.md#plotlyjs-strict) via `plotly::partial_bundle(type = "strict")`. |
6 | 6 |
|
| 7 | +# plotly 4.12.0 |
| 8 | + |
| 9 | +## Changes to plotly.js |
| 10 | + |
| 11 | +Upgrades plotly.js from v2.11.1 to v2.25.2 (35 releases). Key new features now available: |
| 12 | + |
| 13 | +* **Multiple legends**: Support for `legend2`, `legend3`, etc. with separate positioning and visibility control |
| 14 | +* **Shape labels**: New `label` attribute for shapes and `label.texttemplate` for parametric shapes |
| 15 | +* **Marker direction**: New `marker.angle`, `marker.angleref`, and `marker.standoff` properties for directional markers |
| 16 | +* **Y-axis positioning**: `shift` and `autoshift` properties to avoid y-axis overlapping in multi-axis plots |
| 17 | +* **Mapbox clustering**: Clustering options and bounds support for `scattermapbox` traces |
| 18 | +* **Equal Earth projection**: New map projection option for geo subplots |
| 19 | +* **Pattern fills**: Pattern support extended to pie, funnelarea, sunburst, icicle, and treemap charts |
| 20 | +* **Editable selections**: Persistent and editable selections over cartesian subplots with `editSelection` config option |
| 21 | +* **Axis label aliases**: `labelalias` for simplified axis label customization |
| 22 | +* **Grid styling**: `griddash` property and minor tick/grid line styling options |
| 23 | + |
| 24 | +Also includes a security fix for prototype pollution and ~90KB bundle size reduction. |
| 25 | + |
| 26 | +See the [plotly.js releases page](https://github.com/plotly/plotly.js/releases) for the full changelog. |
| 27 | + |
| 28 | +## Improvements |
| 29 | + |
| 30 | +* `save_image()` now works with kaleido v1.0 and higher. (#2447) |
| 31 | + |
| 32 | +## Bug fixes |
| 33 | + |
| 34 | +* `plotly_build()` now works with `ggmatrix` objects (e.g., from `GGally::ggpairs()`). (#2447) |
| 35 | +* Closed #2415: `ggplotly()` now shows variables named 'group' in tooltips when mapped to aesthetics like `colour`. |
| 36 | +* Closed #2455, #2460: `ggplotly()` no longer creates empty shapes when `panel.border` is `element_blank()` (ggplot2 4.0.0 compatibility). |
| 37 | +* Closed #2466: `ggplotly()` no longer errors when `scale_*_manual()` has unused aesthetics (e.g., `aesthetics = c("colour", "fill")` when only colour is used). |
| 38 | +* Closed #2305: `ggplotly()` now respects `geom_boxplot(outlier.shape = NA)` to hide outlier points. |
| 39 | +* Closed #2467: `ggplotly()` now correctly shows legends and splits traces when scales have multiple aesthetics. |
| 40 | +* Closed #2407, #2187: `ggplotly()` now translates `legend.position` theme element to plotly layout (supports "bottom", "top", "left", and numeric positions). |
| 41 | +* Closed #2281: `ggplotly()` no longer drops legends when `geom_blank()` is present in the plot. |
| 42 | + |
7 | 43 | # plotly 4.11.0 |
8 | 44 |
|
9 | 45 | ## New features |
@@ -375,7 +411,7 @@ This is minor patch release with a few minor bug fixes and updates test expectat |
375 | 411 | * Added the `highlight()` function for configuring selection modes/sequences/options. |
376 | 412 | * Added support for animation. For some relatively basic examples, see the examples section of `help(animation)`. For a more thorough overview, see <https://plotly-r.com/animating-views.html> |
377 | 413 | * Added a `frame` argument to `plot_ly()` for creating animations. Also added the `animation_opts()`, `animation_slider()`, and `animation_button()` functions for configuring animation defaults. |
378 | | -* Added a new interface to [v2 of the REST API](https://api.plot.ly/v2). This new interface makes the `plotly_POST()` and `get_figure()` functions obsolete (use `api_create()` and `api_download_plot()` instead), and thus, are now deprecated, but remain around for backwards-compatibility. For more details, see `help(api)`. |
| 414 | +* Added a new interface to v2 of the REST API. This new interface makes the `plotly_POST()` and `get_figure()` functions obsolete (use `api_create()` and `api_download_plot()` instead), and thus, are now deprecated, but remain around for backwards-compatibility. For more details, see `help(api)`. |
379 | 415 | * Added support for conversion of more **ggplot2** geoms via `ggplotly()`: `GeomCol`, `GeomRug`, `GeomCrossbar`, `GeomQuantile`, `GeomSpoke`, `GeomDotplot`, `GeomRasterAnn` (i.e., `annotation_raster()`), and `GeomAnnotationMap` (i.e., `annotation_map()`). |
380 | 416 | * Added a new function `raster2uri()` which makes it easier to embed raster objects as [images](https://plotly.com/r/reference/#layout-images) via data URIs. For examples, see `help(raster2uri)`. |
381 | 417 | * `ggplotly()` gains a new argument, `dynamicTicks`, which allows axis ticks to update upon zoom/pan interactions (fixes #485). |
@@ -1152,7 +1188,7 @@ Fixed filename, fileopt arguments in plot_ly. Specifying the same filename will |
1152 | 1188 |
|
1153 | 1189 | 1.0.8 -- 14 Sep 2015 |
1154 | 1190 |
|
1155 | | -Added the plotly_IMAGES() function which interfaces to the images endpoint https://api.plot.ly/v2/#images |
| 1191 | +Added the plotly_IMAGES() function which interfaces to the images endpoint. |
1156 | 1192 |
|
1157 | 1193 | Details -> https://github.com/ropensci/plotly/pull/279 |
1158 | 1194 |
|
|
0 commit comments