Pre loader

Style of crosshair lines on a 3D chart

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


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.

Green Crosshairs

I modified SeriesTooltips3DChart.xaml by adding:

        <Style x:Key="MyCrosshairOverlayStyle" TargetType="Line">
            <Setter Property="Stroke" Value="Red" />
            <Setter Property="StrokeThickness" Value="2" />
        <Style x:Key="MyCrosshairProjectionStyle" TargetType="t3D:CrosshairLines">
            <Setter Property="CrosshairOverlayStyle" Value="{StaticResource MyCrosshairOverlayStyle}" />
            <Setter Property="ProjectionMode" Value="Crosshair" />

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?

  • Andrew Burnett-Thompson
    Hi Stephen, this should work… but requires a little bit of investigation on our part. I will check it out and get back to you.
  • You must to post comments
Best Answer

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:

Your code is correct and does not require any changes.
Please use it with the latest nightly build.

Best regards,

  • You must to post comments

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,

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.