Commit e31a7ae
Support interval+reduce in the area mark (#2329)
* fix: areaY dense interval without explicit y option (#2328)
Fixed areaY to work with dense intervals (interval + reduce) without
requiring an explicit y option, matching lineY behavior.
🤖 Generated with [Claude Code](https://claude.ai/code)
Total cost: $5.51
Total duration (API): 23m 31.3s
Total duration (wall): 14h 30m 4.3s
Total code changes: 208 lines added, 53 lines removed
Token usage by model:
claude-3-5-haiku: 204.7k input, 4.8k output, 0 cache read, 0 cache write
claude-sonnet: 18.9k input, 28.4k output, 8.3m cache read, 629.5k cache write
* a human fix: when y is undefined, default to y: reduce
* add vertical tests
* fix test merge
* lift dense interval defaults
* unused import
* don’t need maybeIdentity for area?
* simpler maybeIdentity
* minimize diff
* line can follow the same (simpler) pattern as area
* re-apply edits
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Mike Bostock <mbostock@gmail.com>1 parent 3542325 commit e31a7ae
11 files changed
Lines changed: 334 additions & 38 deletions
File tree
- src
- marks
- transforms
- test
- output
- plots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
13 | 8 | | |
14 | | - | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
77 | 71 | | |
78 | 72 | | |
79 | 73 | | |
80 | | - | |
81 | | - | |
| 74 | + | |
| 75 | + | |
82 | 76 | | |
83 | 77 | | |
84 | 78 | | |
85 | | - | |
86 | | - | |
| 79 | + | |
| 80 | + | |
87 | 81 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
| |||
103 | 98 | | |
104 | 99 | | |
105 | 100 | | |
106 | | - | |
107 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
108 | 104 | | |
109 | 105 | | |
110 | | - | |
111 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
112 | 109 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
| 217 | + | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
85 | | - | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
Loading
Loading
Loading
0 commit comments