Skip to content

Releases: plotly/plotly.js

v1.14.0

23 Jun 03:12
Compare
Choose a tag to compare

Added

  • Attribute line.color in scatter3d traces now support color scales [#617]
  • Annotations tail positions can now be set in data coordinates via the new
    axref and ayref attributes [#610]
  • Attribute hoveron is added for scatter and scatterternary traces which
    adds the option to show hover labels about fill regions (instead of simply of
    about data points) [#673]
  • Layout shapes can now be moved and resized (except for 'path' shapes) in
    editable contexts [#660]

Changed

  • Numerous additions and changes where made to the mapbox layout layers
    attributes (introduced in 1.13.0). Namely, circle and symbol layer type
    where added. Note that some style attributes have been renamed to match the
    mapbox-gl API more closely. [#681]

Fixed

  • Off-screen heatmap traces are properly deleted (bug introduced in 1.5.1)
    [#655]
  • Hover labels for multi-heatmap subplot is functional again (bug introduced in
    1.4.0) [#655]
  • Heatmap x/y brick generation is now functional for 0 and 1 item columns [#651]
  • Multiple layout images can now shared the same image source [#672]
  • Updating legend border and bgcolor attribute now works via Plotly.relayout
    [#652]
  • Dragmode 'select' and 'lasso' no longer throw exception when selecting
    legendonly traces [#644]
  • Ternary plots now respect the staticPlot config option [#645]
  • Descriptions for axes nticks and contour traces ncountoursnow properly
    describe their behavior [#662]

v1.13.0

13 Jun 22:30
Compare
Choose a tag to compare

Added

  • Beta version of the scattermapbox trace type - which allows users to create
    mapbox-gl maps using the plotly.js API. Note that scattermapbox is only
    available through custom bundling in this release [#626]
  • Configurable log levels. All plotly.js logging is now turned off by default.
    Use Plotly.setPlotConfig({ logging: /* 1 or 2 */ }) to (1) display warnings
    only or (2) all logs [#590]
  • Thorough mesh3d attribute descriptions [#593]

Changed

  • Generalize hover picking routine (to make more easily re-usable for other plot
    types) [#575, #631]

Fixed

  • Fix Plotly.toImage and Plotly.downloadImage bug specific to Chrome 51 on
    OSX [#604]
  • Fix Plotly.downloadImage for svg types [#604]
  • Fix scattergl opacity and connectgaps for 'lines' mode [#589]
  • Make legend scroll bar keep its position after redraws [#584]
  • Properly handle axis-reference shapes on overlaid axes [#612]
  • Fix Plotly.relayout calls for layout.images in { astr: val } notation
    [#624]
  • Bring back correct default value for lightposition in surface traces (bug
    introduced in 1.12.0) [#571]
  • Fix typos in contours descriptions in contour traces [#583]
  • Fix typos in axis.ticktext description [#607]
  • Fix ambiguities in histogram nbin descriptions [#623]

v1.12.0

26 May 20:03
Compare
Choose a tag to compare

Added

  • Light positions, face normal epsilon and vertex normal epsilon are now
    configurable in mesh3d traces [#556]
  • Light position is now configurable in surface traces [#556]
  • surface and mesh3d lighting attributes are now accompanied with
    comprehensive descriptions. [#556]

Changed

  • Plot modules are now allowed to have their own toSVG method for
    subplot-specific to-svg logic [#554]

Fixed

  • gl2d plots are now functional in core-js environments (e.g. in babel es6
    presets) [#569]
  • gl2d replot calls from a blank plot are now functional [#570]
  • SVG graph config argument scrollZoom is now again functional (bug introduced
    in v1.10.0) [#564]
  • layout.separators is now honored in pie text labels [#547]
  • Heatmap zsmooth value 'fast' is now functional for arbitrary layout widths
    [#548]
  • Range sliders now respond to all axis range relayout calls [#568]

v1.11.0

17 May 19:01
Compare
Choose a tag to compare

Added

  • Add top-level methods Plotly.toImage to convert a plotly graph to an image
    data URL (svg, png, jpg, and webp are supported) and Plotly.downloadImage to
    download a plotly graph as an image [#446]
  • Add the ability to add arbitrary images loaded from a url to a plot's layout
    [#525]
  • Add the option of making legend span horizontally [#535]
  • Add connectgaps attribute to scattergl traces [#449]
  • Add new 'relative' bar mode which stacks on top of one another with negative
    values below the axis, positive values above [#517]
  • Add support for the 'winkel tripel' projection in geo subplots [#492]
  • Event plotly_relayout is now emitted on gl2d subplot drag/pan/zoom
    interactions [#466]
  • Add support for fill coloring in contourgl traces [#522, #543]

Changed

  • Cartesian on-hover routine is now uses a 50ms interval between search calls
    instead of 100ms for smoother displaying hover labels [#514]
  • [Internal change] fullLayout _has fields are replaced by a _has method
    which checks if a particular plot type is present on a graph [#491]

Fixed

  • Bar widths of traces with null coordinates are now correctly computed [#542]
  • Error bar spans on bar traces with null coordinates are now correctly computed
    [#542]
  • All promises spawn in Plotly.plot are now guaranteed to be resolved before
    the final resolve [#521]
  • Restyling scatterternary data attributes is now working [#540]
  • Error bar of 0 length in log axes are not included in hover labels (instead of
    showing NaNs) [#533]

v1.10.2

05 May 17:11
Compare
Choose a tag to compare

Fixed

  • Subplot and range slider clip paths are now functional in AngularJS (bug introduced in 1.10.0) [#509]
  • relayout call involving axis categoryorder and categoryarray are now
    working [#510]
  • Annotation drag interactions in editable: true mode are now functional (bug
    introduced in 1.10.0) [#505]
  • Improved attribute description for shape xref and yref [#506]

v1.10.1

02 May 15:38
Compare
Choose a tag to compare

Fixed

  • Resizing a graph (e.g. via Plotly.relayout or Plotly.Plots.resize)
    properly updates the plot area clip paths (bug introduced in 1.10.0) [#490]
  • Plotly.Snapshot.toSVG is now functional again in IE11 and old version of
    Chrome and FF (bug introduced in 1.10.0) [#489]
  • Hover labels of superimposed traces when 'hovermode' is set to 'closest' are
    properly displayed (bug introduced in 1.10.0) [#495]
  • Surface contour highlights are toggleable [#459]
  • Surface contour highlights style attributes are lower cased [#459]
  • Zoom overlay are drawn over shapes [#448]
  • Legend are draggable in editable: true contexts (bug introduced in 1.6.0)
    [#487]
  • Legend scroll box are drawn outside the legend [#478]

v1.10.0

26 Apr 01:06
Compare
Choose a tag to compare

Added

  • Beta version of two new 2D WebGL trace types: heatmapgl and contourgl
    [#427, #434]
  • Two new scatter line fill modes: 'toself' and 'tonext' [#462]
  • Fills for scatterternary traces are now supported [#462]
  • Configurable axis category ordering with categoryorder and an optional
    categoryarray axis attributes [#419]
  • Configurable shapes layer position with shape attribute layer [#439]
  • Configurable range slider range (so that the initial xaxis range can differ
    from the range slider range) [#473]

Changed

  • Nested SVG elements in SVG image exports are removed, making the to-image mode
    bar button work in RStudio and SVG export compatible with Adobe Illustrator
    [#415, #454, #442]
  • Use country-regex npm package instead of hard-coded file of ISO-3 code to
    country regular expressions [#461]

Fixed

  • Legend positioning does not break on negative x and y settings (bug
    introduced in 1.6.0) [#417]
  • Shapes are properly deleted when clearing all of them at once (bug introduced
    in 1.9.0) [#465]
  • Promise are return after first render in gl3d and gl2d plots [#421]
  • Click and hover events are properly triggered when trace hoverinfo is set to
    'none' [#438]
  • plotly_unhover events is now properly triggered on geo trace types [#429]
  • plotly_relayout event is now properly triggered on gl3d set camera [#458]
  • RGBA colors are now supported in scatter and bar custom color scales
    [#422]
  • Range slider is now functional with x0/dx data [#441]
  • Range slider is now compatible with mode bar axis range buttons and double
    click [#471]

v1.9.0

12 Apr 22:11
Compare
Choose a tag to compare

Added

  • Ternary plots with support for scatter traces (trace type scatterternary) [#390]

Fixed

  • Toggling the visibility of scatter3d traces with surfaceaxis now works [#405]
  • scatter3d traces with surfaceaxis turned now feature real 3D opacity [#408]
  • plotly_unhover is now properly triggered over pie traces [#407]
  • Better grammar in scatter attribute descriptions [#406]

v1.8.0

04 Apr 20:44
Compare
Choose a tag to compare

Added

  • Range slider functionality for scatter traces [#336, #368, #377]
  • Range selector functionality for cartesian and gl2d plot types [#373]
  • Support for connectgaps in scatter3d traces [#361]

Fixed

  • gl2d toImage mode bar button is now again functional (bug introduced in 1.7.0) [#369]
  • IE / Edge handling of getComputedTextLength is now functional [#376]
  • improved marker color attribute description [#366]

v1.7.1

30 Mar 14:18
Compare
Choose a tag to compare

Fixed

  • Legend dimensions are correctly updated (bug introduced in 1.7.0) [#365]
  • Friction between cartesian double-click and drag interactions is reduced [#355]
  • Ultra-zoomed svg line paths are correctly computed [#353]
  • Initial axis ranges are no longer reset on data-updating restyle calls [#351]
  • Events now work in jQuery no-conflict scopes (bug introduced in 1.7.0) [#352]