Evaluate the Chart SDK free.Start building today.
Add the Chart SDK to your app.
Use a package manager to add the Chart SDK to your application now, or download Syncfusion Studio to browse samples and binaries on your desktop.
Follow these steps to integrate the Blazor Chart component into an existing Blazor Web App using the Interactive Server render mode.
Install NuGet packages
Open the Package Manager Console (PMC) in Visual Studio or the integrated terminal in VS Code, and run the corresponding command for your IDE.
Install-Package Syncfusion.Blazor.Charts
dotnet add package Syncfusion.Blazor.Charts
Register Syncfusion Blazor Service
Register the Syncfusion Blazor service in the Program.cs file after the builder instance is created (the using Syncfusion.Blazor; directive is auto-resolved by the framework).
builder.Services.AddSyncfusionBlazor();
Register Syncfusion license key
Register the Syncfusion license key in the Program.cs file after the AddSyncfusionBlazor() call.
// Register the Syncfusion license key
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY");
Add required script
Add the required component script at the end of the <body> section in the Components/App.razor file to enable Charts functionality.
<script src="_content/Syncfusion.Blazor.Charts/scripts/sf-chart.min.js" type="text/javascript"></script>
Add Blazor Charts component
Add the Blazor Chart component to Components/Home.razor.
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Charts
@rendermode InteractiveServer
<SfChart>
<ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.Category"></ChartPrimaryXAxis>
<ChartSeriesCollection>
<ChartSeries DataSource="@Sales" XName="Month" YName="SalesValue" Type="ChartSeriesType.Column">
</ChartSeries>
</ChartSeriesCollection>
</SfChart>
@code {
public class SalesInfo
{
public string Month { get; set;}
public double SalesValue { get; set;}
}
public List<SalesInfo> Sales = new List<SalesInfo>
{
new SalesInfo { Month = "Jan", SalesValue = 35 },
new SalesInfo { Month = "Feb", SalesValue = 28 },
new SalesInfo { Month = "Mar", SalesValue = 34 },
new SalesInfo { Month = "Apr", SalesValue = 32 },
new SalesInfo { Month = "May", SalesValue = 40 },
new SalesInfo { Month = "Jun", SalesValue = 32 }
};
}
Search a control. Copy its install command.
Search 245 controls across 14 platforms. Each command comes from that control’s getting-started guide, and every package is checked on NuGet, npm, or pub.dev.
Loading controls…
Evaluate faster with your coding agent.
Paste this prompt into GitHub Copilot, Claude Code, Cursor, or any agent. It sets up Syncfusion for your project from ai.syncfusion.com before it writes code.
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com then report the detected platform, installed skills, MCP status, and any required licensing action.
No key needed to install the skills. The MCP servers use the API key that comes with a free account. Agent setup guides
AI assistants
IDEs
Short, task-first walkthroughs.
Need help getting started?
Explore our resources or reach out to our support team for assistance.
Product Updates
Technical Support
AI Solutions
Syncfusion Studio for your desktop.
One small download. Browse every product, download samples and binaries, and set up your IDE and AI assistant.