desktop/src/components/TokenChart.svelte
Comment 1, line 29
desktop/src/components/TokenChart.svelte:29
/** Current chart_series query; refetch when filters/range change. */Comment 2, line 32
desktop/src/components/TokenChart.svelte:32
/** Parent-provided dark theme; redraw axis/legend text and separators when it changes. */Comment 3, line 34
desktop/src/components/TokenChart.svelte:34
/** Point-click callback supplies the time-axis label in total and grouped modes. */Comment 4, line 49
desktop/src/components/TokenChart.svelte:49
/** * Incremental rendering, following 2026-09-26 feedback: merge ECharts options when the * subplot/grouping/labels/series/theme/language key is unchanged. A changed key uses * notMerge to rebuild the chart, avoiding full rebuilds during ordinary data refresh. */Comment 5, line 68
desktop/src/components/TokenChart.svelte:68
/** Theme-aware global axis/legend text and y-axis separators. */Comment 6, line 84
desktop/src/components/TokenChart.svelte:84
// Refetch chart_series when grouping/query changes; display an error on failure.Comment 7, line 187
desktop/src/components/TokenChart.svelte:187
// Stack cache-read/cache-write/uncached input areas; plot known total input as a separate dashed line.Comment 8, line 252
desktop/src/components/TokenChart.svelte:252
/** Unknown totals remain visible alongside reported input/output; zero is a value. */Comment 9, line 411
desktop/src/components/TokenChart.svelte:411
// Use hideDelay=0 because ECharts 6 hideTip calls hideLater(hideDelay); the shared helper hides on exit/blur.Comment 10, line 413
desktop/src/components/TokenChart.svelte:413
// Grid clicks select the nearest category, including empty locations without data points.Comment 11, line 414
desktop/src/components/TokenChart.svelte:414
// Following 2026-09-26 feedback, zr events cover the canvas; exclude legend/outside-axis areasComment 12, line 415
desktop/src/components/TokenChart.svelte:415
// through containPixel('grid').Comment 13, line 421
desktop/src/components/TokenChart.svelte:421
// Resize when panels/grid change container size, including restoration from display:none.Comment 14, line 472
desktop/src/components/TokenChart.svelte:472
/* Grouping selection sits above subplot tabs at the panel top, using segmented buttons. */