Move the small charts to Chart.js and drop ApexCharts
メンテナーはふだん 2 日以内に返信
評価
この issue はまだ評価されていません。
説明
What
Move the client's other charts (the shared line graph, the double-line graph and the pie chart) from ApexCharts to Chart.js, then remove ApexCharts from the client. They appear in the graph dialog, info graph, acceleration graphs, the charging page and motor info.
Requirements
- The line graphs in the graph dialog, info graph, acceleration graphs and the charging page's cell temperature and pack voltage draw with Chart.js and update live
- The charging page's high/low cell graph shows both lines with its legend
- The motor info pie chart draws with Chart.js, with its legend
- apexcharts and ng-apexcharts are removed from angular-client
Notes
- Builds on the Chart.js setup from #925; removing ApexCharts needs #925 merged first.
- Spike #877, draft PR #887; decision: https://github.com/Northeastern-Electric-Racing/Argos/issues/865#issuecomment-6430776779
- Dropped approaches: uPlot (#872) and webgl-plot (#878) have no pie chart; dygraphs (#876), lightweight-charts (#875) and Plotly (#874) were dropped for the graph page (too little built in, no legend, double the memory), and ECharts (#873) for about 100 MB more memory.
Context transfer
SUMMARY
Three ApexCharts components remain after the graph page moves: graph-component, double-line-graph and pie-chart, under angular-client/src/components/.
CONTEXT
- graph-component (components/graph/graph.component.ts, 190 lines): one line series, toolbar hidden, zoom with autoScaleYaxis, linear y, tooltip. Used in components/graph-dialog, components/info-graph, components/acceleration-graphs, pages/charging-page/components/cell-temp/cell-temp-graph, pages/charging-page/components/pack-voltage/pack-voltage-graph. Its options are applied only at chart creation; a later colour change isn't pushed.
- double-line-graph (components/double-line-graph/double-line-graph.component.ts, 196 lines): two line series with a legend. Used in pages/charging-page/components/high-low-cell/high-low-cell-graph. It calls updateOptions rather than updateSeries, because apexcharts 5's updateSeries replots lines without redrawing the axes or legend.
- pie-chart (components/pie-chart/pie-chart.component.ts, 90 lines): pie with a legend. Used in components/motor-info.
- The graph page registers only line-chart parts in its own providers; a pie chart needs PieController and ArcElement registered.
- Each component has a spec that references ApexCharts.
- Graph page CSS on develop also references ApexCharts classes (pages/graph-page/graph-page.component.css, graph/graph.component.css); the graph page ticket removes those.
- 主要言語
- TypeScript
- スター
- 5
- フォーク
- 1
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Northeastern-Electric-Racing/Argos のほかの issue
-
Remove the landing page対応中かも @Idontknow0487 が 6 日前に担当しました。 オープンby: ai-assisted frontend good-for: new-member spike
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Northeastern-Electric-Racing/Argos#847 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Keep drag-box zoom smooth on long graph ranges対応中かも @bracyw が今日担当しました。 オープンby: ai dev work frontend
Northeastern-Electric-Racing/Argos#940 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
quick-view-content: Generic quick-view components that hold caller-defined data対応中かも @bracyw が 1 日前に担当しました。 オープンby: ai frontend spike
Northeastern-Electric-Racing/Argos#937 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
quick-view-content: The quick view loads components defined elsewhere対応中かも @bracyw が 1 日前に担当しました。 オープンby: ai frontend spike
Northeastern-Electric-Racing/Argos#936 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
quick-view-content: Pages pass their own components to the quick view対応中かも @bracyw が 1 日前に担当しました。 オープンby: ai frontend spike
Northeastern-Electric-Racing/Argos#935 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
Northeastern-Electric-Racing/Argos の issue をすべて見る
似ている issue
-
area: triage theme: undefined
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
jhipster/generator-jhipster#35895 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
paperclipai/paperclip#18396 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
lingdojo/kana-dojo#33380 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
chore other
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
alastair-smith/card-games#342 ·
メンテナーはふだん 1 日以内に返信