WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartAdornment

    Show / Hide Table of Contents

    Class ChartAdornment

    Represents chart series points data.

    Inheritance
    System.Object
    ChartSegment
    ChartAdornment
    ChartAccumulationAdornment
    ChartPieAdornment
    Implements
    System.IDisposable
    Inherited Members
    ChartSegment.CenterOfViewportPropertyKey
    ChartSegment.SeriesPropertyKey
    ChartSegment.zRange
    ChartSegment.ToolTipProperty
    ChartSegment.InteriorProperty
    ChartSegment.StrokeProperty
    ChartSegment.StrokeThicknessProperty
    ChartSegment.DefaultTemplatePropertyKey
    ChartSegment.HighlightedProperty
    ChartSegment.ItemProperty
    ChartSegment.SeriesProperty
    ChartSegment.IsSelectedProperty
    ChartSegment.CenterOfViewportProperty
    ChartSegment.GetCenterOfViewport(DependencyObject)
    ChartSegment.Draw3DSegment(IChartTransformer)
    ChartSegment.SetXRange(Double[])
    ChartSegment.SetYRange(Double[])
    ChartSegment.SetZRange(Double[])
    ChartSegment.SetPointsForAllSeries(ChartSeries, ChartAxis)
    ChartSegment.OnPropertyChanged(DependencyPropertyChangedEventArgs)
    ChartSegment.Dispose()
    ChartSegment.DisposeSegment()
    ChartSegment.IsSelected
    ChartSegment.Series
    ChartSegment.Item
    ChartSegment.Geometry3D
    ChartSegment.Geometry3DGroup
    ChartSegment.XDataMeasure
    ChartSegment.YDataMeasure
    ChartSegment.ZDataMeasure
    ChartSegment.CorrespondingPoints
    ChartSegment.ToolTip
    ChartSegment.Interior
    ChartSegment.Stroke
    ChartSegment.StrokeThickness
    ChartSegment.DefaultTemplate
    ChartSegment.Highlighted
    Namespace: Syncfusion.Windows.Chart
    Assembly: Syncfusion.Chart.Wpf.dll
    Syntax
    public class ChartAdornment : ChartSegment, IDisposable
    Remarks

    Chart adornments are used to show additional information about displaying series. Adornments are widely used to simplify chart look and give user more idea of information that is represented via chart.

    Examples

    XAML:

    
      <sfchart:Chart>
                <sfchart:ChartArea Background="LightGray" GridBackground="White">  
                    <sfchart:ChartSeries Type="Column" >
                   <sfchart:ChartSeries.AdornmentsInfo>
                            <sfchart:ChartAdornmentInfo 
    LabelContentPath="DataPoint.X" Visible="True"  />
                        </sfchart:ChartSeries.AdornmentsInfo>
                    </sfchart:ChartSeries>       
                </sfchart:ChartArea>          
            </sfchart:Chart>

    C#:

    ChartSeries series = Chart1.Areas[0].Series[0];      
    ChartAdornmentInfo adornments = series.AdornmentsInfo;
    adornments.LabelContentPath = "DataPoint.X";
    adornments.Visible = true;

    Fields

    DataPointProperty

    Identifies the DataPoint dependency property.

    Declaration
    public static readonly DependencyProperty DataPointProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IndexProperty

    Identifies the Index dependency property.

    Declaration
    public static readonly DependencyProperty IndexProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentLabelProperty

    Identifies the SegmentLabel dependency property.

    Declaration
    public static readonly DependencyProperty SegmentLabelProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    XProperty

    Identifies the X value dependency property.

    Declaration
    public static readonly DependencyProperty XProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    YProperty

    Identifies the Y value dependency property.

    Declaration
    public static readonly DependencyProperty YProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    Index

    Gets or sets the index.

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    System.Int32

    The index.

    SegmentLabel

    Gets or sets the segment label. This is a dependency property.

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

    The segment label type of System.String.

    Remarks

    Allows specify value that should be displayed for the segment's adorner.

    Examples

    This property is not intended to be used from user code. All segment labels are assigned automatically.

    X

    Gets or sets the X. This is a dependency property.

    Declaration
    public double X { get; set; }
    Property Value
    Type Description
    System.Double

    The X value.

    Examples

    This property is not intended to be used from user code. All segment positions are assigned automatically with respect to segments.

    Y

    Gets or sets the Y. This is a dependency property.

    Declaration
    public double Y { get; set; }
    Property Value
    Type Description
    System.Double

    The Y value.

    Examples

    This property is not intended to be used from user code. All segment positions are assigned automatically with respect to segments.

    Methods

    Update(IChartTransformer)

    Updates the real coordinates of segment with respect to chart type.

    Declaration
    public override void Update(IChartTransformer transformer)
    Parameters
    Type Name Description
    Syncfusion.Windows.Chart.IChartTransformer transformer

    Instance of the class that implements Syncfusion.Windows.Chart.IChartTransformer

    Overrides
    ChartSegment.Update(IChartTransformer)

    Explicit Interface Implementations

    IDisposable.Dispose()

    Declaration
    void IDisposable.Dispose()

    Implements

    System.IDisposable

    See Also

    AnnotationsCollection
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved