Commit 178238d
Nils Bars
Replace Chart.js with Apache ECharts in scoreboard charts
- Swap chart.js, chartjs-adapter-date-fns, chartjs-plugin-annotation, and
chartjs-plugin-zoom for echarts v6 in the SPA dependencies.
- Reimplement PointsOverTimeChart and ChallengePlot against the echarts
API (line charts, markLine boundaries, built-in dataZoom slider).
- Read axis, grid, legend, tooltip, slider, and data palette colors from
Vuetify --v-theme-* tokens and re-render via a MutationObserver when
the body theme class flips.
- Give .term-chart-wrap an explicit height and use a flex child so the
chart container reports a non-zero size to echarts.init().
- Extend the x-axis range to include assignment boundary markers so the
dashed guide lines stay inside the viewport.
- Rotate assignment labels 90 degrees and center them along each vertical
boundary line; center the baseline label on the horizontal markLine.1 parent 969346b commit 178238d
7 files changed
Lines changed: 517 additions & 351 deletions
File tree
- docs
- spa-frontend
- src
- components/scoreboard
- theme
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 14 | | |
| 15 | + | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
0 commit comments