Releases: observablehq/plot
Releases · observablehq/plot
v0.6.6
Plot has a new documentation website! 👉 https://observablehq.com/plot 👈
Please see the 0.6.6 release notes for more!
- Add r and rotate options to the image mark.
- Add Plot.indexOf.
- Fix how the axis mark handles the margin option.
- Fix axis labels when using the href and other channel options.
- Fix imputed facet scale domains in conjunction with the sort mark option and limit.
- Fix a spurious warning when faceting and using non-array data.
- Fix the floating point precision of the interval scale option when a fractional number.
- Assume a high pixel density display during headless rendering.
- Deterministically generate the default className (currently
plot-d6a7b5
). - Legends now inherit the plot’s className option.
- The density mark now respects the plot’s document option.
- The caption option now uses a duck test instead of testing against the global Node.
v0.6.5
Please see the 0.6.5 release notes for more!
- TypeScript! 🎉 Plot now exports TypeScript type declarations. #401 #1320 #1343
- Channels now opt-out of the opacity scale by default when all values are numbers in the range [0, 1]. #1310
- Channel-derived scale domains now handle non-orderable values. #1348
- Channel-derived scale domains now handle duplicate values. #1314
- Channel-derived scale domains now handle mark transforms. #1315 #1316
- Channel values may now be specified as bigints, which are coerced to numbers. #1299
- Color legends now support the opacity option. #1407
- Quantile scales no longer error if there are no valid associated values. #1322
- The nice scale option can now be specified as a named time interval such as day or week. #1332
- The unknown scale option is now supported on quantile scales. #1321
- The text mark no longer crashes when a NaN tick value is specified for an axis. #1335
- The raster mark now supports scale overrides. #1318
- The axis mark now correctly handles custom interval implementations. #1332
- Add quarter and half named time intervals. #1312
- Add identity reducer for the bin and group transform. #1382
- Plot.auto now draws a zero rule by default in conjunction with the rule mark, when appropriate. #1341
- Plot.auto now renders correctly when a non-zero reduce is used in conjunction with the bar mark. #1368
- Plot.auto now renders correctly in some cases when the zero option is specified. #1368
- Plot.auto’s zero option no longer changes the default mark type. #1368
- Plot.autoSpec now materializes the zero option. #1368
- The bin and group transforms no longer misinterpret scale overrides as reducers. #1367
- The reduce and map implementations now expect reduceIndex and mapIndex methods. #1367
- The className option now allows mixed-case class names. #1347
v0.6.4
Please see the 0.6.4 release notes for more!
- Add top-level aspectRatio option. #837
- Add textOverflow option for the text mark. #1283
- Add imageRendering option for the image mark. #1267
- Add facetAnchor empty option. #1287
- Add the curve auto option for the link mark to respect the current projection. #1296
- Add Plot.autoSpec. #1284
- Allow per-channel scale overrides. #1247
- Allow bin options to be specified with Plot.auto. #1277
- Fix Plot.auto to only default to the bar mark if x or y is zeroed. #1273
- Fix Plot.auto’s support for the area mark. #1275
- Fix Plot.auto’s use of the bar mark with possibly ordinal reducers. #1276
- Fix erroneous interpretation of arrays as reducers. #1275
- Fix a crash coercing BigInt values to numbers. #1279
- Fix a crash with facet exclude on a non-faceted mark. #1282
- Improve a few scale-related error messages. #1298
- Improve the accuracy of text metrics for combining marks and emoji character sequences. #1283
- Remove unnecessary coercion when inferring log scale domains. #1280
v0.6.3
Please see the 0.6.3 release notes for more!
- Add auto mark. #1238
- Add axis and grid marks. #1197
- Add anchor option for the frame mark. #1241
- Add mark.facetAnchor option. #1197
- Add mark margin options for affecting the plot’s default margins. #1197
- The x and y axes now automatically repeat in empty facets. #1197
- The text mark now supports soft hyphenation. #1197
- Fix a crash with the raster mark when using an identity color scale. #1237
- Fix the voronoi mark’s handling of the target, mixBlendMode, and opacity options. #1259
v0.6.2
Please see the 0.6.2 release notes for more!
- Add raster and contour marks. #1196
- Add shape option to vector mark. #1189
- Add spike convenience constructor. #1189
- Add centroid and geoCentroid transforms. #1189
- Add identity helper.
- Add named time intervals. #1205
- Greatly improve the performance of the bin transform. #1225
- Fix descending domains on diverging scales. #1188
- Fix frame clip option for band scales. #1204
- Fix a crash when a facet scale’s domain includes a value for which there is no corresponding facet data. #1216
- Limit generated SVG path data to three fractional digits. #1193 #1203
- Add a helpful error when the stack order option is used without a z channel. #1209
- Fix the group, bin, and hexbin transforms to ignore undefined outputs. #1230
v0.6.1
Please see the 0.6.1 release notes for more!
- Add geo mark for rendering GeoJSON geometries.
- Add graticule and sphere convenience geo marks.
- Add top-level projection option for projecting geographic (and other) coordinate systems.
- Add auto curve to the line mark for projecting lines.
- Add mark.fx and mark.fy options for mark-level faceting.
- Fix the fx and fy scales to support the scale.transform and scale.percent options.
- Fix quantize scales to support the scale.unknown option.
- Fix initializer transforms to not drop the mark.sort option when used to sort a scale’s domain.
- Fix spurious warning about empty strings appearing to be numbers.
- Fix the mean and median reducers to return dates if the data is temporal.
- Fix the default height to adjust when margins are specified.
- Fix the position of the frame anchor when either the x or y scale is ordinal (band or point).
- Fix the dot mark to not render when a negative constant radius r is specified.
- Improve the error message when an invalid color scheme is specified.
v0.6.0
Please see the 0.6.0 release notes for more!
- [breaking] The window transform now defaults to non-strict, returning an aggregate value even when the window contains undefined values.
- The window transform now supports a strict option.
- The non-minified bundle now includes JSDoc comments from the README.
- TypeScript source files are now included in the published package.
v0.5.2
Please see the 0.5.2 release notes for more!
- Swatches legends now support patterns and gradients. #970 #805
- Swatches legends now require an ordinal or threshold color scale. #971 #844
- Plot now supports a top-level document option. #969 #848
- Plot now uses D3 7.6.1 and supports fractional bandwidths for density contours.
- Plot now uses a duck test to detect marks, rather than strict instanceof. #967
- Plot is now partially written in TypeScript. #880
v0.5.1
Please see the 0.5.1 release notes for more!
- Add density mark. #943 #948 #954 #958
- Add linear regression marks. #945
- Add Delaunay and Voronoi marks. #917 #931
- Add scale.interval option. #849
- Add mark pointerEvents option. #917
- The frame mark now supports the rx and ry options for rounded corners. #951
- The cell mark now respects the dx and dy options for offsets. #956
- Fix a bug where arrow heads would not render correctly when the strokeWidth was exactly one. #922 #923
- Fix the scale.zero option when the domain is negative. #934
- Fix the clip mark option when x or y is a band scale. #950
- Fix the fill color of text marks using the href option. #940
- Fix a crash in the bar and tick mark when the associated band scale is not present. #939
- Use element.appendChild instead of element.append for better compatibility. Thanks, @jkenzer! #953 #957
- Improve the error message when the facet option is used without data. #938
- Throw an error if initializers attempt to create position scales. #939
- Throw an error if an implicit ordinal position domain has more than 10,000 values. #858
v0.5.0
Please see the 0.5.0 release notes for more!
- [breaking] Color scales with diverging color schemes now default to diverging instead of linear. #845
- [breaking] Change the return signature of the internal mark.initializer method. #801
- Add mark initializers via the initializer option. #801
- Add hexbin transform. #801
- Add dodge transform. #801
- Add circle mark. #801
- Add hexagon mark. #801
- Add hexgrid mark. #801
- The sort transform now accepts channels as input. #801
- The dot mark now sorts by descending radius by default. #801
- The dot and text marks now support the interval option. #627
- Improve performance of internal array operations and type coercion. Thanks, @yurivish! #801
- Fix crash with area mark shorthand. #851
- The ruleX mark now supports the dx and dy options. #856
- Fix top-level zero scale option. #890
- Fix font variant for axis labels and ramp legends. #911 #912
- Fix the sort option with the box mark. #910