alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class AccumulationPointRenderEventArgs

    Specifies the event arguments available on accumulation chart point render.

    Inheritance
    object
    AccumulationRenderingEventArgs
    AccumulationPointRenderEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class AccumulationPointRenderEventArgs : AccumulationRenderingEventArgs

    Properties

    Border

    Defines the border for the datalabel.

    Declaration
    public ChartCommonBorder Border { get; set; }
    Property Value
    Type Description
    ChartCommonBorder

    The ChartCommonBorder object representing the border for the data label.

    Fill

    Defines the color for the dataLabel text.

    Declaration
    public string Fill { get; set; }
    Property Value
    Type Description
    string

    Accepts the string value. The default value is empty.

    LinearGradient

    Get or sets the settings for the linear gradient used in the point fill within the SfAccumulationChart component.

    Declaration
    public AccumulationChartLinearGradient LinearGradient { get; set; }
    Property Value
    Type Description
    AccumulationChartLinearGradient

    A LinearGradient that specifies the linear gradient configuration for the point fill. The default value is null.

    Remarks

    Linear gradients transition colors along a straight line determined by X1, Y1, X2, and Y2. When set, the specified linear gradient overrides the series-level fill for the current point only.

    Examples
    @using Syncfusion.Blazor.Charts 
    
    <SfAccumulationChart PointRender="OnPointRender"> 
        <AccumulationChartSeriesCollection> 
            <AccumulationChartSeries DataSource="@Data" 
                                     XName="Category" 
                                     YName="Value" 
                                     Type="AccumulationType.Pie" /> 
        </AccumulationChartSeriesCollection> 
    </SfAccumulationChart> 
    
    @code { 
        void OnPointRender(AccumulationPointRenderEventArgs args) 
        { 
            // Apply a linear gradient to the first point 
            if (args.PointIndex == 0) 
            { 
                args.LinearGradient = new LinearGradient 
                { 
                    X1 = 0, Y1 = 0, X2 = 1, Y2 = 0, 
                    ColorStops = new[] 
                    { 
                        new GradientColorStop { Offset = 0,   Color = "#42A5F5", Opacity = 1 }, 
                        new GradientColorStop { Offset = 100, Color = "#1E88E5", Opacity = 1 } 
                    } 
                }; 
            } 
        } 
    
        public record Item(string Category, double Value); 
        List<Item> Data = new() 
        { 
            new("A", 30), new("B", 25), new("C", 20), new("D", 25) 
        }; 
    }

    Point

    Defines the point.

    Declaration
    public AccumulationPoints Point { get; }
    Property Value
    Type
    AccumulationPoints

    RadialGradient

    Gets or sets the settings for the radial gradient used in the point fill within the SfAccumulationChart component.

    Declaration
    public AccumulationChartRadialGradient RadialGradient { get; set; }
    Property Value
    Type Description
    AccumulationChartRadialGradient

    A RadialGradient that specifies the radial gradient configuration for the point fill. The default value is null.

    Remarks

    Radial gradients transition colors outward from a central point defined by Cx and Cy with radius R. When set, the specified radial gradient overrides the series-level fill for the current point only.

    Examples
    @using Syncfusion.Blazor.Charts 
    
    <SfAccumulationChart PointRender="OnPointRender"> 
        <AccumulationChartSeriesCollection> 
            <AccumulationChartSeries DataSource="@Data" 
                                     XName="Category" 
                                     YName="Value" 
                                     Type="AccumulationType.Doughnut" /> 
        </AccumulationChartSeriesCollection> 
    </SfAccumulationChart> 
    
    @code { 
        void OnPointRender(AccumulationPointRenderEventArgs args) 
        { 
            // Apply a radial gradient to the last point 
            if (args.PointIndex == Data.Count - 1) 
            { 
                args.RadialGradient = new RadialGradient 
                { 
                    Cx = 0.5, Cy = 0.5, R = 0.6, 
                    ColorStops = new[] 
                    { 
                        new GradientColorStop { Offset = 0,   Color = "#FFE082", Opacity = 1 }, 
                        new GradientColorStop { Offset = 100, Color = "#FFCA28", Opacity = 1 } 
                    } 
                }; 
            } 
        } 
    
        public record Item(string Category, double Value); 
        List<Item> Data = new() 
        { 
            new("A", 30), new("B", 25), new("C", 20), new("D", 25) 
        }; 
    }

    Series

    Defines the Series.

    Declaration
    public AccumulationChartSeries Series { get; }
    Property Value
    Type
    AccumulationChartSeries
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved