-
Notifications
You must be signed in to change notification settings - Fork 1
Charts
Edgar Mesquita edited this page Feb 9, 2026
·
5 revisions
eQuantic.UI offers high-performance, reactive chart components wrapping the most popular JavaScript visualization libraries.
We provide wrappers for the two most dominant chart libraries in the web ecosystem:
- Type: HTML5 Canvas-based.
- Best for: Simple, clean, and lightweight charts.
- Support: Bar, Line, Pie, Doughnut, Radar, etc.
- Type: SVG-based.
- Best for: Highly interactive, modern, and complex visualizations.
- Support: Area, Bar, Line, Heatmap, Candlestick, etc.
dotnet add package eQuantic.UI.Charts.ChartJs
dotnet add package eQuantic.UI.Charts.ApexChartsIn your Program.cs:
// Register chart services
builder.Services.AddChartJs();
builder.Services.AddApexCharts();
builder.Services.AddUI(options =>
{
options.ScanAssembly(typeof(Program).Assembly);
});
// ...
// Enable CDN endpoints (after app.Build())
app.UseChartJs(); // optional version: app.UseChartJs("4.4.1")
app.UseApexCharts(); // optional version: app.UseApexCharts("3.45.1")new ApexChart<MyData>
{
Options = new ApexOptions
{
Chart = new ChartConfig { Type = "bar" }
},
Series = new List<ApexSeries<MyData>>
{
new ApexSeries<MyData> { Name = "Sales", Data = dataList }
}
}new ChartJs<MyData>
{
Type = "bar",
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 — no manual
<script>tags needed. -
Middleware Pattern:
UseChartJs()/UseApexCharts()serve initialization scripts and CDN endpoints.
All chart components support full Tailwind CSS styling via ClassName and responsive containers.