LineSeries<TModel>
Class
Assembly LiveChartsCore.SkiaSharpView
Namespace LiveChartsCore.SkiaSharpView
Summary:
Defines a line 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 (Coordinate})) or at the series level (Mapping). |
Object
=>
ChartElement
=>
Series<TModel, CircleGeometry, LabelGeometry>
=>
CartesianSeries<TModel, CircleGeometry, LabelGeometry>
=>
StrokeAndFillCartesianSeries<TModel, CircleGeometry, LabelGeometry>
=>
CoreLineSeries<TModel, CircleGeometry, LabelGeometry, CubicBezierAreaGeometry, LineGeometry>
=>
LineSeries<TModel, CircleGeometry, LabelGeometry>
=>
LineSeries<TModel>
Constructors
// Initializes a new instance of the LineSeries`3 class.
// Initializes a new instance of the LineSeries`3 class,
with a given collection of values.
| IReadOnlyCollection<TModel> values | // The values to plot. |
)
Properties
Gets or sets the size of the geometry.
Type: Double
Type: Double
Gets or sets the line smoothness, where 0 is a straight line, and 1 the most curved line, default is 0.65
Type: Double
Type: Double
Gets or sets a value indicating whether the line should split every null point,
enabling it has a performance impact, default is true.
Type: Boolean
Type: Boolean
Gets or sets the geometry fill.
Type: Paint
Type: Paint
Gets or sets the geometry stroke.
Type: Paint
Type: Paint
Gets or sets a value indicating whether to show the error mark,
to set the color use the ErrorPaint property, the ErrorPaint property
could be defined by the theme when not explicitly set.
Default is false.
Type: Boolean
Type: Boolean
Gets or sets the error paint.
Type: Paint
Type: Paint
Gets or sets the data labels position.
Type: DataLabelsPosition
Type: DataLabelsPosition
Gets or sets the tooltip label formatter in the X axis, the function receives a ChartPoint instance and must return a string.
Type: Func<ChartPoint<TModel, CircleGeometry, LabelGeometry>, String>
Type: Func<ChartPoint<TModel, CircleGeometry, LabelGeometry>, String>
Gets or sets the tooltip label formatter in the Y axis, the function receives a ChartPoint instance and must return a string.
Type: Func<ChartPoint<TModel, CircleGeometry, LabelGeometry>, String>
Type: Func<ChartPoint<TModel, CircleGeometry, LabelGeometry>, String>
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 values.
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 labels formatter, the function receives a ChartPoint instance and must return a string.
Type: Func<ChartPoint<TModel, CircleGeometry, LabelGeometry>, String>
Type: Func<ChartPoint<TModel, CircleGeometry, LabelGeometry>, 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 legend shape.
Type: Double
Type: Double
Gets or sets the miniature stroke thickness.
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, CircleGeometry, LabelGeometry>>
Handler definition: Action<ChartPoint<TModel, CircleGeometry, LabelGeometry>>
Occurs when an instance of ChartPoint is created.
Handler definition: Action<ChartPoint<TModel, CircleGeometry, LabelGeometry>>
Handler definition: Action<ChartPoint<TModel, CircleGeometry, LabelGeometry>>
Occurs when the pointer goes down over a chart point(s).
Handler definition: ChartPointsHandler<TModel, CircleGeometry, LabelGeometry>
Handler definition: ChartPointsHandler<TModel, CircleGeometry, LabelGeometry>
Occurs when the pointer is over a chart point.
Handler definition: ChartPointHandler<TModel, CircleGeometry, LabelGeometry>
Handler definition: ChartPointHandler<TModel, CircleGeometry, LabelGeometry>
Occurs when the pointer left a chart point.
Handler definition: ChartPointHandler<TModel, CircleGeometry, LabelGeometry>
Handler definition: ChartPointHandler<TModel, CircleGeometry, LabelGeometry>
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, CircleGeometry, LabelGeometry>
Handler definition: ChartPointHandler<TModel, CircleGeometry, LabelGeometry>
Occurs when a property value changes.
Handler definition: PropertyChangedEventHandler
Handler definition: PropertyChangedEventHandler
Methods
// Returns a geometry that represents the series in a tooltip or legend.
| ChartPoint point | // The target point. |
)
// Gets the series bounds.
| Chart chart, | // The chart. |
| ICartesianAxis secondaryAxis, | // The x. |
| ICartesianAxis primaryAxis | // The y. |
)
// Gets the stack group, normally used internally to handled the stacked series.
// Clears the visuals in the cache and re-starts animations.