Pre loader

Rollover tooltip sort order

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums


I’m using a rollover tooltip to display series info.
Tooltips are shown in the same order data points are hit, so it changes while i would like to fix it so the user always see the series in the same position throughout the chart.

Thank you

  • You must to post comments

Off the top of my head, this kind of change may require a code change in the SciChart library itself.

Since you have access to the source-code, have a look at the RolloverModifier.cs class. Specifically, RolloverModifier.AttachTooltipLabelToMarker().

In this class you will see the tooltip being created from DataTEmplate and applied to the rollovermarker.

Actually on second thought you may be able to use the RolloverModifier.TooltipStyle attached property to set the Panel.ZIndex on the tooltip container. Give that a try?

See RolloverModifier documentation Styling the Tooltip Container

      <!-- The TooltipControl template is defined below -->
      <!-- Change this if you want to have a non-default tooltip container -->
      <!-- The ContentPresenter is bound to the DataContext (a SeriesInfo type) -->
      <!-- and the ContentTemplate is the DataTemplate for the SeriesInfo -->
      <!-- Finally, the TooltipContainerStyle is set on the RenderableSeries -->     
      <Style x:Key="TooltipStyle1" TargetType="s:TooltipControl">
            <Setter Property="Template">
                    <ControlTemplate TargetType="s:TooltipControl">
                        <Border Background="#ff6495ed"
                                Effect="{StaticResource DropShadowEffect}"

                            <ContentPresenter Content="{TemplateBinding DataContext}"
                                 ContentTemplate="{TemplateBinding ContentTemplate}" />

      <s:FastLineRenderableSeries s:RolloverModifier.TooltipContainerStyle="{StaticResource TooltipStyle1}"/>

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.