PieChart
Class
Assembly LiveChartsCore.SkiaSharpView.Avalonia
Namespace LiveChartsCore.SkiaSharpView.Avalonia
Summary:
Object
=>
Animatable
=>
Visual
=>
Layoutable
=>
Interactive
=>
InputElement
=>
Control
=>
UserControl
=>
PieChart
Constructors
// Initializes a new instance of the PieChart class.
Properties
Gets or sets the Synchronization Context, use this property to
use an external object to handle multi threading synchronization.
Type: Object
Type: Object
Gets the core canvas.
Type: MotionCanvas<SkiaSharpDrawingContext>
Type: MotionCanvas<SkiaSharpDrawingContext>
Gets or sets the draw margin, if this property is null, the library will calculate a margin, this margin is the distance
between the view bounds and the drawable area.
Type: Margin
Type: Margin
Gets or sets the chart title.
Type: VisualElement<SkiaSharpDrawingContext>
Type: VisualElement<SkiaSharpDrawingContext>
Gets or sets the series.
Type: IEnumerable<ISeries>
Type: IEnumerable<ISeries>
Gets or sets the visual elements.
Type: IEnumerable<ChartElement<SkiaSharpDrawingContext>>
Type: IEnumerable<ChartElement<SkiaSharpDrawingContext>>
Gets or sets a value indicating whether the pie slices will be drawn clockwise, default is true.
Type: Boolean
Type: Boolean
Gets or sets the initial rotation in degrees, this angle specifies where the first pie slice will be drawn, then the remaining
slices will stack according to its corresponding position.
Type: Double
Type: Double
Gets or sets the animations speed.
Type: TimeSpan
Type: TimeSpan
Gets or sets the tooltip position.
Type: TooltipPosition
Type: TooltipPosition
Gets or sets the tooltip background paint, when null the library will use the default background paint.
Type: IPaint<SkiaSharpDrawingContext>
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the tooltip default text paint, when null the library will use the default text paint.
Type: IPaint<SkiaSharpDrawingContext>
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the tooltip.
Type: IChartTooltip<SkiaSharpDrawingContext>
Type: IChartTooltip<SkiaSharpDrawingContext>
Gets or sets the legend position.
Type: LegendPosition
Type: LegendPosition
Gets or sets the legend background paint, when null the library will use the default background paint.
Type: IPaint<SkiaSharpDrawingContext>
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the legend default text paint, when null the library will use the default text paint.
Type: IPaint<SkiaSharpDrawingContext>
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the legend.
Type: IChartLegend<SkiaSharpDrawingContext>
Type: IChartLegend<SkiaSharpDrawingContext>
Gets or sets a value indicating whether the automatic updates are enabled.
Type: Boolean
Type: Boolean
Gets or sets the updater throttler, this property controls the interval where the user interface updates.
Type: TimeSpan
Type: TimeSpan
Gets or sets a command to execute when the chart update started.
Type: ICommand
Type: ICommand
Gets or sets a command to execute when the pointer is pressed on the chart.
Type: ICommand
Type: ICommand
Gets or sets a command to execute when the pointer is released on the chart.
Type: ICommand
Type: ICommand
Gets or sets a command to execute when the pointer moves over the chart.
Type: ICommand
Type: ICommand
Gets or sets a command to execute when the pointer goes down on a data or data points.
Type: ICommand
Type: ICommand
Gets or sets a command to execute when the pointer goes down on a chart point.
Type: ICommand
Type: ICommand
Gets or sets a command to execute when the pointer goes down on a visual element(s).
Type: ICommand
Type: ICommand
Public static fields
The draw margin property
Type: AvaloniaProperty<Margin>
Type: AvaloniaProperty<Margin>
The sync context property.
Type: AvaloniaProperty<Object>
Type: AvaloniaProperty<Object>
The title property.
Type: AvaloniaProperty<VisualElement<SkiaSharpDrawingContext>>
Type: AvaloniaProperty<VisualElement<SkiaSharpDrawingContext>>
The series property
Type: AvaloniaProperty<IEnumerable<ISeries>>
Type: AvaloniaProperty<IEnumerable<ISeries>>
The visual elements property
Type: AvaloniaProperty<IEnumerable<ChartElement<SkiaSharpDrawingContext>>>
Type: AvaloniaProperty<IEnumerable<ChartElement<SkiaSharpDrawingContext>>>
The IsClockwise property
Type: AvaloniaProperty<Boolean>
Type: AvaloniaProperty<Boolean>
The initial rotation property
Type: AvaloniaProperty<Double>
Type: AvaloniaProperty<Double>
The maximum angle property
Type: AvaloniaProperty<Double>
Type: AvaloniaProperty<Double>
The total property
Type: AvaloniaProperty<Nullable<Double>>
Type: AvaloniaProperty<Nullable<Double>>
The start property
Type: AvaloniaProperty<Double>
Type: AvaloniaProperty<Double>
The animations speed property
Type: AvaloniaProperty<TimeSpan>
Type: AvaloniaProperty<TimeSpan>
The easing function property
Type: AvaloniaProperty<Func<Single, Single>>
Type: AvaloniaProperty<Func<Single, Single>>
The tool tip position property
Type: AvaloniaProperty<TooltipPosition>
Type: AvaloniaProperty<TooltipPosition>
The tooltip background paint property
Type: AvaloniaProperty<IPaint<SkiaSharpDrawingContext>>
Type: AvaloniaProperty<IPaint<SkiaSharpDrawingContext>>
The tooltip text paint property
Type: AvaloniaProperty<IPaint<SkiaSharpDrawingContext>>
Type: AvaloniaProperty<IPaint<SkiaSharpDrawingContext>>
The tooltip text size property
Type: AvaloniaProperty<Nullable<Double>>
Type: AvaloniaProperty<Nullable<Double>>
The legend position property
Type: AvaloniaProperty<LegendPosition>
Type: AvaloniaProperty<LegendPosition>
The legend background paint property
Type: AvaloniaProperty<IPaint<SkiaSharpDrawingContext>>
Type: AvaloniaProperty<IPaint<SkiaSharpDrawingContext>>
The legend text paint property
Type: AvaloniaProperty<IPaint<SkiaSharpDrawingContext>>
Type: AvaloniaProperty<IPaint<SkiaSharpDrawingContext>>
The legend text size property
Type: AvaloniaProperty<Nullable<Double>>
Type: AvaloniaProperty<Nullable<Double>>
The data pointer down command property
Type: AvaloniaProperty<ICommand>
Type: AvaloniaProperty<ICommand>
The pointer pressed command.
Type: AvaloniaProperty<ICommand>
Type: AvaloniaProperty<ICommand>
The pointer released command.
Type: AvaloniaProperty<ICommand>
Type: AvaloniaProperty<ICommand>
The pointer move command.
Type: AvaloniaProperty<ICommand>
Type: AvaloniaProperty<ICommand>
The data pointer down command property
Type: AvaloniaProperty<ICommand>
Type: AvaloniaProperty<ICommand>
The chart point pointer down command property
Type: AvaloniaProperty<ICommand>
Type: AvaloniaProperty<ICommand>
Events
Occurs before the chart is measured, this is the first step before the chart updates.
Handler definition: ChartEventHandler<SkiaSharpDrawingContext>
Handler definition: ChartEventHandler<SkiaSharpDrawingContext>
Occurs when the chart started an update, just when the drawing loop started.
Handler definition: ChartEventHandler<SkiaSharpDrawingContext>
Handler definition: ChartEventHandler<SkiaSharpDrawingContext>
Occurs when a chart update finished, just when the drawing loop finished.
Handler definition: ChartEventHandler<SkiaSharpDrawingContext>
Handler definition: ChartEventHandler<SkiaSharpDrawingContext>
Occurs when the pointer goes down over a chart point(s).
Handler definition: ChartPointsHandler
Handler definition: ChartPointsHandler
Occurs when the pointer goes down over a chart point, if there are multiple points, the closest one will be selected.
Handler definition: ChartPointHandler
Handler definition: ChartPointHandler
Occurs when the pointer goes down over a visual element.
Handler definition: VisualElementsHandler<SkiaSharpDrawingContext>
Handler definition: VisualElementsHandler<SkiaSharpDrawingContext>
Methods
// Gets all the ChartPoint that contain the given point.
| LvcPoint point, | // The given point. |
| TooltipFindingStrategy strategy | // The finding strategy, default is Automatic. |
)