# live-charts/livecharts2 architecture

> Architecture diagram of the GitHub repository live-charts/livecharts2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/live-charts/livecharts2
- Repository: https://github.com/live-charts/livecharts2

## Overview

LiveCharts2 is a cross-platform .NET charting library. Users provide series and values through a platform chart control; the core chart engine measures and lays out the data, creates drawing tasks, and a platform renderer displays the result. The core also includes specialized Cartesian, pie, polar, Sankey, treemap, and map charting. README and the source index document the cross-platform intent and core engine/canvas links; several subsystem paths are supported by the tree but their internal wiring was not sampled, so those links are left unverified.

Main entry points: [`src/LiveChartsCore/Chart.cs`](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Chart.cs) (Chart lifecycle), [`src/LiveChartsCore/Motion/CoreMotionCanvas.cs`](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Motion/CoreMotionCanvas.cs) (Motion canvas), [`src/skiasharp`](https://github.com/live-charts/livecharts2/tree/master/src/skiasharp) (Platform controls), [`src/LiveChartsCore/CartesianChartEngine.cs`](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/CartesianChartEngine.cs) (Cartesian engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_adapters["Platform controls"]
  node_platform["Platform controls"]
  node_generator["Platform bindings"]
end

subgraph group_core["Chart core"]
  node_chart["Chart lifecycle<br/>[Chart.cs]"]
  node_series["Series and values<br/>[ISeries.cs]"]
  node_point["Chart points<br/>[ChartPoint.cs]"]
  node_layout["Chart layouts"]
  node_settings["Global settings<br/>[LiveCharts.cs]"]
end

subgraph group_families["Chart families"]
  node_cartesian["Cartesian engine"]
  node_pie["Pie engine<br/>[PieChartEngine.cs]"]
  node_polar["Polar engine"]
  node_sankey["Sankey engine"]
  node_treemap["Treemap engine"]
  node_geo["Geo maps"]
end

subgraph group_render["Drawing and rendering"]
  node_measure["Measure geometry"]
  node_canvas["Motion canvas"]
  node_paint["Paint tasks<br/>[Paint.cs]"]
  node_skia["Skia drawing"]
end

node_user(("Chart user"))

node_user -.->|"configures"| node_platform
node_platform -.->|"hosts"| node_chart
node_chart -.->|"uses"| node_series
node_cartesian -->|"uses"| node_chart
node_cartesian -->|"draws on"| node_canvas
node_pie -->|"uses"| node_chart
node_pie -->|"draws on"| node_canvas
node_polar -->|"uses"| node_chart
node_polar -->|"draws on"| node_canvas
node_sankey -->|"uses"| node_chart
node_sankey -->|"draws on"| node_canvas
node_treemap -->|"uses"| node_chart
node_treemap -->|"draws on"| node_canvas
node_geo -.->|"supports maps"| node_platform
node_series -.->|"provides data"| node_point
node_chart -.->|"measures"| node_layout
node_layout -.->|"computes bounds"| node_measure
node_canvas -.->|"collects tasks"| node_paint
node_skia -->|"renders"| node_canvas
node_settings -.->|"configures"| node_chart
node_generator -.->|"binds controls"| node_platform

click node_platform "https://github.com/live-charts/livecharts2/tree/master/src/skiasharp"
click node_chart "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Chart.cs"
click node_series "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/ISeries.cs"
click node_point "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Kernel/ChartPoint.cs"
click node_cartesian "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/CartesianChartEngine.cs"
click node_pie "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/PieChartEngine.cs"
click node_polar "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/PolarChartEngine.cs"
click node_sankey "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/SankeyChartEngine.cs"
click node_treemap "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/TreemapChartEngine.cs"
click node_geo "https://github.com/live-charts/livecharts2/tree/master/src/LiveChartsCore/Geo"
click node_layout "https://github.com/live-charts/livecharts2/tree/master/src/LiveChartsCore"
click node_measure "https://github.com/live-charts/livecharts2/tree/master/src/LiveChartsCore/Measure"
click node_canvas "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Motion/CoreMotionCanvas.cs"
click node_paint "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Painting/Paint.cs"
click node_skia "https://github.com/live-charts/livecharts2/blob/master/src/skiasharp/LiveChartsCore.SkiaSharp/Drawing/SkiaSharpDrawingContext.cs"
click node_settings "https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/LiveCharts.cs"
click node_generator "https://github.com/live-charts/livecharts2/tree/master/src/LiveChartsCore/Generators"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_platform,node_generator,node_user toneBlue
class node_chart,node_series,node_point,node_layout,node_settings toneAmber
class node_cartesian,node_pie,node_polar,node_sankey,node_treemap,node_geo toneMint
class node_measure,node_canvas,node_paint,node_skia toneRose
```

## Components

### Platform controls

- [Platform controls](https://github.com/live-charts/livecharts2/tree/master/src/skiasharp): `src/skiasharp`
- [Platform bindings](https://github.com/live-charts/livecharts2/tree/master/src/LiveChartsCore/Generators): `src/LiveChartsCore/Generators`

### Chart core

- [Chart lifecycle](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Chart.cs): `src/LiveChartsCore/Chart.cs`
- [Series and values](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/ISeries.cs): `src/LiveChartsCore/ISeries.cs`
- [Chart points](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Kernel/ChartPoint.cs): `src/LiveChartsCore/Kernel/ChartPoint.cs`
- [Chart layouts](https://github.com/live-charts/livecharts2/tree/master/src/LiveChartsCore): `src/LiveChartsCore`
- [Global settings](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/LiveCharts.cs): `src/LiveChartsCore/LiveCharts.cs`

### Chart families

- [Cartesian engine](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/CartesianChartEngine.cs): `src/LiveChartsCore/CartesianChartEngine.cs`
- [Pie engine](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/PieChartEngine.cs): `src/LiveChartsCore/PieChartEngine.cs`
- [Polar engine](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/PolarChartEngine.cs): `src/LiveChartsCore/PolarChartEngine.cs`
- [Sankey engine](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/SankeyChartEngine.cs): `src/LiveChartsCore/SankeyChartEngine.cs`
- [Treemap engine](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/TreemapChartEngine.cs): `src/LiveChartsCore/TreemapChartEngine.cs`
- [Geo maps](https://github.com/live-charts/livecharts2/tree/master/src/LiveChartsCore/Geo): `src/LiveChartsCore/Geo`

### Drawing and rendering

- [Measure geometry](https://github.com/live-charts/livecharts2/tree/master/src/LiveChartsCore/Measure): `src/LiveChartsCore/Measure`
- [Motion canvas](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Motion/CoreMotionCanvas.cs): `src/LiveChartsCore/Motion/CoreMotionCanvas.cs`
- [Paint tasks](https://github.com/live-charts/livecharts2/blob/master/src/LiveChartsCore/Painting/Paint.cs): `src/LiveChartsCore/Painting/Paint.cs`
- [Skia drawing](https://github.com/live-charts/livecharts2/blob/master/src/skiasharp/LiveChartsCore.SkiaSharp/Drawing/SkiaSharpDrawingContext.cs): `src/skiasharp/LiveChartsCore.SkiaSharp/Drawing/SkiaSharpDrawingContext.cs`

### Other components

- **Chart user**

## Connections

- Chart user → Platform controls: configures
- Platform controls → Chart lifecycle: hosts
- Chart lifecycle → Series and values: uses (evidence: `src/LiveChartsCore/Chart.cs`)
- Cartesian engine → Chart lifecycle: uses (evidence: `src/LiveChartsCore/CartesianChartEngine.cs`)
- Cartesian engine → Motion canvas: draws on (evidence: `src/LiveChartsCore/CartesianChartEngine.cs`)
- Pie engine → Chart lifecycle: uses (evidence: `src/LiveChartsCore/PieChartEngine.cs`)
- Pie engine → Motion canvas: draws on (evidence: `src/LiveChartsCore/PieChartEngine.cs`)
- Polar engine → Chart lifecycle: uses (evidence: `src/LiveChartsCore/PolarChartEngine.cs`)
- Polar engine → Motion canvas: draws on (evidence: `src/LiveChartsCore/PolarChartEngine.cs`)
- Sankey engine → Chart lifecycle: uses (evidence: `src/LiveChartsCore/SankeyChartEngine.cs`)
- Sankey engine → Motion canvas: draws on (evidence: `src/LiveChartsCore/SankeyChartEngine.cs`)
- Treemap engine → Chart lifecycle: uses (evidence: `src/LiveChartsCore/TreemapChartEngine.cs`)
- Treemap engine → Motion canvas: draws on (evidence: `src/LiveChartsCore/TreemapChartEngine.cs`)
- Geo maps → Platform controls: supports maps
- Series and values → Chart points: provides data (evidence: `src/LiveChartsCore/ISeries.cs`)
- Chart lifecycle → Chart layouts: measures (evidence: `src/LiveChartsCore/Chart.cs`)
- Chart layouts → Measure geometry: computes bounds (evidence: `src/LiveChartsCore/CartesianChartEngine.cs`)
- Motion canvas → Paint tasks: collects tasks (evidence: `src/LiveChartsCore/Motion/CoreMotionCanvas.cs`)
- Skia drawing → Motion canvas: renders (evidence: `src/skiasharp/LiveChartsCore.SkiaSharp/Drawing/SkiaSharpDrawingContext.cs`)
- Global settings → Chart lifecycle: configures (evidence: `src/LiveChartsCore/Chart.cs`)
- Platform bindings → Platform controls: binds controls
