Pre loader

Hiding VerticalSliceModifier tooltips

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

Answered
1
0

I would like to show the Y values of the slice on a special panel. So far I have not yet found out how to disable the tooltips that appear next to the annotation line. I have tried to add a ToolTipOpening handler to the anntotated line, to the modifier and to the chart surface but it does not get called.

What should I do?

Version
3.0
  • You must to post comments
Best Answer
1
0

Hi there,

You could disable the tooltips by setting the TooltipLabelTemplate property to an empty ControlTemplate.

Also the same effect can be achieved using some workarounds, like setting the SourceMode to “SelectedSeries”, in this case tooltips will appear on the selected series only (having IsSelected set to True) or setting ShowTooltipOn to “MouseMiddleButtonDown”.

Please let us know if the above helps,

Best regards,
Yuriy

  • You must to post comments
0
0

Thanks, it most probably would. However, I already fell back to the regular VerticalLineAnnotation and OnMouseLeftUp:

private void verticalAnnotation_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
    {

        var i = mySeries.DataSeries.FindIndex(verticalAnnotation.X1, SearchMode.Nearest);
        my_value.Text = Convert.ToString(MySeries.DataSeries.YValues[i]);

        // snap to the nearest point
        verticalAnnotation.X1 = Convert.ToDouble(TorqueSeries.DataSeries.XValues[i]); 

    }

That might have been the best thing to do anyway because there is actually little need for the VerticalSliceModifier if tooltips are eliminated. I am new to SciChart and have some trouble with picking the right tools.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies