SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
I am trying to modify the 3D Charts > Tooltips and Hit Test 3D Charts > Series Tooltips 3D Chart example to change the colour of the tooltip crosshairs to red. By crosshairs I mean the green lines in the image attached.
I modified SeriesTooltips3DChart.xaml by adding:
<UserControl.Resources>
<Style x:Key="MyCrosshairOverlayStyle" TargetType="Line">
<Setter Property="Stroke" Value="Red" />
<Setter Property="StrokeThickness" Value="2" />
</Style>
<Style x:Key="MyCrosshairProjectionStyle" TargetType="t3D:CrosshairLines">
<Setter Property="CrosshairOverlayStyle" Value="{StaticResource MyCrosshairOverlayStyle}" />
<Setter Property="ProjectionMode" Value="Crosshair" />
</Style>
</UserControl.Resources>
and modifying the TooltipModifier3D element:
<t3D:TooltipModifier3D CrosshairMode="Lines" CrosshairPlanesFill="#33FF6600" CrosshairProjectionStyle="{StaticResource MyCrosshairProjectionStyle}" />
I expected this to apply the coloured lines but it did not. What have I misunderstood?
Hi Stephen,
Thanks for your patience with this issue.
Applying crosshair style has been fixed in the latest nightly build (v5.5.0.12244 or higher)
To get this build please follow the steps from:
https://support.scichart.com/index.php?/Knowledgebase/Article/View/17232/37/getting-nightly-builds-with-nuget
Your code is correct and does not require any changes.
Please use it with the latest nightly build.
Best regards,
Dmytro
Hi Stephen,
I am sorry for the late reply.
I have logged this issue in our tracking system. It will be prioritized by the team and investigated based on its relevance.
With best regards,
Oleksandr
Please login first to submit.