CartesianChart

Class · Namespace LiveChartsCore.SkiaSharpView.WinForms · Assembly LiveChartsCore.SkiaSharpView.WinForms · View source

Members

Properties

TooltipFindingStrategy TooltipFindingStrategy
Gets or sets the finding strategy.
MatchAxesScreenDataRatio Boolean
Matches the axes screen data ratio, this method forces the x and y axes to use the same scale, this means that both axes will have the same number of pixels per data unit.
ZoomMode ZoomAndPanMode
Gets or sets the zoom mode.
ZoomingSpeed Double
Gets or sets the zooming speed from 0 to 1, where 0 is the slowest and 1 the fastest.
FindingStrategy FindingStrategy
Gets or sets the finding strategy.
XAxes IEnumerable<ICartesianAxis>
Gets or sets the x axes.
YAxes IEnumerable<ICartesianAxis>
Gets or sets the y axes.
Sections IEnumerable<IChartElement>
Gets or sets the sections.
DrawMarginFrame IChartElement
Gets or sets the draw margin frame.
CoreChart Chart
Gets the core.
Tooltip IChartTooltip
Gets or sets the tooltip.
Legend IChartLegend
Gets or sets the legend.
ChartTheme Theme
Gets or sets the chart theme.
UpdaterThrottler TimeSpan
Gets or sets the updater throttler, this property controls the interval where the user interface updates.
AutoUpdateEnabled Boolean
Gets or sets a value indicating whether the automatic updates are enabled.
UpdateStartedCommand ICommand
Occurs when the chart started an update, just when the drawing loop started.
DataPointerDownCommand ICommand
Occurs when the pointer goes down over a chart point(s).
HoveredPointsChangedCommand ICommand
Occurs when the hovered points in the chart change.
ChartPointPointerDownCommand ICommand
Occurs when the pointer goes down over a chart point, if there are multiple points, the closest one will be selected.
VisualElementsPointerDownCommand ICommand
Occurs when the pointer goes down over a visual element.
PointerPressedCommand ICommand
Ocurrs when the chart is pressed.
PointerMoveCommand ICommand
Ocurrs when the pointer is moved over the chart.
PointerReleasedCommand ICommand
Ocurrs when the pointer is released over the chart.
AnimationsSpeed TimeSpan
Gets or sets the animations speed.
EasingFunction Func<Single, Single>
Gets or sets the easing function, the library already provides many easing functions in the LiveCharts.EasingFunction static class.
DrawMargin Margin
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.
LegendPosition LegendPosition
Gets or sets the legend position.
TooltipPosition TooltipPosition
Gets or sets the tooltip position.
LegendTextPaint Paint
Gets or sets the legend default text paint, when null the library will use the default text paint.
LegendBackgroundPaint Paint
Gets or sets the legend background paint, when null the library will use the default background paint.
LegendTextSize Double
Gets or sets the legend text size, when null the library will use the default text size.
TooltipTextPaint Paint
Gets or sets the tooltip default text paint, when null the library will use the default text paint.
TooltipBackgroundPaint Paint
Gets or sets the tooltip background paint, when null the library will use the default background paint.
TooltipTextSize Double
Gets or sets the tooltip text size, when null the library will use the default text size.
SyncContext Object
Gets or sets the Synchronization Context, use this property to use an external object to handle multi threading synchronization.
Title IChartElement
Gets or sets the chart title.
VisualElements IEnumerable<IChartElement>
Gets or sets the visual elements.
Series IEnumerable<ISeries>
Gets or sets the series collection.
CoreCanvas CoreMotionCanvas
Gets the motion canvas.
ControlSize LvcSize
Gets the size of the control.
DesignerMode Boolean
Gets whether the control is in designer mode.
IsDarkMode Boolean
Gets whether the control is in dark mode.
BackColor Color
Sets the back color of the control.

Methods

ScalePixelsToData 3 parameters

Scales a point in pixels to the chart data scale.

LvcPointD point The point.

Int32 xAxisIndex Index of the x axis.

Int32 yAxisIndex Index of the y axis.

ScaleDataToPixels 3 parameters

Scales a point in the chart data scale to pixels.

LvcPointD point The point.

Int32 xAxisIndex Index of the x axis.

Int32 yAxisIndex Index of the y axis.

GetPointsAt 3 parameters

Gets all the ChartPoint that contain the given point.

LvcPointD point The given point.

FindingStrategy strategy The finding strategy, default is FindingStrategy.Automatic.

FindPointFor findPointFor The find point for, default is FindPointFor.HoverEvent.

GetVisualsAt 1 parameter

Gets all the IChartElement that contain the given point.

LvcPointD point The given point.

ApplyTheme 1 parameter

Applies the given theme's chart-level rules (see Theme.ChartBuilder) to this view. The implementation must honor any property the user set in XAML or code, so a theme never overwrites an explicit user value.

Theme theme The theme to apply.

GetDrawnControl No parameters

Returns the actual drawn control (the SKControl/SKGLControl inside MotionCanvas). Pointer events should be wired on this — see issue #1209.

InvokeOnUIThread 1 parameter

Invokes an action in the UI thread.

Action action

Invalidate No parameters

Invalidates the control.

Events

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

Constructors

CartesianChart No parameters

Initializes a new instance of the SourceGenChart class.