diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cd26467c2..616499268b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Year: **Current (2024)** · [2023](./CHANGELOG-2023.md) · [2022](./CHANGELOG-2022.md) · [2021](./CHANGELOG-2021.md) +## 0.6.15 + +[Released June 11, 2024.](https://github.com/observablehq/plot/releases/tag/v0.6.15) + ## 0.6.14 [Released March 12, 2024.](https://github.com/observablehq/plot/releases/tag/v0.6.14) diff --git a/docs/features/formats.md b/docs/features/formats.md index 36d65d0bfc..ee8673279b 100644 --- a/docs/features/formats.md +++ b/docs/features/formats.md @@ -9,7 +9,7 @@ import * as d3 from "d3"; These helper functions are provided for convenience as a **tickFormat** option for the [axis mark](../marks/axis.md), as the **text** option for a [text mark](../marks/text.md), or other use. See also [d3-format](https://d3js.org/d3-format), [d3-time-format](https://d3js.org/d3-time-format), and JavaScript’s built-in [date formatting](https://observablehq.com/@mbostock/date-formatting) and [number formatting](https://observablehq.com/@mbostock/number-formatting). -## formatNumber(*locale*) {#formatNumber} +## formatNumber(*locale*) {#formatNumber} ```js Plot.formatNumber("en-US")(Math.PI) // "3.142" diff --git a/docs/features/intervals.md b/docs/features/intervals.md index 835c8d7c22..f631ecdea0 100644 --- a/docs/features/intervals.md +++ b/docs/features/intervals.md @@ -5,7 +5,7 @@ import * as d3 from "d3"; -# Intervals +# Intervals Plot provides several built-in interval implementations for use with the **tick** option for [scales](./scales.md), as the **thresholds** option for a [bin transform](../transforms/bin.md), or other use. See also [d3-time](https://d3js.org/d3-time). You can also implement custom intervals. diff --git a/docs/marks/tip.md b/docs/marks/tip.md index a943088326..f4ccdaed37 100644 --- a/docs/marks/tip.md +++ b/docs/marks/tip.md @@ -131,7 +131,7 @@ Plot.rectY(olympians, Plot.binX({y: "sum"}, {x: "weight", y: (d) => d.sex === "m ``` ::: -The order and formatting of channels in the tip can be customized with the **format** option , which accepts a key-value object mapping channel names to formats. Each [format](../features/formats.md) can be a string (for number or time formats), a function that receives the value as input and returns a string, true to use the default format, and null or false to suppress. The order of channels in the tip follows their order in the format object followed by any additional channels. When using the **title** channel, the **format** option may be specified as a string or a function; the given format will then apply to the **title** channel. +The order and formatting of channels in the tip can be customized with the **format** option , which accepts a key-value object mapping channel names to formats. Each [format](../features/formats.md) can be a string (for number or time formats), a function that receives the value as input and returns a string, true to use the default format, and null or false to suppress. The order of channels in the tip follows their order in the format object followed by any additional channels. When using the **title** channel, the **format** option may be specified as a string or a function; the given format will then apply to the **title** channel. A channel’s label can be specified alongside its value as a {value, label} object; if a channel label is not specified, the associated scale’s label is used, if any; if there is no associated scale, or if the scale has no label, the channel name is used instead. diff --git a/package.json b/package.json index b875fe73c4..879dfdd35a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@observablehq/plot", "description": "A JavaScript library for exploratory data visualization.", - "version": "0.6.14", + "version": "0.6.15", "author": { "name": "Observable, Inc.", "url": "https://observablehq.com"