You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,32 @@ Plot.plot({
20
20
21
21
The [line](./README.md#line) and [area](./README.md#area) marks (specifically lineX, lineY, areaX, and areaY) now support an implicit [bin transform](./README.md#bin) with the **interval** option. This can be used to “regularize” time series data, say to show gaps or default to zero when data is missing, rather than interpolating across missing data. This is also useful for stacking time series data that is sampled at irregular intervals or with missing samples.
22
22
23
+
<imgsrc="./img/sparse-series.png"width="640"alt="a time-series area chart showing downloads per day with gaps for missing data">
The default **reduce** is *first*, picking the first value in each interval. By using *sum* instead, we can default to zero when data is missing (and add values if the data contains more than one observation per day).
36
+
37
+
<imgsrc="./img/dense-series.png"width="640"alt="a time-series area chart showing downloads per day with zeroes for missing data">
The [bin transform](./README.md#bin) now coerces the input channel (the quantity being binned) to numbers as necessary. In addition, the bin transform now correctly handles typed array input channels representing temporal data.
24
50
25
51
The [stack transform](./README.md#stack) now allows the **offset** option to be specified as a function. For example, this can be used to visualize Likert survey results with a neutral category as a diverging stacked bar chart.
0 commit comments