menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartSegment - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartSegment

    Defines the collection of regions that helps to differentiate a line Type series.

    Inheritance
    System.Object
    ChartSubComponent
    ChartSegment
    Inherited Members
    ChartSubComponent.BuildRenderTree(RenderTreeBuilder)
    ChartSubComponent.ChildContent
    ChartSubComponent.Dispose(Boolean)
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartSegment : ChartSubComponent, ISubcomponentTracker

    Constructors

    ChartSegment()

    Declaration
    public ChartSegment()

    Properties

    Color

    Gets or sets the color of the segment series.

    Declaration
    public string Color { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the color of the segment, used to visually distinguish it from other segments in the chart.

    Remarks

    By adjusting this property, you can enhance the visual presentation of the chart by applying specific color codes to different segments.

    DashArray

    Gets or sets the dash array of the segment series.

    Declaration
    public string DashArray { get; set; }
    Property Value
    Type Description
    System.String

    A string that defines the pattern of dashes and gaps used to outline the segment in the series.

    Remarks

    This property provides control over the line style of the chart segment, enabling customization of patterns such as dotted or dashed lines for stylistic variations.

    Value

    Gets or sets the value of the segment series.

    Declaration
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object

    An object representing the value associated with the segment within the chart series.

    Remarks

    This property allows you to assign or retrieve data values specific to this segment, which can affect the visual representation and data interpretation of the series.

    Methods

    OnInitialized()

    Declaration
    protected override void OnInitialized()

    OnParametersSet()

    Declaration
    protected override void OnParametersSet()
    Overrides
    ChartSubComponent.OnParametersSet()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved