SciChart iOS v2.x API > ChartModifier API > Cursors, Tooltips and Legends > SCILegendModifier
SCILegendModifier

SciChart features a Legend modifier provided by the SCILegendModifier. This is able to display a legend in the chart with information about your series names.

Examples for the LegendModifier can be found in the SciChart iOS Examples Suite.

 

Adding a LegendModifier to the Chart – Code

The code to add a LegendModifier as follows:

SCILegendModifier * legend = [[SCILegendModifier alloc] init];           
[surface.chartModifiers add: legend ];
let legend = SCILegendModifier()
chartSurface.chartModifiers.add(legend )