Charts EcosystemeQuantic.UI offers high-performance, reactive chart components wrapping the most popular JavaScript visualization libraries.
📊 Available Chart Libraries
We provide wrappers for the two most dominant chart libraries in the web ecosystem:
1. Chart.js (eQuantic.UI.Charts.ChartJs)
•
Type: HTML5 Canvas-based.
•
Best for: Simple, clean, and lightweight charts.
•
Support: Bar, Line, Pie, Doughnut, Radar, etc.
2. ApexCharts (eQuantic.UI.Charts.ApexCharts)
•
Best for: Highly interactive, modern, and complex visualizations.
•
Support: Area, Bar, Line, Heatmap, Candlestick, etc.
🚀 Installation & Registration
dotnet add package eQuantic.UI.Charts.ChartJs
dotnet add package eQuantic.UI.Charts.ApexCharts
In your Program.cs:
builder.Services.AddUI(options =>
.ScanAssembly(typeof(Program).Assembly);
// Note: MapUI() automatically handles the necessary endpoint registrations.
Options = new ApexOptions
Chart = new ChartConfig { Type = "bar" }
Series = new List<ApexSeries<MyData>>
new ApexSeries<MyData> { Name = "Sales", Data = dataList }
Data = new ChartData<MyData> { ... },
Options = new ChartJsOptions { ... }
The chart system is designed for Reactive C# updates:
•
Strongly Typed: Configuration and data use C# classes that mirror the JS API.
•
Asset Management: Chart libraries declare their CDN dependencies via the Asset System. •
Zero Configuration: Components automatically inject required scripts/styles, with no manual <script> tags needed.
•
Middleware Pattern: UseChartJs() / UseApexCharts() serve initialization scripts and CDN endpoints.
All chart components accept extra classes via ClassName and live in responsive containers.