PieSeries<TModel, TVisual, TLabel>
Class
Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView
Summary:
Defines a pie series in the user interface.
TModel | The type of the points, you can use any type, the library already knows how to handle the most common numeric types, to use a custom type, you must register the type globally (ChartPoint})) or at the series level (Mapping). |
TVisual | The type of the geometry of every point of the series. |
TLabel | The type of the data label of every point. |
Object
=>
Series<TModel, TVisual, TLabel, SkiaSharpDrawingContext>
=>
ChartSeries<TModel, TVisual, TLabel, SkiaSharpDrawingContext>
=>
PieSeries<TModel, TVisual, TLabel, CircleGeometry, SkiaSharpDrawingContext>
=>
PieSeries<TModel, TVisual, TLabel>
Derived:
Constructors
// Initializes a new instance of the PieSeries`1 class.
Properties
Gets or sets the stroke.
Type: IPaint<SkiaSharpDrawingContext>
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the fill.
Type: IPaint<SkiaSharpDrawingContext>
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the inner radius of the slice in pixels, in most cases the MaxRadialColumnWidth
is preferred, because it is more flexible on different chart sizes.
Type: Double
Type: Double
Gets or sets the outer radius offset, it is the distance from the maximum radius available to the end of the slice [in pixels].
Type: Double
Type: Double
Gets or sets the maximum outer radius, the value goes from 0 to 1, where 1 is the full available radius and 0 is none.
Type: Double
Type: Double
Gets or sets the relative inner radius, it is the extra inner radius for every stacked slice in pixels.
Type: Double
Type: Double
Gets or sets the relative outer radius, it is the decrement in the outer radius for every stacked slice in pixels.
Type: Double
Type: Double
Gets or sets the maximum width of the radial column, if the width of the radial column slice exceeds this dimension the radial
column width will be capped to the value of this property, default value is double.MaxValue.
Type: Double
Type: Double
Gets or sets the radial align, this property determines the alignment of the pie slice only when the width of the column
exceeds MaxRadialColumnWidth.
Type: RadialAlignment
Type: RadialAlignment
Gets or sets the corner radius for every pie slice in the series.
Type: Double
Type: Double
Gets or sets a value indicating whether the direction of the corner radius is inverted.
Type: Boolean
Type: Boolean
Gets or sets a value indicating whether this instance is a fill series, a fill series is a dummy series that will create a 360 degrees
pie slice, this series is normally used to set a background for pie charts, specially useful o create gauges.
Type: Boolean
Type: Boolean
Gets or sets the data labels position.
Type: PolarLabelsPosition
Type: PolarLabelsPosition
Gets or sets the tool tip label formatter for the Y axis, this function will build the label when a point in this series
is shown inside a tool tip.
Type: Func<ChartPoint<TModel, TVisual, TLabel>, String>
Type: Func<ChartPoint<TModel, TVisual, TLabel>, String>
Gets or sets the data labels paint.
Type: IPaint<SkiaSharpDrawingContext>
Type: IPaint<SkiaSharpDrawingContext>
Gets or sets the size of the data labels.
Type: Double
Type: Double
Gets or sets the data labels rotation in degrees.
Type: Double
Type: Double
Gets or sets the data labels padding.
Type: Padding
Type: Padding
Gets or sets the max width of the data labels.
Type: Double
Type: Double
Gets the properties of the series.
Type: SeriesProperties
Type: SeriesProperties
Gets or sets the name of the series, the name is normally used by IChartTooltip`1 or
IChartLegend`1, the default value is set automatically by the library.
Type: String
Type: String
Gets or sets the values.
Type: IEnumerable<TModel>
Type: IEnumerable<TModel>
Gets or sets the mapping.
Type: Action<TModel, ChartPoint>
Type: Action<TModel, ChartPoint>
Gets or sets the series geometry svg, this property requires the series visual to be
an ISvgPath`1 instance.
Type: String
Type: String
Gets or sets the tool tip label formatter, this function will build the label when a point in this series
is shown inside a tool tip.
Type: Func<ChartPoint<TModel, TVisual, TLabel>, String>
Type: Func<ChartPoint<TModel, TVisual, TLabel>, String>
Gets or sets the data label formatter, this function will build the label when a point in this series
is shown as data label.
Type: Func<ChartPoint<TModel, TVisual, TLabel>, String>
Type: Func<ChartPoint<TModel, TVisual, TLabel>, String>
Gets or sets a value indicating whether this instance will show up in tool tips when the pointer is over a point.
default value is true.
Type: Boolean
Type: Boolean
Gets or sets a value indicating whether this instance will show up in legends.
default value is true.
Type: Boolean
Type: Boolean
Gets or sets the data padding, the distance from the edge of the chart to where the series is drawn,
both coordinates (X and Y) from 0 to 1, where 0 is nothing and 1 is the axis tick (the separation between every label).
Type: LvcPoint
Type: LvcPoint
Gets or sets the animations speed, if this property is null, the
AnimationsSpeed property will be used.
Type: Nullable<TimeSpan>
Type: Nullable<TimeSpan>
Gets or sets the easing function to animate the series, if this property is null, the
EasingFunction property will be used.
Type: Func<Single, Single>
Type: Func<Single, Single>
Gets the data factory.
Type: DataFactory<TModel, SkiaSharpDrawingContext>
Type: DataFactory<TModel, SkiaSharpDrawingContext>
Called when a point is measured.
Type: Action<ChartPoint<TModel, TVisual, TLabel>>
Type: Action<ChartPoint<TModel, TVisual, TLabel>>
Gets or sets the size of the legend shape.
Type: Double
Type: Double
Gets or sets the size of the legend shape.
Type: Double
Type: Double
Gets the paint schedule, normally handled internally to display tool tips and legends.
Type: Sketch<SkiaSharpDrawingContext>
Type: Sketch<SkiaSharpDrawingContext>
Events
Occurs when an instance of ChartPoint is measured.
Handler definition: Action<ChartPoint<TModel, TVisual, TLabel>>
Handler definition: Action<ChartPoint<TModel, TVisual, TLabel>>
Occurs when an instance of ChartPoint is created.
Handler definition: Action<ChartPoint<TModel, TVisual, TLabel>>
Handler definition: Action<ChartPoint<TModel, TVisual, TLabel>>
Occurs when the pointer goes down over a chart point(s).
Handler definition: ChartPointsHandler<TModel, TVisual, TLabel>
Handler definition: ChartPointsHandler<TModel, TVisual, TLabel>
Occurs when the pointer is over a chart point.
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Occurs when the pointer left a chart point.
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Occurs when the pointer is over a chart point.
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Occurs when the pointer left a chart point.
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Occurs when the pointer goes down over a chart point, if there are multiple points, the closest one will be selected.
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Handler definition: ChartPointHandler<TModel, TVisual, TLabel>
Occurs when a property value changes.
Handler definition: PropertyChangedEventHandler
Handler definition: PropertyChangedEventHandler
Methods
// Gets the stack group, normally used internally to handled the stacked series.
// Clears the visuals in the cache and re-starts animations.