Defines the functions required by the library to draw a chart legend.
Draws the legend.
Returns the height of the legend.