Hello,
one more question please;
Please see the pict below (same SDK example: 2D charts-> Column Chart)
[
Just added the Legend and Rollover:
<s:SciChartSurface.ChartModifier>
<s:ModifierGroup>
<s:ModifierGroup>
<s:LegendModifier x:Name="LegendModifier"
ShowVisibilityCheckboxes="False"
ShowLegend="True"
Orientation="Vertical" Margin="10"
HorizontalAlignment="Right"
ShowSeriesMarkers="True" />
<s:RolloverModifier x:Name="RolloverModifier"
ExecuteOn="MouseMove"
ShowTooltipOn="MouseHover"
IsEnabled="True" />
</s:ModifierGroup>
</s:ModifierGroup>
</s:SciChartSurface.ChartModifier>
I’d like to keep Series Name in one place – on Legend and remove it from Rollover tooltip text.
I.e. tooltip shall be “13.7” in this case.
I found how to format the Legend (LegendModifier.LegendItemTemplate SciChart WPF v5 SDK User Manual)
But didn’t find the similar way for Tooltip.
Could you please let me know how to achieve this?
Thanks!
-Egor
- Egor Baykov asked 6 years ago
- last edited 6 years ago
- You must login to post comments
Fixed:
<UserControl.Resources>
<DataTemplate x:Key="RolloverTooltipTemplate1" DataType="s:SeriesInfo">
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding FormattedYValue}" />
</StackPanel>
</DataTemplate>
</UserControl.Resources>
and then
<s:SciChartSurface.RenderableSeries>
<s:FastColumnRenderableSeries x:Name="columnSeries"
DataPointWidth="1"
Stroke="#A99A8A"
s:RolloverModifier.TooltipTemplate="{StaticResource RolloverTooltipTemplate1}">
</s:FastColumnRenderableSeries>
</s:SciChartSurface.RenderableSeries>
I.e. the tooltip template shall be defined for FastColumnRenderableSeries
-Egor
- Egor Baykov answered 6 years ago
- You must login to post comments
Please login first to submit.