Series<TModel, TVisual, TLabel>
Class
Assembly LiveChartsCore
Namespace LiveChartsCore
Summary:
Defines a series in a Cartesian chart.
| TModel | The type of the model. |
| TVisual | The type of the visual. |
| TLabel | The type of the label. |
Implements:
Derived:
Properties
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 or
IChartLegend, the default value is set automatically by the library.
Type: String
Type: String
Gets or sets the data set to draw in the chart.
Type: IReadOnlyCollection<TModel>
Type: IReadOnlyCollection<TModel>
Gets or sets the mapping.
Type: Func<TModel, Int32, Coordinate>
Type: Func<TModel, Int32, Coordinate>
Gets or sets the series geometry svg, this property requires the series visual to be
an IVariableSvgPath instance.
Type: String
Type: 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
ActualAnimationsSpeed 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
ActualEasingFunction property will be used.
Type: Func<Single, Single>
Type: Func<Single, Single>
Gets the data factory.
Type: DataFactory<TModel>
Type: DataFactory<TModel>
Gets or sets the size of the miniature, the miniature shape is used to draw the series representation in
tooltips and legends, defaults to 12.
Type: Double
Type: Double
Gets or sets the size of the miniature stroke, the miniature shape is used to draw the series representation in
tooltips and legends, defaults to 2.
Type: Double
Type: Double
Indicates whether the data labels are visible,
to set the color use the DataLabelsPaint property, the DataLabelsPaint property
could be defined by the theme when not explicitly set.
Default is false.
Type: Boolean
Type: Boolean
Gets or sets the data labels paint.
Type: Paint
Type: Paint
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 visual states, states define the look of chart points when they are in a certain state, for example
the hover, active, or selected states.
Type: VisualStatesDictionary
Type: VisualStatesDictionary
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 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.
// Returns a geometry that represents the series in a tooltip or legend.
| ChartPoint point | // The target point. |
)