Skip to content

v2.2.1 (2023-02-16)

Latest
Compare
Choose a tag to compare
@mirabilos mirabilos released this 16 Feb 23:24
· 7 commits to master since this release
v2.2.1
e0dfac9

Future incompatibilities

  • window.smoothPlotter will not be set by extras/smooth-plotter.js any more RSN

New features

  • Permit initialising with [] as “no data yet” indicator (#597)
  • The modularisation of the test setup also allows stable access to exported functions (e.g. Dygraph._require('dygraphs/src/dygraph-utils.js').numberValueFormatter) which makes writing one’s own value formatters easier (as usual, proceed with care, exports with an underscore are internal); see https://dygraphs.com/tests/exported-symbols.html for the exposed surface
  • Provide Dygraph.onDOMready(cb) as lightweight jQuery(cb)/… alternative, to keep the demos/tests self-contained

Bugfixes

  • Fix synchroniser not calling user’s drawCallback when blocked (#953) plus do not redraw unnecessarily
  • Documentation fixes and improvements including self-checks where possible
  • Fix missing legend for x == -1 (#1002)
  • Allow ES6-importing the extras (#848) (#989) (#1009)
  • Fix broken zoom also in the drawing test (same as #611/#953)
  • Resetting panEdgeFraction now works
  • Fix tests/unboxed-spark regression caused by PR #936
  • Synchroniser doesn’t force x axis range if unzoomed (#956)

Other user-visible changes

  • Fix issue #611 in the drawing demo gallery (#953)
  • jq is now also required to build
  • Fix typos, wordings, apostrophes, etc.
  • Export pickDateTickGranularity so overriding dateTicker is easier
  • Error bars are now properly called high/low bands (#1004), but the options stay the same for compatibility
  • Document annotations xval for Date better (#970)
  • Document more strongly that series labels must be unique (#960)
  • Remove references to nōn-existing yAxisLabelWidth option
  • Fix jsFiddle links from gallery

Internal refactors/fixes

  • Shrink tests.js source map and make its build reproducible on Debian
  • tests/resizable.html exposes the graph object, for quick F12 in-browser use
  • Generate versions.html and release notes from new top-level CHANGES.md
  • Modularise dygraphs/tests setup so we can now also test the minified prod css/js (#1028)
  • Generate stable orig tarballs for releases ourselves (we still use the NPM ones for binary tarballs)
  • Less fragility with arrow function this rebinding check