SKPieChart
Class

Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView.SKCharts

Summary:
In-memory chart that is able to generate a chart images.

Inheritance:
Object =>
InMemorySkiaSharpChart =>
SKPieChart
Implements:

Constructors

// Initializes a new instance of the SKPieChart class.
// Initializes a new instance of the SKPieChart class.
IPieChartView view// The view.
)

Properties

Gets whether the control is in designer mode.
Type: Boolean
Gets the core.
Type: PieChartEngine
Gets or sets the Synchronization Context, use this property to use an external object to handle multi threading synchronization.
Type: Object
Gets or sets the series.
Type: IEnumerable<ISeries>
Gets or sets the visual elements.
Type: IEnumerable<ChartElement>
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
Gets or sets the maximum angle in degrees, default is 360.
Type: Double
Gets or sets the end value, normally used in gauges to set the maximum value a pie slice can represent, default is null, and means the pie chart total sum.
Type: Nullable<Double>
Gets or sets the minimum valu, normally used in gauges to set the minimum value a pie slice can represent, default is 0.
Type: Double
Gets or sets a value indicating whether the automatic updates are enabled.
Type: Boolean
Gets or sets the legend.
Type: IChartLegend
Gets or sets the tooltip.
Type: IChartTooltip
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
Gets or sets the animations speed.
Type: TimeSpan
Gets or sets the easing function, the library already provides many easing functions in the LiveCharts.EasingFunction static class.
Type: Func<Single, Single>
Gets or sets the updater throttler, this property controls the interval where the user interface updates.
Type: TimeSpan
Gets or sets the legend position.
Type: LegendPosition
Gets or sets the tooltip position.
Type: TooltipPosition
Gets or sets the chart title.
Type: VisualElement
Gets or sets a value indicating whether the pie slices will be drawn clockwise, default is true.
Type: Boolean
Gets or sets the legend default text paint, when null the library will use the default text paint.
Type: Paint
Gets or sets the legend background paint, when null the library will use the default background paint.
Type: Paint
Gets or sets the legend text size, when null the library will use the default text size.
Type: Double
Gets or sets the tooltip default text paint, when null the library will use the default text paint.
Type: Paint
Gets or sets the tooltip background paint, when null the library will use the default background paint.
Type: Paint
Gets or sets the tooltip text size, when null the library will use the default text size.
Type: Double
Gets the core canvas.
Type: CoreMotionCanvas
Gets the core.
Type: Chart
Gets or sets the background.
Type: SKColor
Gets or sets the height.
Type: Int32
Gets or sets the width.
Type: Int32

Events

Occurs before the chart is measured, this is the first step before the chart updates.
Handler definition: ChartEventHandler
Occurs when the chart started an update, just when the drawing loop started.
Handler definition: ChartEventHandler
Occurs when a chart update finished, just when the drawing loop finished.
Handler definition: ChartEventHandler
Occurs when the pointer goes down over a chart point(s).
Handler definition: ChartPointsHandler
Occurs when the hovered points in the chart change.
Handler definition: ChartPointHoverHandler
Occurs when the pointer goes down over a chart point, if there are multiple points, the closest one will be selected.
Handler definition: ChartPointHandler
Occurs when the pointer goes down over a visual element.
Handler definition: VisualElementsHandler

Methods

// Gets all the ChartPoint that contain the given point.
LvcPointD point, // The given point.
FindingStrategy strategy, // The finding strategy, default is Automatic.
FindPointFor findPointFor// The find point for, default is HoverEvent.
)
// Gets all the IChartElement that contain the given point.
LvcPointD point// The given point.
)
// Gets the current SKSurface.
// Saves the image to the specified path.
Stream stream, // The stream.
SKEncodedImageFormat format, // The format.
Int32 quality// The quality, an integer from 0 to 100.
)
// Saves the image to the specified path.
String path, // The path.
SKEncodedImageFormat format, // The format.
Int32 quality// The quality, an integer from 0 to 100.
)
// Draws the image to the specified canvas.
SKCanvas canvas, // The canvas
Boolean clearCanvasOnBeginDraw// Indicates whether the canvas should be cleared when the draw starts, default is false.
)
// Draws the chart to the specified canvas.
SKCanvas canvas, // The canvas.
SKSurface surface, // The surface.
Boolean clearCanvasOnBeginDraw// [probably an obsolete param] Indicates whether the canvas should be cleared when the draw starts, default is false.
)