Showcase

Blazor Charts

BlazorExpress.ChartJS provides chart components on top of Chart.js to visualize data. It contains a rich UI gallery of charts that cater to all charting scenarios. Its high performance helps render large amounts of data quickly.

Blazor Charts Example #

Chart Types #

At this moment we are supporting eight blazor chart types.
  1. Bar Chart
  2. Bubble Chart
  3. Doughnut Chart
  4. Line Chart
  5. Pie Chart
  6. Polar Area Chart
  7. Radar Chart
  8. Scatter Chart
For fixes to problems people hit in real screens, such as charts that do not grow back in Bootstrap rows, days missing from query results, pie charts with too many slices and colours that move between categories, see Chart Scenarios.
INFO
BarChart and LineChart now support mixed bar/line datasets, and BubbleChart is available alongside the rest of the chart gallery.

Chart Components — Dedicated Library

Chart components have been moved to the dedicated BlazorExpress.ChartJS library to support independent feature additions and easier maintenance. Complete the following steps in the Blazor project that renders the charts.

  1. Install the package used by these demos:
    dotnet add package BlazorExpress.ChartJS --version 2.0.0
  2. Import the component namespace in _Imports.razor:
    @using BlazorExpress.ChartJS
  3. Load the browser scripts in this order from the host page, after the Blazor framework script. BlazorExpress.ChartJS 2.0.0 is built for Chart.js 4.6.1. The data-labels plugin is needed only when a chart uses data labels, and time axes need no extra date-adapter script.
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.6.1/chart.umd.js" integrity="sha512-Vj/VnWZpOof68AJOIBxA90+7KQccA7eISngKbl18q5MQO3KnvO1a0z76Q+7hj8+iDIwETpKUBPN+cLy7PxvTEQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-plugin-datalabels/2.2.0/chartjs-plugin-datalabels.min.js" integrity="sha512-JPcRR8yFa8mmCsfrw4TNte1ZvF1e3+1SdGMslZvmrzDYxS69J7J49vkFL8u6u8PlPJK+H3voElBtUCzaXj+6ig==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="_content/BlazorExpress.ChartJS/blazorexpress.chartjs.js"></script>

Upgrading from 1.x? Version 2.0.0 changes some defaults and behaviour. Read the 2.0.0 breaking changes before you update.

See the BlazorExpress.ChartJS website and GitHub repository for current package documentation. We also recommend checking the original BlazorExpress.ChartJS demos when adapting advanced examples.

For a complete charts setup walkthrough, see the Getting Started — Charts Setup section.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.