IAxisRenderer

Owns the measure and draw of a cartesian axis. Assign one to ICartesianAxis.Renderer to fully replace the built-in axis rendering — for example to draw multi-tier labels, dividers or other custom gutter content — without needing a UI-framework-specific axis type.

Interface · Namespace LiveChartsCore.Kernel.Sketches · Assembly LiveChartsCore · View source

Members

Methods

Measure 2 parameters

Returns the size the axis should reserve for its content. Called in place of the built-in measure while a renderer is set.

ICartesianAxis axis The axis being measured.

Chart chart The chart.

Draw 2 parameters

Draws the axis. Called in place of the built-in draw while a renderer is set.

ICartesianAxis axis The axis being drawn.

Chart chart The chart.

Clear 2 parameters

Removes everything this renderer added to the chart (its geometries and paint tasks). The axis calls this when it stops using the renderer — because it was swapped for another renderer or for the built-in draw (e.g. on a theme change) — so no stale visuals are left on the canvas.

ICartesianAxis axis The axis the renderer was drawing.

Chart chart The chart.