Skip to content

LineChart

Ed Lomonaco edited this page Jul 26, 2020 · 3 revisions

Line Chart

Usage

var chart = new LineChart { Entries = entries };

Properties

LineSize (float)

Gets or sets the size of the line.

Default Value: 3

LineMode (LineMode)

Gets or sets the line mode.

Default Value: LineMode.Spline

LineAreaAlpha (byte)

Gets or sets the alpha of the line area.

Default Value: 32

EnableYFadeOutGradient (bool)

Enables or disables a fade out gradient for the line area in the Y direction

Default Value: false

Inherited from base

IsAnimated (bool)

Gets or sets a value indicating whether chart is animated when entries change.

Default Value: true

AnimationDuration (TimeSpan)

Gets or sets the duration of the animation.

Default Value: 1.5

AnimationProgress (float)

Gets or sets the animation progress.

LabelTextSize (float)

Gets or sets the text size of the labels.

Default Value: 16

Typeface (SKTypeface)

Gets or sets the font.

BackgroundColor (SKColor)

Gets or sets the color of the chart background.

Default Value: SKColors.White

LabelColor (SKColor)

Gets or sets the color of the labels.

Default Value: SKColor.Gray

MinValue (float)

Gets or sets the minimum value from entries. If not defined, it will be the minimum between zero and the minimal entry value.

Default Value: 0

MaxValue (float)

Gets or sets the maximum value from entries. If not defined, it will be the maximum between zero and the maximum entry value.

Default Value: 0

Margin (float)

Gets or sets the global margin.

Default Value: 20