Releases: plotly/plotly.js
Releases · plotly/plotly.js
v1.35.0
Added
- Add
automargin
attribute to cartesian axes which auto-expands margins
when ticks, tick labels and/or axis titles do not fit on the graph [#2243] - Add support for typed arrays as data array inputs [#2388]
- Add layout
grids
attribute for easy subplot generation [#2399] - Implement
cliponaxis: false
for bar text [#2378] - Add opposite axis attributes for range slider to control y axis range behavior [#2364]
- Generalize
hoverdistance
andspikedistance
for area-like objects [#2379] - Bring
scattergl
auto-range logic to par with SVGscatter
[#2404] - Add selected/unselected marker color size support to
scattermapbox
traces [#2361]
Changed
- Remove all circular dependencies in our
src/
directory [#2429] - Build our CDN bundles with
browser-pack-flat
browserify plugin [#2447] - Bump
mapbox-gl
tov0.44.0
[#2361] - Bump
glslify
tov6.1.1
[#2377] - Stop relinking
customdata
,ids
and any matching objects
ingd._fullLayout
duringPlots.supplyDefaults
[#2375]
Fixed
- Fix buggy auto-range / auto-margin interaction
leading to axis range inconsistencies on redraws
(this bug was mostly noticeable on graphs with legends) [#2437] - Bring back
scattergl
lines under select/lassodragmode
(bug introduced in1.33.0
) [#2377] - Fix
scattergl
visible toggling for graphs with multiple traces
with different modes (bug introduced in1.33.0
) [#2442] - Bring back
spikelines
for traces other thanscatter
(bug introduced in1.33.0
) [#2379] - Fix
Plotly.Fx.hover
acting on multiple subplots
(bug introduced in1.32.0
) [#2379] - Fix range slider with stacked y axes positioning
(bug introduced in1.32.0
) [#2451] - Fix
scattergl
color clustering [#2377] - Fix
Plotly.restyle
forscattergl
fill
[#2377] - Fix multi-line y-axis label positioning [#2424]
- Fix centered hover labels edge cases [#2440, #2445]
- Fix hover labels in bar groups in compare mode [#2414]
- Fix axes and axis lines removal [#2416]
- Fix auto-sizing in
Plotly.react
[#2437] - Fix error bars for
Plotly.react
and uneven data arrays [#2360] - Fix edits for date-string referenced annotations [#2368]
- Fix
z
hover labels with exponents [#2422] - Fix yet another histogram edge case [#2413]
- Fix fall back for contour labels when there's only one contour [#2411]
- Fix
scatterpolar
category angular period calculations [#2449] - Clear select outlines on mapbox zoomstart [#2361]
- Fix legend click to causes legend scroll bug [#2426]
v1.34.0
Added
- Add
Plotly.react
, a new do-it-all API method that creates and update graphs
using the same API signature [#2341] - Add constraint-type contours to
contour
traces [#2270] - Add
notched
andnotchwidth
attributes tobox
traces [#2305] - Add localization machinery to auto-formatted date axis ticks [#2261]
- Add support for
text
inmesh3d
traces [#2327] - Add support for scalar
text
insurface
traces [#2327] - Make mode bar for graphs with multiple subplot types more usable [#2339]
- Add
npm@5
package-lock file [#2323]
Changed
- All of gl-vis dependencies now use
[email protected]
[#2293, #2306] - All our dependencies and source now use
[email protected]
[#2326]
Fixed
- Prevent page scroll on mobile device on
gl2d
andgl3d
subplots [#2296] - Fix multi-marker
scattergl
selection errors (bug introduced in1.33.0
) [#2295] - Fix
Plotly.addTraces
inscattergl
selection call backs (bug introduced in1.33.0
) [#2298] - Fix trace
opacity
restyle forscattergl
traces (bug introduced in1.33.0
) [#2299] - Fix
scattergl
handling ofselectedpoints
across multiple traces [#2311] - Fix
scattergl
horizontal and vertical line rendering [#2340] - Fix restyle for scalar
hoverinfo
forscatter3d
,surface
andmesh3d
traces [#2327] - Fix
table
when content-less cells and headers are supplied [#2314] - Fix
Plotly.animate
for attribute nested indimensions
containers [#2324] - Fix
hoverformat
onvisible: false
cartesian axes (bug introduced in1.33.0
) [#2329] - Fix handling of double negative translate transform values [#2339]
- Fix compare
hovermode
fallback for non-cartesian subplot types [#2339] - Fix animation error messages when overriding and ignoring frames updates [#2313]
v1.33.1
Fixed
- Fix selection on
scattergl
plots with >20k points [#2266] - Update Spanish localization with new strings [#2268]
- Fix test_dashboard overly rigid restriction so parcoods works there [#2273]
- Make
layout.colorway
compatible withsankey
traces [#2277] - Fix click events on
fixedrange
subplots [#2279] - Remove ghost fill when trace data is emptied out [#2280]
- Fix resizing of new
scattergl
plots [#2283] - Fix positioning of carpet axis titles for
cheaterslope
edge cases [#2285] - Fix coloring and hover info for heatmaps and contour maps with nonuniform bins [#2288]
v1.33.0
Added
- Completely rewritten
scattergl
trace type usingregl
[#2258] - Completely rewritten polar chart renderer accompanied by new
scatterpolar
andscatterpolargl
trace types [#2200] - Add the ability to draw layout images and layout shapes on subplot
withscattergl
traces [#2258] - Add
fill
capabilities toscattergl
traces [#2258] - Add
spikedistance
,hoverdistance
andskipsnap
for more customizable
spikes and hover behavior on cartesian subplots [#2247] - Add official Spanish translation (locale
es
) [#2249] - Add official French translation (locale
fr
) [#2252] - Add locale machinery to annotation new text placeholder [#2257]
Changed
- Old polar trace types (
scatter
with(r,t)
coordinates,
bar
with(r,t)
coordinates andarea
) are now deprecated.
Fixed
- Fix
gl2d
tick label on pan interaction regression [#2258] - Fix
candlestick
hover label regression (bug introduced in v1.32.0) [#2264] - Fix several
gl2d
axis related bugs with new regl-basedscattergl
[#2258]
See full list under the On-par gl2d milestone https://github.com/plotly/plotly.js/milestone/3 - Fix several polar bugs with
scatterpolar
[#2200].
See full list under the On-par polar milestone https://github.com/plotly/plotly.js/milestone/2 - Fix
scattergl
marker.colorscale handling [#2258] - Fix ternary relayout calls involving axis tick styles and titles [#2200]
- Fix decimal and thousands settings in
de
locale [#2246] - Make scroll handler passive, removing those annoying console warnings [#2251]
v1.32.0
Our blog post outlining some of these features: https://medium.com/@plotlygraphs/notes-from-the-latest-plotly-js-release-b035a5b43e21. The full list of changes is below.
Added
- Add localization machinery [#2195, #2207, #2210, #2232],
including an official German translation (localede
) [#2217] - Add
violin
trace type [#2116] - Add
selected
andunselected
attribute containers to customize selection states [#2135] - Add support for multi-selections [#2140]
- Add layout
colorway
to custom the trace-to-trace color sequence [#2156] - Add
tickformatstops
to set tick format per cartesian axis range [#1965] - Add hover labels and selections to box points [#2094]
- Histogram events & bin hover label improvements [#2113]
- Add support for aggregation in
pie
traces [#2117] - Add annotations
startarrowhead
,arrowside
,startarrowsize
andstartstandoff
attributes [#2164] - Add
zhoverformat
to formatz
values inheatmap
,contour
and 2d histogram traces [#2106, #2127] - Add
marker.opacity
to bar traces [#2163] - Add
Cividis
colorscale [#2178] - Implement transform inverse mapping [#2126, #2162]
Changed
- Selections are now persistent [#2135]
- Make subplot initialization and removal more robust and consistent [#2227]
- Share WebGL context between
gl2d
andparcoords
subplots [#2159, #2238] - Rename Save and edit plot in cloud mode bar button Edit in Chart Studio [#2183]
- Minify bundles using
minify-stream
instead of UglifyJS2 [#2187] - Update header for new year 2018 [#2231]
- Remove
type="text/javascript"
from<script>
tags present in our docs and test utilities [#2217]
Fixed
- Fix right-click handling [#2241]
- Miscellaneous fixes for
table
traces [#2107, #2182] - Fix horizontal legend items alignment edge case [#2149]
- Fix shape and updatemenu layering [#2121]
- Fix bar with error bar with set
ids
edge case [#2169] - Fix
cliponaxis: false
for non linear cartesian axes [#2177] - Fix heatmap non-uniform brick gaps problem [#2213]
- Fix choropleth selection when
visible: false
trace are present on graph [#2099, #2109] - Fix yet another contour drawing bug [#2091]
- Clean up pie event data [#2117]
- Fix scatter + bar hover edge cases [#2218]
- Allow hover labels to extend to edges of graph area [#2215]
- Harden location-to-feature against non-string country names for geo subplot [#2122]
- Remove obsolete
smith
attribute from plot schema [#2093] - Fix colorbar class name [#2139]
- Make
Plotly.Plots.resize
accept graph ids (as well as graph divs) [#2212]
v1.32.0-onprem
N.B. This release is an incomplete version of v1.32.0
. It is not published on npm.
Based of plotly.js v1.31.2
with these additions:
Added
- Add
tickformatstops
to set tick format per cartesian axis range [#1965] - Add hover labels and selections to box points [#2094]
- Histogram events & bin hover label improvements [#2113]
- Add support for aggregation in
pie
traces [#2117] - Add
zhoverformat
to formatz
values inheatmap
,contour
and 2d histogram traces [#2106, #2127] - Implement transform inverse mapping [#2126]
Fixed
- Miscellaneous fixes for
table
traces [#2107, 14bc19a] - Fix shape and updatemenu layering [#2121]
- Fix choropleth selection when
visible: false
trace are present on graph [#2099, #2109] - Fix yet another contour drawing bug [#2091]
- Clean up pie event data [#2117]
- Harden location-to-feature against non-string country names for geo subplot [#2122]
- Remove obsolete
smith
attribute from plot schema [#2093]
v1.31.2
v1.31.1
Fixed
- Fix IE and Edge SVG
toImage
support [#2068] - Return empty set during selections of
visible: false
traces [#2081] - Fix scroll glitch in
table
traces [#2064] - Fix handling of 1D header values in
table
[#2072] - Fix
table
line style defaults [#2074] - Do not attempt to start drag on right-click [#2087]
- Phase out
alignment-baseline
attributes in SVG text nodes [#2076] - Listen to document events on drag instead of relying on cover-slip node [#2075]
v1.31.0
Added
- Add
table
trace type [#2052] - Add
geo.center
making geo views fully reproducible using layout attributes [#2030] - Add lasso and select-box drag modes to
scattergeo
andchoropleth
traces [#2030] - Add lasso and select-box drag modes to
bar
andhistogram
traces [#2045] - Add
scale
option toPlotly.toImage
andPlotly.downloadImage
[#1979] - Add
plot-schema.json
todist/
[#1999]
Changed
- Throttle lasso and select-box events for smoother behavior [#2040]
- Harmonize gl3d and gl2d zoom speed with cartesian behavior [#2041]
Fixed
- Fix numerous
restyle
andrelayout
bugs [#1999] - Fix handling of extreme off-plot data points in scatter lines [#2060]
- Fix
hoverinfo
array support forscattergeo
,choropleth
,scatterternary
andscattermapbox
traces [#2055] - Fix
Plotly.plot
MathJax promise chain resolution [#1991] - Fix legend double-click trace isolation behavior for graphs with
visible: false
traces [#2019] - Fix legend visibility toggling for traces with
groupby
transforms [#2019] - Fix single-bin histogram edge case [#2028]
- Fix autorange for bar with base zero [#2050]
- Fix annotations arrow rendering when graph div is off the DOM [#2046]
- Fix hover for graphs with
scattergeo
markers outside 'usa' scope [#2030] - Fix handling of cross anti-meridian geo
lonaxis
ranges [#2030] - Fix miter limit for lines on geo subplots [#2030]
- Fix
marker.opacity
handling forscattergeo
bubbles [#2030] - Fix layout animation of secondary axes [#1999]
- Fix
sankey
hover text placement for emptylink.label
items [#2016] - Fix
sankey
rendering of nodes with very small values [#2017, #2021] - Fix
sankey
hover label positioning on pages that style the 'svg-container' div node [#2027] - Fix aggregation transforms restyle calls [#2031]