RolloverModifier
The RolloverModifier can be used to show tooltips for all the series under the vertical line drawn at the touch position:
Note
The RolloverModifier is specifically suited to inspect data across many series are the same. For scatter charts, or irregular charts, please try the TooltipModifier.
Note
Examples of the RolloverModifier usage can be found in the SciChart Android Examples Suite as well as on GitHub
RolloverModifier Features
Besides the RolloverModifier specific features, there are some common features which are shared between TooltipModifier, RolloverModifier and CursorModifier via common TooltipModifierBase class.
Common Features
Feature | Description |
---|---|
setShowTooltip(boolean showTooltip) | Allows to hide or show modifier's Tooltips. |
setUseInterpolation(boolean useInterpolation) | Allows to show interpolated values between data points. It is a true by default. If false - modifier's Tooltips will report the info about closest data points. |
setSourceMode(SourceMode sourceMode) | Allows to specify which IRenderableSeries are to be inspected by a modifier, e.g. Visible, Selected, etc. Other will be ignored by the modifier. Expects a member of the SourceMode enumeration. |
Specific Features
Feature | Description |
---|---|
setShowAxisLabels(boolean showAxisLabels) | Allows to hide or show Rollover's axis label |
setDrawVerticalLine(boolean drawVerticalLine) | Allows to hide or show 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
Any Chart Modifier can be added to a SciChartSurface via the chartModifiers property and RolloverModifier is no difference:
// Assume a surface has been created and configured somewhere
surface.getChartModifiers().add(new RolloverModifier());
Note
To learn more about features available, please visit the Chart Modifier APIs article.