Pre loader

How to access the values of x, y and z from TooltipModifier3D?

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

0
0

Hi!

I’ve tried to access the values to print them in a different view, but I cant reach them. So my question is there a specific way to reach them?

Version
SciChart WPF SDK Professional
Images
  • Andrew Burnett-Thompson
    Hi Jonas, team is working on this request – we need to create a special example for you. Please be patient.
  • You must to post comments
1
0

Hi Jonas,

please take a look at this example: https://www.scichart.com/example/wpf-3d-chart-example-series-custom-tooltips-3d-chart/

You will find there XyzSeriesTooltipTemplate Data Templete. I believe this is exactly what you are looking for. Follow the link provided or use the code below:

<DataTemplate x:Key="XyzSeriesTooltipTemplate" DataType="cd:BaseXyzSeriesInfo3D">
        <StackPanel>
            <TextBlock>
                <Run FontWeight="Bold" Text="This is the Custom tooltip DataTemplate" />
            </TextBlock>
            <StackPanel Orientation="Vertical">
                <TextBlock>
                    <Run FontWeight="Bold" Text="VertexId: " />
                    <Run Text="{Binding VertexId}" />
                </TextBlock>
                <TextBlock>
                    <Run FontWeight="Bold" Text="PointMetadata: " />
                    <Run Text="{Binding PointMetadata.Tag}" />
                </TextBlock>
                <TextBlock>
                    <Run FontWeight="Bold" Text="X: " />
                    <Run Text="{Binding HitVertex, Converter={StaticResource Vector3ComponentConverter}, ConverterParameter='X'}" />
                </TextBlock>
                <TextBlock>
                    <Run FontWeight="Bold" Text="Y: " />
                    <Run Text="{Binding HitVertex, Converter={StaticResource Vector3ComponentConverter}, ConverterParameter='Y'}" />
                </TextBlock>
                <TextBlock>
                    <Run FontWeight="Bold" Text="Z: " />
                    <Run Text="{Binding HitVertex, Converter={StaticResource Vector3ComponentConverter}, ConverterParameter='Z'}" />
                </TextBlock>
            </StackPanel>
        </StackPanel>
    </DataTemplate>

-Yura

  • You must to post comments
0
0

Thank you!

  • You must to post comments
0
0

Thank you very much! This helped us, but we are till struggling.

We are trying to reach the x, y and z values from code behind, but we are not succeeding.
How to do this:
var xyz = SciChart.Charting3D.Model.ChartData.SeriesInfo3D.HitVertex;

  • You must to post comments
Showing 3 results
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