Commit 48e7adc
Scale chart width with the number of visible weeks
Stretching 5 weeks across the same 960-wide canvas as 26 weeks left
huge empty gaps. Compute the SVG width from the bucket count
(`width = clamp(560, left + right + 40 * weeks, 960)`) and drop the
README `width="960"` override so the chart renders at its natural
size — a 5-week chart now occupies the 560 minimum, a long history
grows toward the 960 ceiling without ever overflowing.
Co-authored-by: Open Codex <hff582580@gmail.com>1 parent ba2d7c8 commit 48e7adc
3 files changed
Lines changed: 28 additions & 20 deletions
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
196 | 204 | | |
197 | 205 | | |
198 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments