Skip to content

desktop/src/components/CallsChart.svelte

Comment 1, line 27

desktop/src/components/CallsChart.svelte:27

/** Current query for grouped chart_series; reload on filter/range changes. */

Comment 2, line 30

desktop/src/components/CallsChart.svelte:30

/** Parent-provided dark theme; redraw axes/legend text and separators when changed. */

Comment 3, line 32

desktop/src/components/CallsChart.svelte:32

/** Point-click callback receives the time label in both total and grouped views. */

Comment 4, line 46

desktop/src/components/CallsChart.svelte:46

/**
* Incremental rendering for 2026-09-26 feedback: unchanged grouping/labels/series/theme/language
* uses setOption merging and ECharts diff; changed structure uses notMerge rebuilds.
* Refresh data without visibly rebuilding the chart.
*/

Comment 5, line 65

desktop/src/components/CallsChart.svelte:65

/** Theme colors for global text inherited by axes/legend, and y-axis separators. */

Comment 6, line 71

desktop/src/components/CallsChart.svelte:71

// Fetch chart_series when dimension/query changes; show errors on failure.

Comment 7, line 243

desktop/src/components/CallsChart.svelte:243

// Tooltip hideDelay=0: ECharts 6 hideTip uses hideLater too; avoid large delays and hide on canvas/window leave or blur.

Comment 8, line 245

desktop/src/components/CallsChart.svelte:245

// Click anywhere inside the grid: pixels map to the nearest category, without hitting a point;

Comment 9, line 246

desktop/src/components/CallsChart.svelte:246

// requested 2026-09-26. zr events span the canvas, while legend/outside-axis regions are

Comment 10, line 247

desktop/src/components/CallsChart.svelte:247

// excluded by containPixel('grid').

Comment 11, line 253

desktop/src/components/CallsChart.svelte:253

// Resize canvas after panel/grid size changes, including restoration from display:none.

Comment 12, line 297

desktop/src/components/CallsChart.svelte:297

/* Top grouping selector uses segmented buttons; see DimensionPicker. */