SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+