Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Sep 13, 2023
1 parent 58ffdcb commit e9279e4
Showing 1 changed file with 33 additions and 24 deletions.
57 changes: 33 additions & 24 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Year: **Current (2023)** · [2022](./CHANGELOG-2022.md) · [2021](./CHANGELOG-20

[Released September TK, 2023.](https://github.com/observablehq/plot/releases/tag/v0.6.11)

The new **format** option controls the order and formatting of the [tip mark](https://observablehq.com/plot/marks/tip)’s channels.
The new **format** option controls the order and formatting of the [tip mark](https://observablehq.com/plot/marks/tip)’s channels. ([#1823](https://github.com/observablehq/plot/pull/1823))

The **format** option is an key-value object mapping channel names to formats; each [format](https://observablehq.com/plot/features/formats) can be a string (to format numbers or dates with the respective number or time format), or a function that receives the value as input and returns a string. Use null or false to suppress the channel. The order of channels in the tip follow their order in the format object. Channels that have not been listed in the format object are appended. (Custom channels can be specified, as usual, with the **channels** option.) The name of the channel can be specified by giving a label to the corresponding scale, or defining it as an object with a **value** and a **label**, or simply by the name given in the **channels** option.
The **format** option is an key-value object mapping channel names to formats; each [format](https://observablehq.com/plot/features/formats) can be a string (to format numbers or dates with the respective number or time format), or a function that receives the value as input and returns a string. Use null or false to suppress the channel. The order of channels in the tip follow their order in the format object. Channels that have not been listed in the format object are appended. (Custom channels can be specified, as usual, with the **channels** option.) The name of the channel can be specified by giving a label to the corresponding scale, or defining it as an object with a **value** and a **label** ([#1838](https://github.com/observablehq/plot/pull/1838)), or simply by the name given in the **channels** option.

The **tip** mark option can now be an object of options to pass to the derived tip mark. These options include a new **pointer** option to control which pointer mode is used (_x_, _y_, or _xy_, for pointerX, pointerY, or pointer respectively).

Expand All @@ -29,29 +29,38 @@ Plot.dot(cars, {
_In the chart above, the start custom channel is formatted as a duration in seconds, followed by the y channel formatted as a floating-point number with two decimal places. The x channel is suppressed._


Ordinal axes generated from a temporal or quantitative scale do now generalize their scale’s interval (if specified), resulting in more readable ticks. For instance, a bar chart representing, says, one value per month over the course of 5 years might be represented with 5 ticks indicating the beginning of each year, or by 10 ticks indicating January and July, depending on the desired number of ticks. The generalization returns non-ambiguous intervals: for example, days can be generalized to weeks or months, but weeks can only be generalized into multiple weeks — not months or years since those are not multiples of 7 days. ([#1790](https://github.com/observablehq/plot/pull/1790))

- better ordinal axes with intervals ([#1790](https://github.com/observablehq/plot/pull/1790))
- channel label override ([#1838](https://github.com/observablehq/plot/pull/1838))
- empty bins fall back on the first element of their group ([#1837](https://github.com/observablehq/plot/pull/1837))
- pass fontVariant to the axis label ([#1827](https://github.com/observablehq/plot/pull/1827))
- fix symbol set hint when fill is a constant currentColor ([#1830](https://github.com/observablehq/plot/pull/1830))
- the denseInterval option for k must also reduce k1 and k2 if present ([#1828](https://github.com/observablehq/plot/pull/1828))
- fix tip flicker ([#1826](https://github.com/observablehq/plot/pull/1826))
- exclusiveFacets ([#1649](https://github.com/observablehq/plot/pull/1649))
- expose a deduplicated ordinal domain ([#1813](https://github.com/observablehq/plot/pull/1813))
- expose instantiated scales descriptors in the render API ([#1810](https://github.com/observablehq/plot/pull/1810))

Tests
- tests for coverage ([#1825](https://github.com/observablehq/plot/pull/1825))
- document test:coverage ([#1820](https://github.com/observablehq/plot/pull/1820))
- Add test coverage ([#1818](https://github.com/observablehq/plot/pull/1818))
- compare image data ([#1807](https://github.com/observablehq/plot/pull/1807))

Docs
- add examples grid ([#1834](https://github.com/observablehq/plot/pull/1834))
- only top margin for figures 🤷
- downgrade vite, vitepress
- update vitepress, fix a build crash, add a sitemap ([#1809](https://github.com/observablehq/plot/pull/1809))
[image TK]

```js
Plot.barY(aapl, Plot.groupX({y: "median"}, {x: "Date", y: "Close"}))
.plot({x: {interval: "month"}})
```

The **fontVariant** option is now passed to the axis label as well as to the axis tick labels ([#1827](https://github.com/observablehq/plot/pull/1827))

The **interval** option for *x* now also reduces *x1* and *x2* if present (and likewise for *y*) ([#1828](https://github.com/observablehq/plot/pull/1828))

A transform can now request exclusive facets, opening the door to richer operations on facets ([#1649](https://github.com/observablehq/plot/pull/1649))

The domain exposed with an ordinal scale is now deduplicated, for consistency ([#1813](https://github.com/observablehq/plot/pull/1813))

The render API now exposes the instantiated scales descriptors in its scales argument, opening the door to richer developments ([#1810](https://github.com/observablehq/plot/pull/1810))

The tip mark now hides the temporary tip before computing its callout, avoiding a flickering in some interactive use cases ([#1826](https://github.com/observablehq/plot/pull/1826))

Fix a bug where empty bins might generate undefined colors — they now fall back on the first element of their group ([#1837](https://github.com/observablehq/plot/pull/1837))

Fix a bug where the symbol set hint was ignored if fill was specified as a constant currentColor ([#1830](https://github.com/observablehq/plot/pull/1830))

Fix a bug where the forward slash delimiter was applied by the tree transform in addition to the custom delimiter. ([#1850](https://github.com/observablehq/plot/pull/1850)

Image tests are now more reliable across platforms ([#1807](https://github.com/observablehq/plot/pull/1807))

Test coverage reports are now easier to generate (see [Contributing](https://github.com/observablehq/plot/blob/main/CONTRIBUTING.md#testing))

The documentation website now has a stylish hexagonal grid of examples ([#1834](https://github.com/observablehq/plot/pull/1834))

## 0.6.10

Expand Down

0 comments on commit e9279e4

Please sign in to comment.