Move the graph page to Chart.js
Los mantenedores suelen responder en 2 días
@bracyw ya está trabajando en esto.
Desde el 27/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
What
Finish moving the graph page to Chart.js, building on the spike branch 877-try-chartjs-for-the-clients-graph-page (draft PR #887). That branch already draws the page with Chart.js. What's left is CSV export, which ApexCharts' menu gives today, fixing the hover quirks, and checking it stays smooth on long ranges.
Requirements
- The graph page draws with Chart.js, keeping live, run and historical modes, hover, zoom, pan, pause, Clear Graph, the legend toggle, multiple y-axes and day lines
- The graph's data can be downloaded as CSV, and the chart saved as an image
- Hover shows each line's value at the pointer's time, with its dot on the line
- A historical range near the 7-day cap, and five live topics, stay smooth to hover, zoom and pan
- verify-graph passes
Notes
- Spike #877, draft PR #887; decision: https://github.com/Northeastern-Electric-Racing/Argos/issues/865#issuecomment-6430776779
- Dropped approaches:
- uPlot (#872, PR #882): just as light, but no export, a small ecosystem and no pie chart; its floating tooltip and wheel zoom are demo code to copy in.
- webgl-plot (#878, PR #888): nothing is built in; the branch wrote axes, hover and legend itself.
- dygraphs (#876, PR #886): too little out of the box; see #876.
- ECharts (#873, PR #883): the most built in, but about 100 MB more memory and the noisiest measurement.
- lightweight-charts (#875, PR #885): built around finance charts, with no legend.
- Plotly (#874, PR #884): nearly double the memory of the rest.
- Open question: whether Chart.js's min-max decimation keeps a 7-day range smooth; the spikes didn't measure frame rate or long ranges.
Context transfer
SUMMARY
The spike branch replaces ApexCharts on the graph page only. It merges cleanly into develop (22 commits behind as of 2026-10-27). 195/195 unit tests pass; verify-graph passed 6/6 (UTC and New York) before the hover change and hasn't been rerun since.
CONTEXT
- Files: angular-client/src/pages/graph-page/graph/graph.component.{ts,html,css,spec.ts}, graph-chart.utils.ts (+ spec), graph-page.component.css, package.json.
- Registers only the line chart's parts in the component's providers (LineController, LineElement, PointElement, LinearScale, Tooltip, Legend, Decimation, zoom and annotation plugins).
- X is a linear epoch-ms scale with our own clock-aligned ticks; no date adapter.
- Values are pushed onto per-series sorted arrays (binary-search insert when out of order), trimmed to the time or point window, and redrawn once per animation frame with update('none').
- Hover (commit d40aaac4): a custom nearest-per-series interaction mode, a cursor tooltip positioner and a crosshair plugin, about 200 lines.
- Hover quirks: dots sit a few pixels off the line; a series with no nearby data shows its first or last sample; the tooltip's edge flip uses the previous frame's size.
- Zoom plugin gives drag zoom, pan, zoom buttons; Save PNG is chart.toBase64Image(). CSV export isn't ported; on develop it comes from ApexCharts' default toolbar menu.
- SERIES_COLORS has 10 colours (ApexCharts' 5 first, violet lightened for contrast), so colours repeat from the 11th series.
- Lenguaje dominante
- TypeScript
- Estrellas
- 5
- Forks
- 1
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 48
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Northeastern-Electric-Racing/Argos
-
Remove the landing pagePosiblemente ocupada @Idontknow0487 la tomó hace 6 días. Abiertoby: ai-assisted frontend good-for: new-member spike
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Northeastern-Electric-Racing/Argos#847 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Keep drag-box zoom smooth on long graph rangesPosiblemente ocupada @bracyw la tomó hoy. Abiertoby: ai dev work frontend
Northeastern-Electric-Racing/Argos#940 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
quick-view-content: Generic quick-view components that hold caller-defined dataPosiblemente ocupada @bracyw la tomó hoy. Abiertoby: ai frontend spike
Northeastern-Electric-Racing/Argos#937 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
quick-view-content: The quick view loads components defined elsewherePosiblemente ocupada @bracyw la tomó hoy. Abiertoby: ai frontend spike
Northeastern-Electric-Racing/Argos#936 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
quick-view-content: Pages pass their own components to the quick viewPosiblemente ocupada @bracyw la tomó hoy. Abiertoby: ai frontend spike
Northeastern-Electric-Racing/Argos#935 · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de Northeastern-Electric-Racing/Argos
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
components-web-app/docs#307 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
localstack/localstack-mcp-server#112 ·
Los mantenedores suelen responder en 1 día
-
area:frontend kind:bug priority:p1 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
PhyberApex/kuroshiro#1687 ·
Los mantenedores suelen responder en 1 día
-
Performance (Web Vitals) collector: LCP/FCP from background tabs are not discarded, inflating p75Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
umami-software/umami#4720 ·
Los mantenedores suelen responder en 3 días