mcpField
S
syncfusion-aspnetcore-circular-chart-3d

syncfusion-aspnetcore-circular-chart-3d

github.com/syncfusionDesign & UI052 installsUpdated 2w ago
Repository

About syncfusion-aspnetcore-circular-chart-3d

This skill guides developers implementing Syncfusion 3D pie and doughnut charts in ASP.NET Core. It covers chart configuration, interactive details, and print and export options.

Key features

  1. 01Configure pie and doughnut charts
  2. 02Customize labels, legends, and tooltips
  3. 03Set titles, colors, and styling
  4. 04Handle empty data points
  5. 05Enable printing and chart export

Use cases

  1. 01Show market share or budget breakdowns
  2. 02Present proportional survey results
  3. 03Display category data in analytics dashboards

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-circular-chart-3d

After installing, type/syncfusion-aspnetcore-circular-chart-3din Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
api-reference.md
data-labels.md
getting-started.md
legend-tooltips.md
pie-donut-variations.md
print-export.md
titles-empty-points.md

Details

From the project README

Syncfusion ASP.NET Core 3D Circular Chart

Syncfusion's 3D Circular Chart provides a powerful component for visualizing proportional data using 3D Circular Chart formats. This skill guides you through implementing, configuring, and customizing pie/donut charts in ASP.NET Core applications, from basic setup to advanced interactive features.

When to Use This Skill

Use this skill when you need to:

  • Create a pie or donut chart to display proportional data
  • Configure and format data labels, legends, and tooltips
  • Customize chart appearance with titles, colors, and styling
  • Handle empty or missing data points
  • Enable interactive features like print and export
  • Implement user interactions with pie chart slices
  • Configure chart behavior in ASP.NET Core applications

Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and NuGet package setup
  • Adding tag helpers and script references
  • Creating your first pie chart
  • Basic ASP.NET Core configuration
  • Project structure setup
Pie and Donut Variations

📄 Read: references/pie-donut-variations.md

  • Rendering pie series vs donut series
  • Radius customization and configuration
  • Inner radius for donut effect
  • Multiple series rendering
  • Color mapping and styling
Data Labels

📄 Read: references/data-labels.md

  • Enabling and positioning data labels
  • Label templates and custom formatting
  • Connector lines and styling
  • Text mapping from data source
  • Percentage and value formatting
  • Label customization with events
Legend and Tooltips

📄 Read: references/legend-tooltips.md

  • Legend configuration and positioning
  • Legend alignment, sizing, and shapes
  • Legend paging and navigation
  • Tooltip enabling and formatting
  • Custom tooltip templates
  • Interactive tooltip behavior
  • Styling and appearance
Titles, Subtitles, and Empty Points

📄 Read: references/titles-empty-points.md

  • Adding titles and subtitles
  • Title customization and styling
  • Handling empty/null data points
  • Empty point modes (Gap, Average, Drop, Zero)
  • Customizing empty point appearance
  • Subtitle styling and positioning
Print and Export

📄 Read: references/print-export.md

  • Printing pie/donut charts
  • Enabling export with enableExport="true"
  • Exporting to image formats (JPEG, PNG, SVG)
  • PDF export functionality
  • Export configuration options
  • Button integration for user interactions

Quick Start

Here's a minimal working example to get started with a pie chart:

// CSHTML View
<ejs-circularchart3d id="chartContainer" title="Sales Distribution" tilt="-45">
    <e-circularchart3d-legendsettings visible="true" position="@Syncfusion.EJ2.Charts.LegendPosition.Right">
    </e-circularchart3d-legendsettings>
    <e-circularchart3d-series-collection>
        <e-circularchart3d-series dataSource="@chartData" xName="Category" yName="Value">
            <e-circularchart3d-series-datalabel visible="true" position="@Syncfusion.EJ2.Charts.CircularChart3DLabelPosition.Outside">
                <e-connectorstyle length="40px"></e-connectorstyle>
            </e-circularchart3d-series-datalabel>
        </e-circularchart3d-series>
    </e-circularchart3d-series-collection>
</ejs-circularchart3d>
// Code-behind
public class ChartData
{
    public string Category { get; set; }
    public double Value { get; set; }
}

// Controller
List<ChartData> chartData = new()
{
    new ChartData { Category = "Product A", Value = 35 },
    new ChartData { Category = "Product B", Value = 28 },
    new ChartData { Category = "Product C", Value = 37 }
};

Common Patterns

Pattern 1: Pie Chart with Formatted Data Labels
<e-circularchart3d-series-datalabel visible="true" format="n1" position="@Syncfusion.EJ2.Charts.CircularChart3DLabelPosition.Outside">
    <e-font size="12px" fontWeight="600"></e-font>
    <e-connectorstyle length="50px" color="gray"></e-connectorstyle>
</e-circularchart3d-series-datalabel>
Pattern 2: Donut Chart Configuration
<e-circularchart3d-series dataSource="@data" xName="X" yName="Y" innerRadius="50%">
</e-circularchart3d-series>
Pattern 3: Legend with Customized Appearance
<e-circularchart3d-legendsettings visible="true" position="@Syncfusion.EJ2.Charts.LegendPosition.Bottom" 
    alignment="@Syncfusion.EJ2.Charts.Alignment.Center" width="100%">
</e-circularchart3d-legendsettings>
Pattern 4: Tooltip with Custom Format
<e-circularchart3d-tooltipsettings enable="true" format="${point.x}: ${point.y}%"></e-circularchart3d-tooltipsettings>

Key Configuration Properties

PropertyPurposeDefault
TypeSeries type (Pie for pie, Donut via InnerRadius)Pie
RadiusPie radius percentage80%
InnerRadiusInner radius for donut effect (0-100%)0%
DataLabel.VisibleShow/hide data labelsfalse
DataLabel.PositionLabel position (Inside/Outside)Inside
LegendSettings.VisibleShow/hide legendtrue
Tooltip.EnableEnable tooltip on hoverfalse
EmptyPointSettings.ModeHandle null values (Gap/Average/Drop/Zero)Gap

Common Use Cases

  1. Market Share Visualization: Display product or market segment distribution using pie/donut charts
  2. Budget Breakdown: Show expense categories as pie slices with percentages
  3. Survey Results: Visualize survey response distribution proportionally
  4. Status Distribution: Display project status distribution (Completed, In Progress, Pending, etc.)
  5. Sales Performance: Compare sales by region or product category
  6. Inventory Levels: Show inventory distribution across warehouses or categories
  7. Dashboard Analytics: Include pie/donut charts in business analytics dashboards

Next Steps

  • Read the Getting Started guide to set up your first chart
  • Explore Pie and Donut Variations for different visual styles
  • Configure Data Labels for better data representation
  • Add Legends and Tooltips for interactive data exploration
  • Handle Titles and Empty Points for completeness
  • Enable Print and Export for report generation

Comments

Markdown supported