Blazor-ApexCharts 5.1.0

dotnet add package Blazor-ApexCharts --version 5.1.0
                    
NuGet\Install-Package Blazor-ApexCharts -Version 5.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blazor-ApexCharts" Version="5.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Blazor-ApexCharts" Version="5.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Blazor-ApexCharts" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Blazor-ApexCharts --version 5.1.0
                    
#r "nuget: Blazor-ApexCharts, 5.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Blazor-ApexCharts&version=5.1.0
                    
Install Blazor-ApexCharts as a Cake Addin
#tool nuget:?package=Blazor-ApexCharts&version=5.1.0
                    
Install Blazor-ApexCharts as a Cake Tool

.NET Core

Blazor-ApexCharts

A blazor wrapper for ApexCharts.js

Demo

Installation

NuGet

Blazor-ApexCharts

dotnet add package Blazor-ApexCharts

ChartService

ApexChartService is an optional service that will manage global options, set locales, manage charts on the screen. Add the chart service to the DI container by using the extension AddApexCharts(). This will add a scoped IApexChartService to the container.

services.AddApexCharts();

or add it with global options

services.AddApexCharts(e =>
            {
                e.GlobalOptions = new ApexChartBaseOptions
                {
                    Debug = true,
                    Theme = new Theme { Palette = PaletteType.Palette6 }
                };
            });

Usage

Imports

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

@using ApexCharts

.NET 8

If you are on .NET 8 you need to set the rendermode to Interactive.

Interactive Server, Interactive WebAssembly or Interactive Auto

Your first chart

    <ApexChart TItem="MyData"
               Title="Sample Data">

        <ApexPointSeries TItem="MyData"
                         Items="Data"
                         Name="Net Profit"
                         SeriesType="SeriesType.Bar"
                         XValue="e => e.Category"
                         YValue="e=> e.NetProfit" />

        <ApexPointSeries TItem="MyData"
                         Items="Data"
                         Name="Revenue"
                         SeriesType="SeriesType.Bar"
                         XValue="e => e.Category"
                         YValue="e=> e.Revenue" />
    </ApexChart>
    
@code {
    private List<MyData> Data { get; set; } = new();
    protected override void OnInitialized()
    {
        Data.Add(new MyData { Category = "Jan", NetProfit = 12, Revenue = 33 });
        Data.Add(new MyData { Category = "Feb", NetProfit = 43, Revenue = 42 });
        Data.Add(new MyData { Category = "Mar", NetProfit = 112, Revenue = 23 });
    }

    public class MyData
    {
        public string Category { get; set; }
        public int NetProfit { get; set; }
        public int Revenue { get; set; }
    }
}

Chart Options

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

The chart options cannot be shared. Each chart instance must have its own ApexChartOptions instance

Acknowledgments

Credits to @thirstyape for making production release possible.

Stargazers repo roster for @apexcharts/Blazor-ApexCharts

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on Blazor-ApexCharts:

Package Downloads
KingTech.Web.FormGenerator

Package Description

Fun.Blazor.ApexCharts

Package Description

CodeBlock.DevKit.Web.Blazor.Server

CodeBlock Development Kit

Empezar.BlazorWebClient

Package Description

Recrovit.RecroGridFramework.Blazor.RgfApexCharts

RecroGrid Framework Blazor ApexCharts.

GitHub repositories (9)

Showing the top 9 popular GitHub repositories that depend on Blazor-ApexCharts:

Repository Stars
neozhu/CleanArchitectureWithBlazorServer
This is a repository for creating a Blazor Server dashboard application following the principles of Clean Architecture
TheAxelander/OpenBudgeteer
OpenBudgeteer is a budgeting app based on the Bucket Budgeting Principle
TabBlazor/TabBlazor
Blazor admin template based on Tabler UI
Sidekick-Poe/Sidekick
The main repository for the Sidekick project, a companion trade tool for Path of Exile and Path of Exile 2.
neozhu/visitormanagement
helps in managing visitors visiting the institutions for various reasons. It allows visitors to check-in digitally to eliminate the tedious registeration and other paperwork. Additionally, it also keeps a track of every individual inside the campus and their timings. Institutions has guards who enter their detail in some notebooks to keep a log which are practically impossible to reconcile. It is really unpleasent and hectic for visitor to stand at the gate and give details about the visit. To ease the process of registeration, Entry-In, Entry-Out, time tracking and logging the history, this VMS can be of great use!!
CervantesSec/cervantes
Cervantes is an open-source, collaborative platform designed specifically for pentesters and red teams. It serves as a comprehensive management tool, streamlining the organization of projects, clients, vulnerabilities, and reports in a single, centralized location.
Corsinvest/cv4pve-admin
Corsinvest for Proxmox VE Web Admin Clusters - vCenter but for Proxmoxm VE
LiamMorrow/LiftLog
A cross platform app for tracking your lifts in the gym
ZaqueuCavalcante/syki
Full Education Management System.
Version Downloads Last updated
5.1.0 60,857 2 months ago
5.0.1 40,770 3 months ago
5.0.0 13,031 4 months ago
4.0.1 42,084 5 months ago
4.0.0 27,053 5 months ago
3.5.0 66,067 6 months ago
3.4.0 124,794 9 months ago
3.3.0 103,488 4/28/2024
3.2.0 36,501 4/7/2024
3.1.0 48,983 3/4/2024
3.0.0 475 3/4/2024
2.3.3 54,935 2/9/2024
2.3.2 1,261 2/7/2024
2.3.1 8,315 2/4/2024
2.3.0 14,488 2/1/2024
2.2.1 45,873 12/20/2023
2.2.0 33,847 12/6/2023
2.1.0 26,244 11/19/2023
2.0.0 6,369 11/11/2023
1.3.0 30,398 10/23/2023
1.2.1 27,982 9/24/2023
1.1.1 843 9/23/2023
1.1.0 3,362 9/18/2023
1.0.1 9,848 9/13/2023
1.0.0 4,055 9/12/2023
0.9.22-beta 8,500 8/27/2023
0.9.21-beta 55,973 5/22/2023
0.9.20-beta 55,446 3/27/2023
0.9.19-beta 3,869 3/20/2023
0.9.18-beta 21,582 2/5/2023
0.9.17-beta 13,195 1/7/2023
0.9.16-beta 20,956 11/19/2022
0.9.15-beta 5,329 11/4/2022
0.9.14-beta 18,984 9/19/2022
0.9.13-beta 51,158 7/6/2022
0.9.12-beta 7,924 6/7/2022
0.9.11-beta 1,176 6/3/2022
0.9.10-beta 1,339 5/30/2022
0.9.8-beta 35,783 5/4/2022
0.9.7-beta 2,851 4/14/2022
0.9.6-beta 1,061 4/10/2022
0.9.5-beta 908 4/5/2022
0.9.4-beta 1,702 4/3/2022
0.9.3-beta 710 4/2/2022
0.9.2-beta 1,483 3/31/2022
0.9.1-beta 2,619 3/30/2022
0.9.0-beta 799 3/30/2022
0.8.2-beta 6,981 3/13/2022
0.8.1-beta 695 3/13/2022
0.8.0-beta 7,267 2/20/2022
0.7.0-beta 2,788 1/24/2022
0.6.1-alpha 1,148 1/18/2022
0.6.0-alpha 9,731 11/7/2021
0.5.0-alpha 2,572 10/10/2021
0.4.1-alpha 1,367 9/27/2021
0.4.0-alpha 4,137 9/7/2021
0.2.4-alpha 4,346 8/19/2021
0.2.3-alpha 6,022 5/5/2021
0.2.2-alpha 2,294 2/13/2021
0.2.1-alpha 822 2/13/2021
0.2.0-alpha 5,038 6/7/2020
0.1.1-alpha 975 5/23/2020
0.1.0-alpha 899 5/23/2020
0.0.4-apha 980 5/10/2020
0.0.3-alpha 961 5/2/2020