Provides the type of an object (RenderableSeries) that this Style is to be applied to.
For convenience purposes, there is a base implementation provided in SCIStyleBase class.
You can derive from it then you will only need to implement the -applyStyleInternalTo: and -discardStyleInternalFrom: methods instead.
Please find a code sample below.
NOTE: If you need to be able to select multiple RenderableSeries of different types, you can return the ISCIRenderableSeries as the RenderableSeries type, as it is shown in the code sample below.
Alternatively, it is possible to have several SCISeriesSelectionModifiers instances with ISCIStyles for different RenderableSeries types with the receiveHandledEvents = YES.
// Assume a surface has been created and configured somewhere
id<ISCIChartSurface> surface;
// Create a SCISeriesSelectionModifier
SCISeriesSelectionModifier *seriesSelectionModifier = [SCISeriesSelectionModifier new];
// Set a style which will be applied to a RenderableSeries when selected
seriesSelectionModifier.selectedSeriesStyle = [SelectedSeriesStyle new];
// Add the modifier to the surface
[self.surface.chartModifiers add:seriesSelectionModifier];
// Assume a surface has been created and configured somewhere
let surface: ISCIChartSurface
// Create a SCISeriesSelectionModifier
let seriesSelectionModifier = SCISeriesSelectionModifier()
// Set a style which will be applied to a RenderableSeries when selected
seriesSelectionModifier.selectedSeriesStyle = SelectedSeriesStyle()
// Add the modifier to the surface
self.surface.chartModifiers.add(seriesSelectionModifier)
// Assume a surface has been created and configured somewhere
IISCIChartSurface surface;
// Create a SCISeriesSelectionModifier with a style which will be applied to a RenderableSeries when selected
var seriesSelectionModifier = new SCISeriesSelectionModifier { SelectedSeriesStyle = new SelectedSeriesStyle() };
// Add the modifier to the surface
Surface.ChartModifiers.Add(seriesSelectionModifier);
NOTE: To learn more about features available, please visit the Chart Modifier APIs article.