hi,
I have a class DigitalData and I want to create XyDataSeries as XyDataSeries<DigitalData, DateTime>
How can I pass this XyDataSeries to a renderable series viewmodel and I how can I use Index to plot in y axis as I am passing DigitalData to XyDataSeries.
public class DigitalData
{
public double Index { get; set; }
public DigitalQuality DigitalQuality { get; set; }
public DigitalState DigitalState { get; set; }
}
Please let me know if you are not clear.
- Vibin Varghese asked 8 years ago
- last edited 8 years ago
- You must login to post comments
This is not possible. The XyDataSeries type only allows the following types to be used as generic parameters:
- Int / UInt
- Long / ULong
- Double / Float
- Short / UShort
- DateTime / TimeSpan
- Byte / SByte
If you want to add custom information onto a datapoint, then please see our PointMetadata API here.
DataSeries now feature optional PointMetadata – a class which can be tagged onto one or more X,Y data-points, and passed through to all stages, including PaletteProvider, Hit-Test and Tool-tips.
The DataSeries API expects an IPointMetadata derived type to be passed in. This can be any class you like. It will be passed through to the PaletteProvider, Tooltips, PointMarkers and Hit-Test API and can be used to tag additional data to a data-point.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 8 years ago
-
Thanks!!
- You must login to post comments
Please login first to submit.