SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Answered
0
0

I’ve read the TooltipModifier article but I don’t believe the method discussed in this article will work for me. The renderable series of my chart is set in within my ViewModel; therefore the described method of setting the TooltipModifier using the following syntax will not work for me since my series are not defined in the XAML.

<s:SomeSeriesType s:TooltipModifier.TooltipTemplate="{StaticResource XyTooltipTemplate}" />

Instead I am using the following.

<s:SciChartSurface RenderableSeries="{s:SeriesBinding SeriesInMyModel}" />

What can I do to overcome this problem?

Version
5.2.2.11833
  • You must to post comments
Best Answer
1
1

Hi Chris,

You are right, but the good news is that we have a documentation article on exactly this topic: Worked Example – Bind Tooltip Templates or Attached Properties in MVVM.

Please let me know if that helps!

Best regards
Andrew

  • Chris Kirkman
    that did it! thanks so much. In fact it opened up my eyes to a lot more customization that I’ll be able to apply to my different series. One thing I was facing recently was to not show tooltips for some series and show them for others, and now I am able to do so.
  • Andrew
    Glad to be of help! You should check out the attached property TooltipModifier.IncludeSeries. Set this to false on a RenderableSeries to exclude it from the TooltipModifier. Other modifiers such as CursorModifier, VerticalSliceModifier, RolloverModifier also have IncludeSeries. Modifiers like YAxisDragModifier has IncludeAxis attached property too!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+