sharof2000 / Blazor-ApexCharts

A blazor wrapper for ApexCharts.js

Home Page:https://apexcharts.github.io/Blazor-ApexCharts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET Core

Blazor-ApexCharts

A blazor wrapper for ApexCharts.js

Demo

.NET 6 or higher is required as of v0.9.0-beta

Installation

Nuget

Blazor-ApexCharts

dotnet add package Blazor-ApexCharts

Usage

Assets

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>

Imports

Add a reference to Blazor-ApexCharts in your _Imports.razor

@using ApexCharts;

Chart Options

Apex Chart options is available in the ApexChartOptions class that can be passed to the chart. More info in Apex documentation ApexCharts Docs.

Stargazers repo roster for @apexcharts/Blazor-ApexCharts

About

A blazor wrapper for ApexCharts.js

https://apexcharts.github.io/Blazor-ApexCharts

License:MIT License


Languages

Language:C# 81.7%Language:CSS 10.9%Language:JavaScript 6.7%Language:HTML 0.7%