Skip to content

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 253

desktop/src/components/TokenChart.svelte:253

/** Unknown totals remain visible alongside reported input/output; zero is a value. */

Comment 9, line 410

desktop/src/components/TokenChart.svelte:410

// Use hideDelay=0 because ECharts 6 hideTip calls hideLater(hideDelay); the shared helper hides on exit/blur.

Comment 10, line 412

desktop/src/components/TokenChart.svelte:412

// Grid clicks select the nearest category, including empty locations without data points.

Comment 11, line 413

desktop/src/components/TokenChart.svelte:413

// Following 2026-09-26 feedback, zr events cover the canvas; exclude legend/outside-axis areas

Comment 12, line 414

desktop/src/components/TokenChart.svelte:414

// through containPixel('grid').

Comment 13, line 420

desktop/src/components/TokenChart.svelte:420

// Resize when panels/grid change container size, including restoration from display:none.

Comment 14, line 473

desktop/src/components/TokenChart.svelte:473

/* Grouping selection sits above subplot tabs at the panel top, using segmented buttons. */