SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
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?
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
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;
Please login first to submit.