Releases: observablehq/plot
Releases · observablehq/plot
v0.2.6
v0.2.5
Please see the 0.2.5 release notes for more!
- Add plot.scale(name) for exposing a scale used by a plot.
- Add scale.unknown option for control over unexpected, undefined, or invalid values.
- Add support for piecewise (or “polylinear”) scales.
- Improve “reversed” scale detection by comparing the natural order of the domain and range.
- The scale.range option now be used to produce a slice of a continuous color scheme or interpolator.
- Fix ordinal color schemes when the natural scheme size is different than the desired scheme size.
- Fix cyclical color schemes for ordinal scales; don’t repeat the first color as the last.
- The interval option for rect and bar now supports the default identity accessor for shorthand.
- The interval option is now ignored if the corresponding input channel (x or y) is missing, instead of erroring.
- Plot’s default rounding for band and point scales is now disabled if it would introduce more than 30px of empty space.
- The scale.percent and scale.transform options are now supported on all scales, including diverging scales.
- The center and wiggle stack offsets now center across facets to facilitate comparison.
- Plot’s internal string coercion now uses object.toString instead of object.valueOf.
- Many more tests!
v0.2.4
v0.2.3
Please see the 0.2.3 release notes for more!
- Add interval option to rect, bar, and rule marks. #550
- Add Plot.normalize. #551
- Add Plot.window. #551
- Update D3 to 7.0.4.
v0.2.2
v0.2.1
Please see the 0.2.1 release notes for details and examples!
- All marks now support dx and dy options for offsetting position.
- Quantitative scales, as well as identity position scales, now coerce channel values to numbers.
- Temporal scales now coerce channel values to dates.
- Bin reducers now receive the extent of the current bin (x1, x2, y1, y2) as an argument.
- The bin transform no longer outputs x1 and x2 channels if x is undefined, and similarly for y, y1, and y2.
v0.2.0
Please see the 0.2.0 release notes for details and examples!
- Plot is now published as an ES module.
- Plot now requires Node 12 or higher.
- Plot now depends on D3 7 or higher.
- The new Plot.marks(...marks) method provides mark.plot shorthand for array marks.
- The plot marks option now accepts render functions, null, or undefined as shorthand marks.
- All marks now support a shapeRendering (constant) option.
- The mark strokeWidth option can now be specified as a channel.
- The text stroke and strokeWidth options can now be specified as channels.
- The line stroke option now defaults to none if a fill is set.
- When a link’s fill or fillOpacity channel contains undefined values, they are now filtered.
- When a rule’s stroke or strokeOpacity channel contains undefined values, they are now filtered.
- The text mark now uses attributes instead of styles for font rendering properties.
- Rect, bar, and rule now handle collapsed domains during rendering.
- The link and rect marks now support one-dimensional shorthand.
- The new mark sort option allows ordinal domain order to be derived from data.
- The new threshold and quantile scale types can be used to discretize continuous data.
- The diverging scale can now produce symmetric apparent differences around the pivot (and will by default).
- The new axis line option can be used to draw a continuous line along the x or y axis.
- The axis and label options can now be set at the top level (or facet level).
- The mark facet = null option allows faceting to be disabled for a specific mark, if desired.
- The new facet = include mode allows a mark with parallel data to be faceted.
- The new facet = exclude mode allows a mark to show all data not in the current facet.
- The bin and group transforms now support filter, sort, and reverse options.
- The bin and group transforms outputs argument is now optional.
- The bin and group transforms now support distinct, mode, min-index, and max-index reducers.
- The bin transform now supports thresholds = auto (default), which applies a cap of 200 to Scott’s rule.
- The normalize, window, and stack transforms now accept explicit options to disambiguate from inputs.
- The stack transform’s offset option has been renamed to offset = {normalize, center, wiggle, null}.
- The window transform’s shift option has been renamed to anchor = {middle, start, end}.
- The basic transforms are now available as explicit option transforms: Plot.filter, Plot.sort, and Plot.reverse.
- Various error messages have been improved.
Note: Plot 0.1 is currently the default version on Observable. Plot 0.2 will be available shortly.