From 5cd0d8ef8389aa071118030707fd35f7d7d3b778 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 4 Jul 2022 07:38:35 -0400 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 16 ++++++++++++++++ README.md | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54cff3fd79..2434e0ac03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Observable Plot - Changelog +## 0.5.2 + +*Not yet released. These are forthcoming changes in the main branch.* + +Swatches legends are now rendered in SVG, supporting patterns and gradients. Swatches legends now require an ordinal color scale and will throw an error if you attempt to use them with a non-ordinal color scale (such as a linear or diverging scale). + +The new top-level **document** option specifies the [document](https://developer.mozilla.org/en-US/docs/Web/API/Document) used to create plot elements. It defaults to window.document, but can be changed to another document, say when using a virtual DOM library for server-side rendering in Node. + +Plot now uses D3 7.6.1, using [d3.blur2](https://observablehq.com/@d3/d3-blur) for a faster blur operator supporting fractional bandwidths when computing density contours. + +Plot now uses a duck test to detect marks (rather than strict instanceof), allowing marks from different versions of Plot to be combined into a single plot. + +Plot is now partially written in TypeScript. In the future, Plot will be written entirely in TypeScript and will export TypeScript type definition files to assist Plot development. + ## 0.5.1 [Released June 27, 2022.](https://github.com/observablehq/plot/releases/tag/v0.5.1) @@ -69,6 +83,8 @@ Fix a bug where arrow heads would not render correctly when the **strokeWidth** Improve the error message when the **facet** option is used without **data**. Throw an error if initializers attempt to create position scales. Throw an error if an implicit ordinal position domain has more than 10,000 values. +[breaking] Plot now requires [D3 ^7.5.0](https://github.com/d3/d3/releases/tag/v7.5.0). + ## 0.5.0 [Released June 7, 2022.](https://github.com/observablehq/plot/releases/tag/v0.5.0) diff --git a/README.md b/README.md index 228e681022..89bfb71327 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ Plot.plot({ The generated SVG element has a random class name which applies a default stylesheet. Use the top-level **className** option to specify that class name. -The **document** option specifies the [document](https://developer.mozilla.org/en-US/docs/Web/API/Document) used to create plot elements. It defaults to window.document, but can be changed to another document, way when using a virtual DOM library for server-side rendering in Node. +The **document** option specifies the [document](https://developer.mozilla.org/en-US/docs/Web/API/Document) used to create plot elements. It defaults to window.document, but can be changed to another document, say when using a virtual DOM library for server-side rendering in Node. ### Scale options