Knowledgebase
Adding RolloverMarkers for the RolloverModifier
Posted by Admin - on 06 February 2019 01:25 PM
|
|
When used in conjunction with the RolloverModifier, each series displays a RolloverMarker, which tracks the currently highlighted data-point as the user-moves the mouse. The RolloverModifier is the subject of its individual tutorial, but for the sake of this topic, we only show how to set a RolloverMarkerTemplate on a series:
<SciChart:FastLineRenderableSeries x:Name=”rSeries0” Stroke="DarkSlateGray"> <SciChart:FastLineRenderableSeries.RolloverMarkerTemplate> <!-- Define a control template for the first series rollover marker --> <!-- Internally, this will be used to template a blank control which will be overlaid on --> <!-- the ChartModifierSurface (canvas) which exists over the SciChartSurface --> <ControlTemplate x:Key="FirstSeriesRolloverTemplate"> <Ellipse Fill="#77FFFFFF" Stroke="#FF708090" Width="11" Height="11" StrokeThickness="2"/> </ControlTemplate> </SciChart:FastLineRenderableSeries.RolloverMarkerTempalte> </ SciChart:FastLineRenderableSeries> This defines the appearance you will see when hovering the mouse over a data-point and using the RolloverModifier. For instance, the Ellipse template above creates something like this: Further ReadingComplete RolloverModifier example can be found in SciChart Examples Suite at Tooltips and HitTest -> Using RolloverModifier Tooltips. The full source code can be found online at this link. To learn more about RolloverModifier API, please find a relevant documentation article at this link.
| |
|