SciChart Android 2D Charts API > ChartModifier API > Cursors and Tooltips > Rollover Modifier
Rollover Modifier

The RolloverModifier can be used to show tooltips for all the series under the vertical line drawn at the touch position:

RolloverModifier Features

To learn more about the inherited features from TooltipModifierBase and tooltips customization, please refer to the Common Features and Tooltip Customization article. The features from the table below are disctinctive to the RolloverModifier:

Feature Description
getDrawVerticalLine()setDrawVerticalLine() Enables or disables Rollover's vertical line.
getVerticalLinePaint() Returns the Paint object for the Rollover's vertical line. Can be used to change style and color properties of the line.

Adding a RolloverModifier to a Chart

A ChartModifier can be added to a ChartModifiersCollection of a SciChartSurface via the getChartModifiers()setChartModifiers() methods. This can be done using the code below:

Copy Code
// Assume the surface has been created and configured earlier
ISciChartSurface surface;

 // Create a RolloverModifier
RolloverModifier rolloverModifier = new RolloverModifier();

 // Add the modifier to the surface

Also a RolloverModifier can be created using Chart Builders. To learn more about features available, Please refer to the Common ChartModifiers Features article.

See Also