A Blazor wrapper component for Chart.js to create interactive charts in .NET 6, 7, and 8 applications.
BlazorChartjs is a Blazor component library that wraps the Chart.js JavaScript library, allowing .NET developers to create and manage interactive charts using C#. It provides a type-safe API for configuring charts, handling real-time data updates, and responding to user interactions directly from Blazor applications. The library solves the problem of integrating JavaScript charting libraries into Blazor by abstracting away the JavaScript interop complexity.
Blazor developers building data-rich web applications who need to embed interactive charts without writing extensive JavaScript. It is ideal for .NET teams working with Blazor WebAssembly or Blazor Server on .NET 6, 7, or 8.
Developers choose BlazorChartjs for its seamless integration with Blazor's component model, strong typing that reduces runtime errors, and support for dynamic chart updates. Its unique selling point is enabling full Chart.js functionality through a pure C# API, making chart development more productive for .NET-centric teams.
Creates beautiful charts in Blazor using Chart.js. Library for NET6, NET7 and NET8. Source code and demo available.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Defines chart options, datasets, and styling using C# classes and enums, reducing JavaScript interop errors and providing IntelliSense support in .NET IDEs.
Supports dynamic data additions via methods like AddData and AddDataset, enabling live chart updates without full re-renders, as shown in the GIF examples.
Offers async C# event handlers for interactions (e.g., OnClickAsync, OnHoverAsync), seamlessly fitting into Blazor's component model and state management.
Integrates with Chart.js plugins like chartjs-plugin-datalabels, extending functionality such as on-chart labels without writing custom JavaScript.
Requires manual addition of multiple script tags and namespace imports in _Imports.razor, which can be error-prone compared to automated setups.
Tightly coupled to Chart.js 3.7.1; the README warns that using other versions may cause issues, limiting access to newer Chart.js features.
While it supports core Chart.js, advanced or niche plugins might not be wrapped, forcing developers to fall back to custom JavaScript interop.