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
- Steven M asked 5 years ago
- You must login to post comments
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
- Steven M answered 5 years ago
- You must login to post comments
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.
- Create a class which inherits IPointMetadata interface
- 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
- Andrew Burnett-Thompson answered 5 years ago
- You must login to post comments
Please login first to submit.