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?
- Robin Bergqvist asked 6 years ago
- Hi Jonas, team is working on this request – we need to create a special example for you. Please be patient.
- You must login to post comments
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
- Yuriy Sernivka answered 6 years ago
- last edited 6 years ago
- You must login to post comments
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;
- Robin Bergqvist answered 6 years ago
- You must login to post comments
Please login first to submit.