Legend

@Immutable
interface Legend<M : MeasuringContext, D : DrawingContext> : Bounded

Defines the functions required by the library to draw a chart legend.

Inheritors

Functions

Link copied to clipboard
abstract fun draw(context: D)

Draws the legend.

Link copied to clipboard
abstract fun getHeight(context: M, maxWidth: Float): Float

Returns the height of the legend.