CartesianChartEngine
Class

Assembly LiveChartsCore
Namespace LiveChartsCore

Summary:
Defines a Cartesian chart.

Inheritance:
Object =>
Chart =>
CartesianChartEngine

Constructors

// Defines a Cartesian chart.
ICartesianChartView view, // The view.
CoreMotionCanvas canvas// The canvas.
)

Properties

Gets the x axes.
Type: ICartesianAxis[]
Gets the y axes.
Type: ICartesianAxis[]
Gets the sections.
Type: IEnumerable<IChartElement>
Gets the series.
Type: IEnumerable<ISeries>
Gets the visible series.
Type: IEnumerable<ISeries>
Gets the view.
Type: IChartView
Gets the tool tip meta data.
Type: ToolTipMetaData
Gets the kind of the chart.
Type: ChartKind
Gets whether the control is loaded.
Type: Boolean
Gets the canvas.
Type: CoreMotionCanvas
The series context
Type: SeriesContext
Gets the size of the control.
Type: LvcSize
Gets the draw margin location.
Type: LvcPoint
Gets the size of the draw margin.
Type: LvcSize
Gets the legend position.
Type: LegendPosition
Gets the legend.
Type: IChartLegend
Gets the tooltip position.
Type: TooltipPosition
Gets the tooltip finding strategy.
Type: FindingStrategy
Gets the tooltip.
Type: IChartTooltip
Gets the animations speed.
Type: TimeSpan
Gets the easing function.
Type: Func<Single, Single>
Gets the visual elements.
Type: IEnumerable<IChartElement>

Events

Called when the draw margin is already known. The draw margin is the Cartesian grid where the series are drawn, ignoring the axes labels, legends, titles etc.
Handler definition: Action<CartesianChartEngine>
Occurs before the chart is measured, this is the first step before the chart updates.
Handler definition: ChartEventHandler
Occurs when the chart started an update, just when the drawing loop started.
Handler definition: ChartEventHandler
Occurs when a chart update finished, just when the drawing loop finished.
Handler definition: ChartEventHandler

Methods

// Finds the points near to the specified location.
LvcPoint pointerPosition// The pointer position.
)
// Scales the specified point to the UI.
LvcPoint point, // The point.
Int32 xAxisIndex, // Index of the x axis.
Int32 yAxisIndex// Index of the y axis.
)
// Zooms at the specified pivot.
ZoomAndPanMode flags, // The flags, for example ZoomAndPanMode.X | ZoomAndPanMode.NoFit, will zoom only in the x axis and will ignore the fit to bounds feature.
LvcPoint pivot, // The pivot, is the reference point, the center where the zoom operation is calculated.
ZoomDirection direction, // The direction in or out.
Nullable<Double> scaleFactor// The scale factor, requires direction param to be DefinedByScaleFactor, then we can define the scale factor, for example 0.8 means to decrease the viewport 20%, and 1.2 means to increase the viewport 20%, this is method normally used in touch devices when pinching.
)
// Pans with the specified delta.
ZoomAndPanMode flags, // The flags, for example ZoomAndPanMode.X | ZoomAndPanMode.NoFit, will pan only in the x axis and will ignore the fit to bounds feature.
LvcPoint delta// The delta.
)
// Starts a zooming section operation at the specified point.
ZoomAndPanMode flags, // The flags, for example ZoomAndPanMode.X | ZoomAndPanMode.NoFit, will zoom only in the x axis and will ignore the fit to bounds feature.
LvcPoint point// The point to start the panning operation.
)
// Grows the zooming section to the specified point, this updates the zooming section rectangle in the UI, it does not apply the zoom yet.
ZoomAndPanMode flags, // The flags, for example ZoomAndPanMode.X | ZoomAndPanMode.NoFit, will zoom only in the x axis and will ignore the fit to bounds feature.
LvcPoint point// The point.
)
// End the zooming section operation at the specified point, and applies the zoom.
ZoomAndPanMode flags, // The flags, for example ZoomAndPanMode.X | ZoomAndPanMode.NoFit, will zoom only in the x axis and will ignore the fit to bounds feature.
LvcPoint point// The point.
)
// 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 the x axis for the specified series.
Int32 index// The index.
)
// Gets the y axis for the specified series.
Int32 index// The index.
)
// Gets the x axis for the specified series.
ICartesianSeries series// The series.
)
// Gets the y axis for the specified series.
ICartesianSeries series// The series.
)
// Unloads the control.
// Updates the chart.
ChartUpdateParams chartUpdateParams// The update params.
)
// 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.
)
// Loads the control resources.
// Adds a visual element to the chart.
IChartElement element// *summary not found*
)
// Removes a visual element from the chart.
IChartElement element// *summary not found*
)
// Gets the legend position.
// Determines whether the specified series is drawn in the UI already for the given chart.
Int32 seriesId// The series id.
)
// Gets the active theme.
// Applies the current theme to the chart.