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

0
0

I have tried, numerous times, to understand your example “Series with Metadata,” but to my untrained eye it seems to be doing a lot of things at once, which makes it hard to understand. I am fairly inexperienced with WPF and prefer not to use MVVM. I have figured out most of what I need. But I haven’t figured out how to add metadata to existing data and display the metadata on a chart.

Do you have a simple example of adding metadata to an existing OhlcDataSeries and then displaying the metadata using a cursor tool tip?

Your help would be greatly appreciated,
Steven

Version
SciChart WPF v5.3
  • You must to post comments
0
0

Hi Steven,

I’m afraid this isn’t a simple topic unless you’re familiar with WPF, and does require a lot of moving parts. To add metadata to a chart.

  1. Create a class which inherits IPointMetadata interface
  2. Append the Metadata into your DataSeries, using DataSeries.Append(xValue, yValue, metadataValue)

Next to display the metadata in the tooltip you have to template the tooltip. This means you’ve got to change the XAML to display the data.

There is a bit more info at our DataSeries PointMetadata API Documentation over here. Let me know if that helps clarify the API.

Best regards,
Andrew

  • You must to post comments
0
0

Hi Andrew,
Thank you for your quick response.
I am somewhat familiar with WPF. I have read the example you refer to and tried to use it, but without success so far.
I guess I was hoping there might be another example that I hadn’t found. Your Example Suite, which is amazing, has numerous examples for the relatively simple idea of a FastRenderableSeries, but only one example for metadata.
I will continue to try to figure it out.
Regards,
Steven

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.