HWHeat Waves
    DashboardUtforsk
    Analyse
    Data Kilder
      • Explore Slice
      • Read Path
      • Routes
      • Atlas Route
      • Charts Correlation
      • Chart Libraries
      • Dashboard Route
    • Design Rationale
    • Doc Map
    DocsSettings
    DashboardAtlasUtforsk
    Analyse
    Data Kilder
    1. Documentation
    2. Application Architecture
    3. Chart libraries and UI primitives by area

    Chart libraries and UI primitives by area

    Recharts vs ECharts, Progress, and totals helpers. Split from the former data_model inventory.

    Chart libraries and UI primitives by area

    For /analytics route status (discontinued chart UI), see charts-correlation-crosstab.md.


    Chart components / libraries

    From package.json:

    • recharts (^2.15.3)
    • echarts + echarts-for-react (wrapped by components/common/echarts/EChart.tsx)

    Representative components/ imports:

    • Line / bar / pie / area / radar: Recharts — e.g.
      components/fire-data/charts/CategoryTotalsChart.tsx
    • fire_data ECharts: components/fire-data/charts/echarts/ — drilldown (/simple), sankey, theme river, radar, treemap grid, heatmap, force graph, circle pack (/atlas + future routes); dashboard blocks: sunburst ↔ treemap morph via HierarchyMorphChart + hierarchy-morph.ts; bubble timeline via BubbleTimelineChart + bubble-timeline.ts (TimelineComponent + Scatter in EChart.tsx). Registry: registry.ts.
    • ECharts host (internal): components/common/echarts/EChart.tsx — not imported by routes; used inside product charts

    No Tremor in package.json.


    shadcn Progress

    Installed as Radix + local wrapper:

    components/ui/progress.tsx
    (re-exports Progress; uses @radix-ui/react-progress — also listed in package.json.)


    totals

    lib/utils/totals.ts exists; documents shared totals for live BRIS transform vs future getFireData + buildTotals.


    Maintenance

    When swapping chart stacks or adding a new visualization dependency, update this file and the analytics route doc if user-facing behavior changes.