CartesianChartEngine
Class
Assembly LiveChartsCore
Namespace LiveChartsCore
Summary:
Defines a Cartesian chart.
Constructors
// Defines a Cartesian chart.
| ICartesianChartView view, | // The view. |
| CoreMotionCanvas canvas | // The canvas. |
)
Properties
Gets the x axes.
Type: ICartesianAxis[]
Type: ICartesianAxis[]
Gets the y axes.
Type: ICartesianAxis[]
Type: ICartesianAxis[]
Gets the sections.
Type: IEnumerable<IChartElement>
Type: IEnumerable<IChartElement>
Gets the series.
Type: IEnumerable<ISeries>
Type: IEnumerable<ISeries>
Gets the visible series.
Type: IEnumerable<ISeries>
Type: IEnumerable<ISeries>
Gets the view.
Type: IChartView
Type: IChartView
Gets the tool tip meta data.
Type: ToolTipMetaData
Type: ToolTipMetaData
Gets the canvas.
Type: CoreMotionCanvas
Type: CoreMotionCanvas
The series context
Type: SeriesContext
Type: SeriesContext
Gets the size of the control.
Type: LvcSize
Type: LvcSize
Gets the draw margin location.
Type: LvcPoint
Type: LvcPoint
Gets the size of the draw margin.
Type: LvcSize
Type: LvcSize
Gets the legend position.
Type: LegendPosition
Type: LegendPosition
Gets the legend.
Type: IChartLegend
Type: IChartLegend
Gets the tooltip position.
Type: TooltipPosition
Type: TooltipPosition
Gets the tooltip finding strategy.
Type: FindingStrategy
Type: FindingStrategy
Gets the tooltip.
Type: IChartTooltip
Type: IChartTooltip
Gets the animations speed.
Type: TimeSpan
Type: TimeSpan
Gets the visual elements.
Type: IEnumerable<IChartElement>
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>
Handler definition: Action<CartesianChartEngine>
Occurs before the chart is measured, this is the first step before the chart updates.
Handler definition: ChartEventHandler
Handler definition: ChartEventHandler
Occurs when the chart started an update, just when the drawing loop started.
Handler definition: ChartEventHandler
Handler definition: ChartEventHandler
Occurs when a chart update finished, just when the drawing loop finished.
Handler definition: ChartEventHandler
Handler definition: ChartEventHandler
Methods
// Finds the points near to the specified location.
| LvcPoint pointerPosition | // The pointer position. |
)
// Zooms at the specified pivot.
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 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.
Pan(
| 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. |
)
// Unloads the control.
// 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. |
)
// Loads the control resources.
// Gets the legend position.
// Gets the active theme.
// Applies the current theme to the chart.