Class ChartAdornment
Represents chart series points data.
Implements
Inherited Members
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 |
---|
System.Windows.DependencyProperty |
IndexProperty
Identifies the Index dependency property.
Declaration
public static readonly DependencyProperty IndexProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentLabelProperty
Identifies the SegmentLabel dependency property.
Declaration
public static readonly DependencyProperty SegmentLabelProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
XProperty
Identifies the X value dependency property.
Declaration
public static readonly DependencyProperty XProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
YProperty
Identifies the Y value dependency property.
Declaration
public static readonly DependencyProperty YProperty
Field Value
Type |
---|
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
Explicit Interface Implementations
IDisposable.Dispose()
Declaration
void IDisposable.Dispose()