|
1 | | -# plotly (development version) |
| 1 | +# plotly 4.12.0 |
| 2 | + |
| 3 | +## Changes to plotly.js |
| 4 | + |
| 5 | +Upgrades plotly.js from v2.11.1 to v2.25.2 (35 releases). Key new features now available: |
| 6 | + |
| 7 | +* **Multiple legends**: Support for `legend2`, `legend3`, etc. with separate positioning and visibility control |
| 8 | +* **Shape labels**: New `label` attribute for shapes and `label.texttemplate` for parametric shapes |
| 9 | +* **Marker direction**: New `marker.angle`, `marker.angleref`, and `marker.standoff` properties for directional markers |
| 10 | +* **Y-axis positioning**: `shift` and `autoshift` properties to avoid y-axis overlapping in multi-axis plots |
| 11 | +* **Mapbox clustering**: Clustering options and bounds support for `scattermapbox` traces |
| 12 | +* **Equal Earth projection**: New map projection option for geo subplots |
| 13 | +* **Pattern fills**: Pattern support extended to pie, funnelarea, sunburst, icicle, and treemap charts |
| 14 | +* **Editable selections**: Persistent and editable selections over cartesian subplots with `editSelection` config option |
| 15 | +* **Axis label aliases**: `labelalias` for simplified axis label customization |
| 16 | +* **Grid styling**: `griddash` property and minor tick/grid line styling options |
| 17 | + |
| 18 | +Also includes a security fix for prototype pollution and ~90KB bundle size reduction. |
| 19 | + |
| 20 | +See the [plotly.js releases page](https://github.com/plotly/plotly.js/releases) for the full changelog. |
| 21 | + |
| 22 | +## Improvements |
| 23 | + |
| 24 | +* `save_image()` now works with kaleido v1.0 and higher. (#2447) |
| 25 | + |
| 26 | +## Bug fixes |
| 27 | + |
| 28 | +* `plotly_build()` now works with `ggmatrix` objects (e.g., from `GGally::ggpairs()`). (#2447) |
| 29 | +* Closed #2415: `ggplotly()` now shows variables named 'group' in tooltips when mapped to aesthetics like `colour`. |
| 30 | +* Closed #2455, #2460: `ggplotly()` no longer creates empty shapes when `panel.border` is `element_blank()` (ggplot2 4.0.0 compatibility). |
| 31 | +* Closed #2466: `ggplotly()` no longer errors when `scale_*_manual()` has unused aesthetics (e.g., `aesthetics = c("colour", "fill")` when only colour is used). |
| 32 | +* Closed #2305: `ggplotly()` now respects `geom_boxplot(outlier.shape = NA)` to hide outlier points. |
| 33 | +* Closed #2467: `ggplotly()` now correctly shows legends and splits traces when scales have multiple aesthetics. |
| 34 | +* Closed #2407, #2187: `ggplotly()` now translates `legend.position` theme element to plotly layout (supports "bottom", "top", "left", and numeric positions). |
| 35 | +* Closed #2281: `ggplotly()` no longer drops legends when `geom_blank()` is present in the plot. |
| 36 | + |
| 37 | +# plotly 4.11.0 |
2 | 38 |
|
3 | 39 | ## New features |
4 | 40 |
|
5 | 41 | * `ggplotly()` now supports the `{ggridges}` package. (#2314) |
6 | 42 |
|
7 | 43 | ## Improvements |
8 | 44 |
|
9 | | -* `ggplotly()` now works better with the development version of ggplot2 (> v3.4.4). (#2315, #2368) |
| 45 | +* Various updates to `ggplotly()` to better support recent versions of ggplot2. (#2315, #2368, #2442, thanks @teunbrand). |
10 | 46 |
|
11 | 47 | ## Bug fixes |
12 | 48 |
|
13 | 49 | * Closed #2337: Creating a new `event_data()` handler no longer causes a spurious reactive update of existing `event_data()`s. (#2339) |
14 | 50 | * Closed #2376: Removes errant boxmode warning for grouped boxplot. (#2396) |
| 51 | +* Closed #2392: Trivial warning about RColorBrewer minimal n value is no longer thrown (#1999) |
15 | 52 |
|
16 | 53 | # 4.10.4 |
17 | 54 |
|
@@ -368,7 +405,7 @@ This is minor patch release with a few minor bug fixes and updates test expectat |
368 | 405 | * Added the `highlight()` function for configuring selection modes/sequences/options. |
369 | 406 | * 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> |
370 | 407 | * 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. |
371 | | -* 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)`. |
| 408 | +* 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)`. |
372 | 409 | * 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()`). |
373 | 410 | * 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)`. |
374 | 411 | * `ggplotly()` gains a new argument, `dynamicTicks`, which allows axis ticks to update upon zoom/pan interactions (fixes #485). |
@@ -1145,7 +1182,7 @@ Fixed filename, fileopt arguments in plot_ly. Specifying the same filename will |
1145 | 1182 |
|
1146 | 1183 | 1.0.8 -- 14 Sep 2015 |
1147 | 1184 |
|
1148 | | -Added the plotly_IMAGES() function which interfaces to the images endpoint https://api.plot.ly/v2/#images |
| 1185 | +Added the plotly_IMAGES() function which interfaces to the images endpoint. |
1149 | 1186 |
|
1150 | 1187 | Details -> https://github.com/ropensci/plotly/pull/279 |
1151 | 1188 |
|
|
0 commit comments