Skip to content

Commit e9279e4

Browse files
committed
edits
1 parent 58ffdcb commit e9279e4

File tree

1 file changed

+33
-24
lines changed

1 file changed

+33
-24
lines changed

CHANGELOG.md

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Year: **Current (2023)** · [2022](./CHANGELOG-2022.md) · [2021](./CHANGELOG-20
66

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

9-
The new **format** option controls the order and formatting of the [tip mark](https://observablehq.com/plot/marks/tip)’s channels.
9+
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))
1010

11-
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.
11+
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.
1212

1313
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).
1414

@@ -29,29 +29,38 @@ Plot.dot(cars, {
2929
_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._
3030

3131

32+
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))
3233

33-
- better ordinal axes with intervals ([#1790](https://github.com/observablehq/plot/pull/1790))
34-
- channel label override ([#1838](https://github.com/observablehq/plot/pull/1838))
35-
- empty bins fall back on the first element of their group ([#1837](https://github.com/observablehq/plot/pull/1837))
36-
- pass fontVariant to the axis label ([#1827](https://github.com/observablehq/plot/pull/1827))
37-
- fix symbol set hint when fill is a constant currentColor ([#1830](https://github.com/observablehq/plot/pull/1830))
38-
- the denseInterval option for k must also reduce k1 and k2 if present ([#1828](https://github.com/observablehq/plot/pull/1828))
39-
- fix tip flicker ([#1826](https://github.com/observablehq/plot/pull/1826))
40-
- exclusiveFacets ([#1649](https://github.com/observablehq/plot/pull/1649))
41-
- expose a deduplicated ordinal domain ([#1813](https://github.com/observablehq/plot/pull/1813))
42-
- expose instantiated scales descriptors in the render API ([#1810](https://github.com/observablehq/plot/pull/1810))
43-
44-
Tests
45-
- tests for coverage ([#1825](https://github.com/observablehq/plot/pull/1825))
46-
- document test:coverage ([#1820](https://github.com/observablehq/plot/pull/1820))
47-
- Add test coverage ([#1818](https://github.com/observablehq/plot/pull/1818))
48-
- compare image data ([#1807](https://github.com/observablehq/plot/pull/1807))
49-
50-
Docs
51-
- add examples grid ([#1834](https://github.com/observablehq/plot/pull/1834))
52-
- only top margin for figures 🤷
53-
- downgrade vite, vitepress
54-
- update vitepress, fix a build crash, add a sitemap ([#1809](https://github.com/observablehq/plot/pull/1809))
34+
[image TK]
35+
36+
```js
37+
Plot.barY(aapl, Plot.groupX({y: "median"}, {x: "Date", y: "Close"}))
38+
.plot({x: {interval: "month"}})
39+
```
40+
41+
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))
42+
43+
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))
44+
45+
A transform can now request exclusive facets, opening the door to richer operations on facets ([#1649](https://github.com/observablehq/plot/pull/1649))
46+
47+
The domain exposed with an ordinal scale is now deduplicated, for consistency ([#1813](https://github.com/observablehq/plot/pull/1813))
48+
49+
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))
50+
51+
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))
52+
53+
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))
54+
55+
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))
56+
57+
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)
58+
59+
Image tests are now more reliable across platforms ([#1807](https://github.com/observablehq/plot/pull/1807))
60+
61+
Test coverage reports are now easier to generate (see [Contributing](https://github.com/observablehq/plot/blob/main/CONTRIBUTING.md#testing))
62+
63+
The documentation website now has a stylish hexagonal grid of examples ([#1834](https://github.com/observablehq/plot/pull/1834))
5564

5665
## 0.6.10
5766

0 commit comments

Comments
 (0)