Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenPieSeries<TItem>

    Renders pie series in RadzenChart.

    Inheritance
    object
    ComponentBase
    RadzenChartComponentBase
    CartesianSeries<TItem>
    RadzenPieSeries<TItem>
    RadzenDonutSeries<TItem>
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IChartSeries
    IDisposable
    Inherited Members
    CartesianSeries<TItem>.ComposeCategory(ScaleBase)
    CartesianSeries<TItem>.ComposeValue(ScaleBase)
    CartesianSeries<TItem>.IsDate(string)
    CartesianSeries<TItem>.IsNumeric(string)
    CartesianSeries<TItem>.GetCategories()
    CartesianSeries<TItem>.TransformCategoryScale(ScaleBase)
    CartesianSeries<TItem>.TransformValueScale(ScaleBase)
    CartesianSeries<TItem>.RenderOverlays(ScaleBase, ScaleBase)
    CartesianSeries<TItem>.SetParametersAsync(ParameterView)
    CartesianSeries<TItem>.Initialize()
    CartesianSeries<TItem>.InsidePolygon(Point, Point[])
    CartesianSeries<TItem>.RenderTooltip(object)
    CartesianSeries<TItem>.RenderSharedTooltipItem(object)
    CartesianSeries<TItem>.GetTooltipPosition(object)
    CartesianSeries<TItem>.RenderLegendItem()
    CartesianSeries<TItem>.GetMedian()
    CartesianSeries<TItem>.GetMean()
    CartesianSeries<TItem>.GetMode()
    CartesianSeries<TItem>.GetTrend()
    CartesianSeries<TItem>.GetTitle()
    CartesianSeries<TItem>.TooltipLabel(TItem)
    CartesianSeries<TItem>.TooltipTitle(TItem)
    CartesianSeries<TItem>.TooltipValue(TItem)
    CartesianSeries<TItem>.PickColor(int, IEnumerable<string>, string, IList<SeriesColorRange>, double)
    CartesianSeries<TItem>.Dispose()
    CartesianSeries<TItem>.InvokeClick(EventCallback<SeriesClickEventArgs>, object)
    CartesianSeries<TItem>.Title
    CartesianSeries<TItem>.ChildContent
    CartesianSeries<TItem>.TooltipTemplate
    CartesianSeries<TItem>.Overlays
    CartesianSeries<TItem>.CategoryProperty
    CartesianSeries<TItem>.Visible
    CartesianSeries<TItem>.Hidden
    CartesianSeries<TItem>.ShowInLegend
    CartesianSeries<TItem>.ValueProperty
    CartesianSeries<TItem>.RenderingOrder
    CartesianSeries<TItem>.Data
    CartesianSeries<TItem>.Items
    CartesianSeries<TItem>.Markers
    CartesianSeries<TItem>.MarkerType
    CartesianSeries<TItem>.MarkerSize
    RadzenChartComponentBase.ShouldRefreshChart(ParameterView)
    RadzenChartComponentBase.ValidateParameters()
    RadzenChartComponentBase.DidParameterChange<T>(ParameterView, string, T)
    RadzenChartComponentBase.Chart
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenPieSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IDisposable
    Type Parameters
    Name Description
    TItem

    The type of the series data item.

    Constructors

    RadzenPieSeries()

    Renders pie series in RadzenChart.

    Declaration
    public RadzenPieSeries()

    Properties

    Color

    Gets the color.

    Declaration
    public override string Color { get; }
    Property Value
    Type Description
    string

    The color.

    Overrides
    CartesianSeries<TItem>.Color

    CoordinateSystem

    Gets the coordinate system of the series.

    Declaration
    public override CoordinateSystem CoordinateSystem { get; }
    Property Value
    Type Description
    CoordinateSystem

    Coordinate system enum value.

    Overrides
    CartesianSeries<TItem>.CoordinateSystem

    CurrentRadius

    Returns the current radius - either a specified Radius or automatically calculated one.

    Declaration
    protected double CurrentRadius { get; }
    Property Value
    Type Description
    double

    Fills

    The fill colors of the pie segments. Used as the background of the segments.

    Declaration
    [Parameter]
    public IEnumerable<string> Fills { get; set; }
    Property Value
    Type Description
    IEnumerable<string>

    PositiveItems

    Stores Data filtered to items greater than zero as an IList of TItem.

    Declaration
    protected IList<TItem> PositiveItems { get; }
    Property Value
    Type Description
    IList<TItem>

    The items.

    Radius

    Specifies the radius of the pie. Not set by default - the pie takes as much size of the chart as possible.

    Declaration
    [Parameter]
    public double? Radius { get; set; }
    Property Value
    Type Description
    double?

    StartAngle

    Gets or sets the start angle from which segments are rendered (clockwise). Set to 90 by default. Top is 90, right is 0, bottom is 270, left is 180.

    Declaration
    [Parameter]
    public double StartAngle { get; set; }
    Property Value
    Type Description
    double

    StrokeWidth

    The stroke width of the segments in pixels. By default set to 0.

    Declaration
    [Parameter]
    public double StrokeWidth { get; set; }
    Property Value
    Type Description
    double

    The width of the stroke.

    Strokes

    The stroke colors of the pie segments.

    Declaration
    [Parameter]
    public IEnumerable<string> Strokes { get; set; }
    Property Value
    Type Description
    IEnumerable<string>

    TotalAngle

    Gets or sets the total angle of the pie in degrees. Set to 360 by default which renders a full circle. Set to 180 to render a half circle or

    Declaration
    [Parameter]
    public double TotalAngle { get; set; }
    Property Value
    Type Description
    double

    X

    Specifies the x coordinate of the pie center. Not set by default which centers pie horizontally.

    Declaration
    [Parameter]
    public double? X { get; set; }
    Property Value
    Type Description
    double?

    The x.

    Y

    Specifies the y coordinate of the pie center. Not set by default which centers pie vertically.

    Declaration
    [Parameter]
    public double? Y { get; set; }
    Property Value
    Type Description
    double?

    The y.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Renders pie series in RadzenChart.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Contains(double, double, double)

    Determines if the series contains the specified coordinates with a given tolerance.

    Declaration
    public override bool Contains(double x, double y, double tolerance)
    Parameters
    Type Name Description
    double x

    The x.

    double y

    The y.

    double tolerance

    The tolerance.

    Returns
    Type Description
    bool

    true if the series contains the coordinates; otherwise, false.

    Overrides
    CartesianSeries<TItem>.Contains(double, double, double)

    DataAt(double, double)

    Returns the data at the specified coordinates;

    Declaration
    public override (object, Point) DataAt(double x, double y)
    Parameters
    Type Name Description
    double x

    The x.

    double y

    The y.

    Returns
    Type Description
    (object, Point)
    Overrides
    CartesianSeries<TItem>.DataAt(double, double)

    DegToRad(double)

    Converts degrees to radians.

    Declaration
    protected double DegToRad(double degrees)
    Parameters
    Type Name Description
    double degrees
    Returns
    Type Description
    double

    GetDataLabels(double, double)

    Returns data chart position

    Declaration
    public override IEnumerable<ChartDataLabel> GetDataLabels(double offsetX, double offsetY)
    Parameters
    Type Name Description
    double offsetX
    double offsetY
    Returns
    Type Description
    IEnumerable<ChartDataLabel>
    Overrides
    CartesianSeries<TItem>.GetDataLabels(double, double)

    MeasureLegend()

    Measures the legend.

    Declaration
    public override double MeasureLegend()
    Returns
    Type Description
    double

    System.Double.

    Overrides
    CartesianSeries<TItem>.MeasureLegend()

    Render(ScaleBase, ScaleBase)

    Renders the series with the specified category and value scales.

    Declaration
    public override RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale)
    Parameters
    Type Name Description
    ScaleBase categoryScale

    The category scale.

    ScaleBase valueScale

    The value scale.

    Returns
    Type Description
    RenderFragment

    RenderFragment.

    Overrides
    CartesianSeries<TItem>.Render(ScaleBase, ScaleBase)

    RenderLegendItem(bool)

    Renders the legend item for this series.

    Declaration
    protected override RenderFragment RenderLegendItem(bool clickable)
    Parameters
    Type Name Description
    bool clickable
    Returns
    Type Description
    RenderFragment
    Overrides
    CartesianSeries<TItem>.RenderLegendItem(bool)

    Segment(double, double, double, double, double, double)

    Creates SVG path that renders the specified segment.

    Declaration
    protected string Segment(double x, double y, double radius, double innerRadius, double startAngle, double endAngle)
    Parameters
    Type Name Description
    double x

    The x.

    double y

    The y.

    double radius

    The radius.

    double innerRadius

    The inner radius.

    double startAngle

    The start angle.

    double endAngle

    The end angle.

    Returns
    Type Description
    string

    ToCartesian(double, double, double, double)

    Converts radial coordinates to to cartesian.

    Declaration
    protected (double X, double Y) ToCartesian(double x, double y, double radius, double degrees)
    Parameters
    Type Name Description
    double x

    The x.

    double y

    The y.

    double radius

    The radius.

    double degrees

    The degrees.

    Returns
    Type Description
    (double a, double b)

    TooltipClass(TItem)

    Gets the tooltip CSS class.

    Declaration
    protected override string TooltipClass(TItem item)
    Parameters
    Type Name Description
    TItem item

    The item.

    Returns
    Type Description
    string
    Overrides
    CartesianSeries<TItem>.TooltipClass(TItem)

    TooltipStyle(TItem)

    Gets the tooltip inline style.

    Declaration
    protected override string TooltipStyle(TItem item)
    Parameters
    Type Name Description
    TItem item

    The item.

    Returns
    Type Description
    string
    Overrides
    CartesianSeries<TItem>.TooltipStyle(TItem)

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IChartSeries
    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT