A blazor wrapper for ApexCharts.js
dotnet add package Blazor-ApexCharts
In _Host.cshtml
(server-side) or in index.html
(client-side) add the following lines to the body
tag after the _framework
reference
<script src="_content/Blazor-ApexCharts/js/apex-charts.min.js"></script>
<script src="_content/Blazor-ApexCharts/js/blazor-apex-charts.js"></script>
Add a reference to Blazor-ApexCharts
in your _Imports.razor
@using ApexCharts;
Apex Chart options is available in the ApexChartOptions class that can be passed to the chart. More info in Apex documentation ApexCharts Docs.