IChartView<TDrawingContext>
Interface

Assembly LiveChartsCore
Namespace LiveChartsCore.Kernel.Sketches

Summary:
Defines a chart view.

Type parameters:
TDrawingContext The type of the drawing context.
Implements:
Derived:
ICartesianChartView<TDrawingContext>
IPieChartView<TDrawingContext>
IPolarChartView<TDrawingContext>

Properties

Gets or sets the legend default text paint, when null the library will use the default text paint.
Type: IPaint<TDrawingContext>
Gets or sets the legend background paint, when null the library will use the default background paint.
Type: IPaint<TDrawingContext>
Gets or sets the legend text size, when null the library will use the default text size.
Type: Nullable<Double>
Gets or sets the tooltip default text paint, when null the library will use the default text paint.
Type: IPaint<TDrawingContext>
Gets or sets the tooltip background paint, when null the library will use the default background paint.
Type: IPaint<TDrawingContext>
Gets or sets the tooltip text size, when null the library will use the default text size.
Type: Nullable<Double>
Gets or sets the chart title.
Type: VisualElement<TDrawingContext>
Gets or sets a value indicating whether the automatic updates are enabled.
Type: Boolean
Gets the core canvas.
Type: MotionCanvas<TDrawingContext>
Gets or sets the legend.
Type: IChartLegend<TDrawingContext>
Gets or sets the tooltip.
Type: IChartTooltip<TDrawingContext>
Gets or sets the visual elements.
Type: IEnumerable<ChartElement<TDrawingContext>>

Events

Occurs before the chart is measured, this is the first step before the chart updates.
Handler definition: ChartEventHandler<TDrawingContext>
Occurs when the chart started an update, just when the drawing loop started.
Handler definition: ChartEventHandler<TDrawingContext>
Occurs when a chart update finished, just when the drawing loop finished.
Handler definition: ChartEventHandler<TDrawingContext>
Occurs when the pointer goes down over a visual element.
Handler definition: VisualElementsHandler<TDrawingContext>

Methods

// Called when the pointer goes down on a visual element(s).
IEnumerable<VisualElement<TDrawingContext>> visualElements, // The visual elements.
LvcPoint pointer// The pointer location.
)
// Gets all the ChartPoint that contain the given point.
LvcPoint point, // The given point.
TooltipFindingStrategy strategy// The finding strategy, default is Automatic.
)
// Gets all the VisualElement`1 that contain the given point.
LvcPoint point// The given point.
)