Commit c1a754a
feat(spec): type ChartConfig colors as palette or value→color map (#2262)
ChartConfigSchema.colors now accepts a positional palette (string[]) OR an
explicit value→color map (Record<value,color>, kanban-style). A value→color
map — and a select/lookup dimension's option colors — take precedence over
the positional palette per category.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent f505397 commit c1a754a
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
190 | 197 | | |
191 | 198 | | |
192 | 199 | | |
| |||
0 commit comments