Class SfSunburstChart
Represents the Chart control which is used to visualize the data graphically.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.SunburstChart
Assembly: Syncfusion.SfSunburstChart.WPF.dll
Syntax
public class SfSunburstChart : Control, IDisposable
Constructors
SfSunburstChart()
Initializes a new instance of the SfSunburstChart class.
Declaration
public SfSunburstChart()
Fields
AnimationDurationProperty
The DependencyProperty for AnimationDuration property.
Declaration
public static readonly DependencyProperty AnimationDurationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AnimationTypeProperty
The DependencyProperty for AnimationType property.
Declaration
public static readonly DependencyProperty AnimationTypeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BehaviorsProperty
The DependencyProperty for Behaviors property.
Declaration
public static readonly DependencyProperty BehaviorsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ColorModelProperty
The DependencyProperty for ColorModel property.
Declaration
public static readonly DependencyProperty ColorModelProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DataLabelInfoProperty
The DependencyProperty for DataLabelInfo property.
Declaration
public static readonly DependencyProperty DataLabelInfoProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableAnimationProperty
The DependencyProperty for EnableAnimation property.
Declaration
public static readonly DependencyProperty EnableAnimationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EndAngleProperty
The DependencyProperty for EndAngle property.
Declaration
public static readonly DependencyProperty EndAngleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HeaderProperty
The DependencyProperty for Header property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
InnerRadiusProperty
The DependencyProperty for InnerRadius property.
Declaration
public static readonly DependencyProperty InnerRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemsSourceProperty
The DependencyProperty for ItemsSource property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LegendProperty
The DependencyProperty for Legend property.
Declaration
public static readonly DependencyProperty LegendProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LevelsProperty
The DependencyProperty for Levels property.
Declaration
public static readonly DependencyProperty LevelsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PaletteProperty
The DependencyProperty for Palette property.
Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RadiusProperty
The DependencyProperty for Radius property.
Declaration
public static readonly DependencyProperty RadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StartAngleProperty
The DependencyProperty for StartAngle property.
Declaration
public static readonly DependencyProperty StartAngleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StrokeProperty
The DependencyProperty for Stroke property.
Declaration
public static readonly DependencyProperty StrokeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StrokeThicknessProperty
The DependencyProperty for StrokeThickness property.
Declaration
public static readonly DependencyProperty StrokeThicknessProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SunburstResourceDictionaryProperty
The Dependency property for Syncfusion.UI.Xaml.SunburstChart.SfSunburstChart.SunburstResourceDictionary
Declaration
public static readonly DependencyProperty SunburstResourceDictionaryProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ValueMemberPathProperty
The DependencyProperty for ValueMemberPath property.
Declaration
public static readonly DependencyProperty ValueMemberPathProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AnimationDuration
Gets or sets the duration of animation in milliseconds.
Declaration
public int AnimationDuration { get; set; }
Property Value
Type |
---|
System.Int32 |
AnimationType
Gets or sets the type of animations.
Declaration
public AnimationType AnimationType { get; set; }
Property Value
Type |
---|
AnimationType |
Behaviors
Gets or sets the SunburstBehavior for sunburst chart.
Declaration
public ObservableCollection<SunburstBehavior> Behaviors { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<SunburstBehavior> |
ColorModel
Gets or sets the color model for sunburst chart.
Declaration
public SunburstColorModel ColorModel { get; set; }
Property Value
Type |
---|
SunburstColorModel |
DataLabelInfo
Gets or sets the data labels for sunburst chart.
Declaration
public SunburstDataLabelInfo DataLabelInfo { get; set; }
Property Value
Type |
---|
SunburstDataLabelInfo |
DataLabels
Gets the collection of SunburstDataLabel.
Declaration
public ObservableCollection<SunburstDataLabel> DataLabels { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<SunburstDataLabel> |
EnableAnimation
Gets or sets a value indicating whether chart should be animated while loading.
Declaration
public bool EnableAnimation { get; set; }
Property Value
Type |
---|
System.Boolean |
EndAngle
Gets or sets the end angle for the sunburst chart.
Declaration
public double EndAngle { get; set; }
Property Value
Type |
---|
System.Double |
Header
Gets or sets the title for chart.
Declaration
public object Header { get; set; }
Property Value
Type |
---|
System.Object |
InnerRadius
Gets or sets the coefficient value for defining sunburst hole size. Value must be specified from 0 to 1.
Declaration
public double InnerRadius { get; set; }
Property Value
Type |
---|
System.Double |
ItemsSource
Gets or sets an IEnumerable source used to generate Chart.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
Type |
---|
System.Collections.IEnumerable |
Legend
Gets or sets the Legend for sunburst chart.
Declaration
public SunburstLegend Legend { get; set; }
Property Value
Type |
---|
SunburstLegend |
Levels
Gets or sets the levels for sunburst chart.
Declaration
public ObservableCollection<SunburstHierarchicalLevel> Levels { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<SunburstHierarchicalLevel> |
Palette
Gets or sets the color palette for the sunburst chart.
Declaration
public SunburstColorPalette Palette { get; set; }
Property Value
Type |
---|
SunburstColorPalette |
Radius
Gets or sets the coefficient value for defining sunburst size. Value must be specified from 0 to 1.
Declaration
public double Radius { get; set; }
Property Value
Type |
---|
System.Double |
Segments
Gets the collection of SunburstSegment.
Declaration
public ObservableCollection<SunburstSegment> Segments { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<SunburstSegment> |
StartAngle
Gets or sets the start angle for the sunburst chart.
Declaration
public double StartAngle { get; set; }
Property Value
Type |
---|
System.Double |
Stroke
Gets or sets the stroke for the sunburst chart.
Declaration
public Brush Stroke { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
StrokeThickness
Gets or sets the stroke thickness for the sunburst chart.
Declaration
public double StrokeThickness { get; set; }
Property Value
Type |
---|
System.Double |
ValueMemberPath
Gets or sets the property path of the value data in ItemsSource.
Declaration
public string ValueMemberPath { get; set; }
Property Value
Type |
---|
System.String |
Methods
Dispose()
Dispose sunburt objects
Declaration
public void Dispose()
MeasureOverride(Size)
Method used to measure the chart.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | Measured size. |
Returns
Type | Description |
---|---|
System.Windows.Size | The size. |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnMouseLeave(MouseEventArgs)
Called when the mouse was exited from the chart.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | Event args. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Called when the mouse left button down on the chart.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | Event args. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called when the mouse left button up on the chart.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | Event args. |
OnMouseMove(MouseEventArgs)
Called when the mouse moved on the chart.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | Event args. |
Events
SegmentCreated
Occurs when SunburstSegment is created.
Declaration
public event EventHandler<SunburstSegmentCreatedEventArgs> SegmentCreated
Event Type
Type |
---|
System.EventHandler<SunburstSegmentCreatedEventArgs> |
SelectionChanged
Occurs when SunburstSegment is selected.
Declaration
public event EventHandler<SunburstSelectionChangedEventArgs> SelectionChanged
Event Type
Type |
---|
System.EventHandler<SunburstSelectionChangedEventArgs> |