The ChartLegend class is used to work with a chart legend.
ChartLegend
The legend contains names of all chart series and corresponding color markers.
contentRotation. Legend contents orientation.
contentSize. Size of legend contents.
font. Legend font.
legendOrientation. Legend position.
legendWidth. Legend area width.
maxHeight. Maximum legend area height.
maximumColumnCount. Maximum number of legend columns.
maxEntriesCount. Maximum number of elements displayed in the legend.
moreContentAboveIndicator. Additional contents over legend indicators.
moreContentBelowIndicator. Additional contents under legend indicators.
orderByColumn. Indicates whether order is by maximum number of columns.
textColor. Legend text color.
autoMargin. Additional external element margins.
autoPadding. Size of additional element paddings.
background. Element background fill options.
borderColor. Color of element borders.
borderRadius. Radius of rounded corners (points).
borderThickness. Element border width (points).
boundsWithPadding. Actual size of element area (without taking into account paddings).
margin. Size of element margins.
optimizedOut. Determines whether element is hidden.
padding. Size of element paddings.
animations. An array of animation parameters for chart element.
chart. The chart that includes the visual element.
visible. Indicates whether the visual element is visual.
clearLegend. Clears legend contents.
configureLegendWithDict:andDefaults:. Sets up the legend to the specified parameters.
contentSizeForRect:. Calculates legend size according to the specified rectangle.
fillLegend. Fills legend with chart series names.
findChartPointHit:. Returns series point positioned at the specified coordinate.
setFrameForChartPlaced. Sets frame for a chart object.
addAnimation:. Adds animation for a chart element.
dumpConfigurationToDict. Returns object to which parameters of visual chart element are loaded.
removeAllAnimations. Removes all animation set for a visual chart element.
removeAnimation:. Removes specified animation parameters for chart element.
See also: