CartesianChart
Class

Assembly LiveChartsCore.SkiaSharpView.WinUI
Namespace LiveChartsCore.SkiaSharpView.WinUI

Summary:

Inheritance:
Implements:

Constructors

// Initializes a new instance of the SourceGenCartesianChart class.

Properties

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.
Type: Boolean
Gets or sets the finding strategy.
Type: TooltipFindingStrategy
Gets or sets the zoom mode.
Type: ZoomAndPanMode
Gets or sets the zooming speed from 0 to 1, where 0 is the slowest and 1 the fastest.
Type: Double
Gets or sets the finding strategy.
Type: FindingStrategy
Gets or sets the x axes.
Type: IEnumerable<ICartesianAxis>
Gets or sets the y axes.
Type: IEnumerable<ICartesianAxis>
Gets or sets the sections.
Type: IEnumerable<IChartElement>
Gets or sets the draw margin frame.
Type: IChartElement
Gets the core.
Type: Chart
Gets or sets whether the chart should force GPU acceleration, this property will only work while globaly UseGPU is false, when UseGPU is true, all charts will use GPU acceleration.
Type: Boolean
Gets or sets the tooltip.
Type: IChartTooltip
Gets or sets the legend.
Type: IChartLegend
Gets or sets the chart theme.
Type: Theme
Gets or sets the updater throttler, this property controls the interval where the user interface updates.
Type: TimeSpan
Gets or sets a value indicating whether the automatic updates are enabled.
Type: Boolean
Gets the core canvas.
Type: CoreMotionCanvas
Occurs when the chart started an update, just when the drawing loop started.
Type: ICommand
Occurs when the pointer goes down over a chart point(s).
Type: ICommand
Occurs when the hovered points in the chart change.
Type: ICommand
Occurs when the pointer goes down over a chart point, if there are multiple points, the closest one will be selected.
Type: ICommand
Occurs when the pointer goes down over a visual element.
Type: ICommand
Ocurrs when the chart is pressed.
Type: ICommand
Ocurrs when the pointer is moved over the chart.
Type: ICommand
Ocurrs when the pointer is released over the chart.
Type: ICommand
Gets or sets the animations speed.
Type: TimeSpan
Gets or sets the easing function, the library already provides many easing functions in the LiveCharts.EasingFunction static class.
Type: Func<Single, Single>
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.
Type: Margin
Gets or sets the legend position.
Type: LegendPosition
Gets or sets the tooltip position.
Type: TooltipPosition
Gets or sets the legend default text paint, when null the library will use the default text paint.
Type: Paint
Gets or sets the legend background paint, when null the library will use the default background paint.
Type: Paint
Gets or sets the legend text size, when null the library will use the default text size.
Type: Double
Gets or sets the tooltip default text paint, when null the library will use the default text paint.
Type: Paint
Gets or sets the tooltip background paint, when null the library will use the default background paint.
Type: Paint
Gets or sets the tooltip text size, when null the library will use the default text size.
Type: Double
Gets or sets the Synchronization Context, use this property to use an external object to handle multi threading synchronization.
Type: Object
Gets or sets the chart title.
Type: IChartElement
Gets or sets the visual elements.
Type: IEnumerable<IChartElement>
Gets or sets the series collection.
Type: IEnumerable<ISeries>
Gets or sets the source of the series.
Type: IEnumerable<Object>
Gets or sets the template used to create series from the SeriesSource.
Type: DataTemplate

Events

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

Methods

// 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.
)
// 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.
)
// Gets all the ChartPoint that contain the given point.
LvcPointD point, // The given point.
FindingStrategy strategy, // The finding strategy, default is Automatic.
FindPointFor findPointFor// The find point for, default is HoverEvent.
)
// Gets all the IChartElement that contain the given point.
LvcPointD point// The given point.
)