Chart
Drawing components of various charts with given data
BootstrapBlazor.Chart
, which needs to reference its component package when using this componentBootstrapBlazor.Chart
componentdotnet add package BootstrapBlazor.Chart
<PackageReference Include="BootstrapBlazor.Chart" Version="7.1.0" />
Install-Package BootstrapBlazor.Chart
CSS file
Add below this line :
<link href="_content/BootstrapBlazor/css/bootstrap.blazor.bundle.min.css" rel="stylesheet" />
<link rel="stylesheet" href="_content/BootstrapBlazor.Chart/css/bootstrap.blazor.chart.bundle.min.css" />
JS file
Add below this line :
<script src="_content/BootstrapBlazor/js/bootstrap.blazor.bundle.min.js"></script>
<script src="_content/BootstrapBlazor.Chart/js/bootstrap.blazor.chart.bundle.min.js"></script>
Component data can be set in the OnInit
callback delegate