Pre loader

ToolTip for ImpulseRenderableSeries

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
0
0

hi,
I use the following template for tooltip.
but the XValue and YValue are not coming in tooltip. SeriesName is coming though.
please give me some pointers.

<DataTemplate x:Key="CompassTooltipTemplate" DataType="s:SeriesInfo">
    <StackPanel>
        <StackPanel.Resources>
            <Style TargetType="TextBlock">
                <Setter Property="Foreground" Value="LightGray" />
                <Setter Property="FontSize" Value="12" />
            </Style>
        </StackPanel.Resources>
        <TextBlock Text="{Binding SeriesName}" />
        <StackPanel Orientation="Horizontal">               
            <TextBlock Text="{Binding YValue}" />
        </StackPanel>
        <StackPanel Orientation="Horizontal">               
            <TextBlock Text="{Binding XValue}" />
        </StackPanel>
    </StackPanel>
</DataTemplate>
Version
latest
  • You must to post comments
Best Answer
1
0

Hi Vibin,

Thanks for your question. The values don’t appear, because the properties are of the IComparable type. In XAML, to have a binding to a property of an interface type, you have to either specify StringFormat or to use ValueConverter.

SeriesInfo provides two additional properties FormattedXValue, FormattedYValue of type String. You could bind to these instead if you don’t want to modify the values.

Hope this helps!

Best regards,
Yuriy

  • You must to post comments
Showing 1 result
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