menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ErrorBarLineStyle - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ErrorBarLineStyle

    Represent the line style for the ErrorBarSeries

    Inheritance
    System.Object
    ChartLineStyle
    ErrorBarLineStyle
    Inherited Members
    ChartLineStyle.Stroke
    ChartLineStyle.StrokeDashArray
    ChartLineStyle.StrokeDashArrayProperty
    ChartLineStyle.StrokeProperty
    ChartLineStyle.StrokeWidth
    ChartLineStyle.StrokeWidthProperty
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public class ErrorBarLineStyle : ChartLineStyle, IThemeElement

    Constructors

    ErrorBarLineStyle()

    Initializes a new instance of the ErrorBarLineStyle class.

    Declaration
    public ErrorBarLineStyle()

    Fields

    StrokeCapProperty

    Identifies the StrokeCap bindable property.

    Declaration
    public static readonly BindableProperty StrokeCapProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    StrokeCap

    Gets or sets the stroke cap style to customize the stroke cap appearance.

    Declaration
    public ErrorBarStrokeCap StrokeCap { get; set; }
    Property Value
    Type Description
    ErrorBarStrokeCap

    Defaults to Flat

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
        <!-- ... Eliminated for simplicity-->
              <chart:ErrorBarSeries ItemsSource="{Binding ThermalExpansion}"   
                                                        XBindingPath="Name"   
                                                        YBindingPath="Value" />
                    <chart.ErrorBarSeries.HorizontalLineStyle>
                                   <chart:ErrorBarLineStyle StrokeCap=Round />
                    </chart.ErrorBarSeries.HorizontalLineStyle>                                    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
        // Eliminated for simplicity
        ErrorBarSeries errorBarSeries = new ErrorBarSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "Name",
              YBindingPath = "Value",
        };
        errorBarSeries.HorizontalLineStyle = new ErrorBarLineStyle()
        {
             StrokeCap=ErrorBarStrokeCap.Round;
         }
        chart.Series.Add(errorBarSeries);
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved