BlazorChartsClassLibray 1.0.17
dotnet add package BlazorChartsClassLibray --version 1.0.17
NuGet\Install-Package BlazorChartsClassLibray -Version 1.0.17
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="BlazorChartsClassLibray" Version="1.0.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorChartsClassLibray" Version="1.0.17" />
<PackageReference Include="BlazorChartsClassLibray" />
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 BlazorChartsClassLibray --version 1.0.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BlazorChartsClassLibray, 1.0.17"
#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.
#:package BlazorChartsClassLibray@1.0.17
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlazorChartsClassLibray&version=1.0.17
#tool nuget:?package=BlazorChartsClassLibray&version=1.0.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Blazor Charts
O Blazor Charts é um pacote NuGet que facilita a criação de gráficos em aplicações Blazor utilizando o Chart.js.
📚 Documentação
https://brendonniero.github.io/blazor-charts/
📦 Instalação
Para instalar o pacote, utilize o seguinte comando:
dotnet add package BlazorChartsClassLibray
Em seguida, importe os scripts necessários no seu index.html (Blazor WebAssembly) ou _Host.cshtml (Blazor Server):
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="_content/BlazorChartsClassLibray/chart.js"></script>
🚀 Como Usar
No seu arquivo .razor, importe o namespace:
@using BlazorChartsClassLibray.Components;
📌 Exemplos
Gráfico de Linha
<LineGraph DataName="@DataName" Labels="@labels"
DataPoints="@data" BackgroundColors="@colors" />
@code {
public string DataName = "Revenue";
public List<string> labels = new() { "Jan", "Feb", "Mar", "Apr", "May" };
public List<int> data = new() { 10, 50, 30, 55, 66 };
public List<string> colors = new() { "#3fc598" };
}
Gráfico de Barras Dupla
<DoubleBar DataName1="First" DataName2="Second"
Color1="#13f287" Labels="@labels" Color2="#646cff"
DataPoints1="@data1" DataPoints2="@data2" />
@code {
public List<string> labels = new() { "Jan", "Feb", "Mar", "Apr", "May" };
public List<int> data1 = new() { 100, 50, 30, 55, 66 };
public List<int> data2 = new() { -50, -100, -50, -55, -96 };
}
Gráfico Doughnut
<CharDoughnut DataName="Revenue" BackgroundColors="@colors"
DataPoints="@data" Labels="@labels" />
@code {
public List<string> labels = new() { "Jan", "Feb", "Mar", "Apr", "May" };
public List<int> data = new() { 10, 50, 30, 55, 66 };
public List<string> colors = new()
{ "#3fc598", "#646cff", "#ff5733", "#ffc300", "#ef436b" };
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.8)
- Microsoft.AspNetCore.Components.Web (>= 8.0.8)
- Microsoft.JSInterop (>= 8.0.8)
- System.Text.Json (>= 9.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.17 | 246 | 4/22/2025 |
| 1.0.16 | 201 | 4/22/2025 |
| 1.0.15 | 186 | 4/11/2025 |
| 1.0.14 | 211 | 4/11/2025 |
| 1.0.13 | 204 | 4/11/2025 |
| 1.0.12 | 218 | 4/9/2025 |
| 1.0.11 | 208 | 4/7/2025 |
| 1.0.10 | 206 | 4/7/2025 |
| 1.0.9 | 231 | 4/6/2025 |
| 1.0.8 | 203 | 4/6/2025 |
| 1.0.7 | 127 | 4/5/2025 |
| 1.0.6 | 148 | 4/5/2025 |
| 1.0.5 | 140 | 4/5/2025 |
| 1.0.4 | 206 | 3/31/2025 |
| 1.0.3 | 204 | 3/30/2025 |
| 1.0.2 | 159 | 3/29/2025 |
| 1.0.1 | 516 | 3/24/2025 |
| 1.0.0 | 149 | 3/21/2025 |