I need to create a series which draws boxes from start & end date times (X, X). The Y value will always be set to the maximum value of the all series displayed in the chart. I noticed that there is an XYY DataSeries type but not an XXY. I attempted to use a custom point marker which got me so far but I think displaying as a series is the way to go. This is the effect I’m going for:
I have read around creating a CustomRenderableSeries which I intend to use however I believe that I first may need the data series to accept two X values (start & end)?
- Thomas Hutchinson asked 7 years ago
- last edited 7 years ago
- You must login to post comments
Hi Thomas,
I think you could use XyzDataSeries, or, PointMetadata API which allows you to tag any class onto a data-point.
Personally I would opt for XyzDataSeries as it is more lightweight. Simply define the end-X value in the ‘Z’ of the DataSeries.
Let me know if that helped!
Best regards,
Andrew
- Andrew Burnett-Thompson answered 7 years ago
- You must login to post comments
Thanks Andrew, I ended up using a XyDataSeries<DateTime, double>
& passing the start time as DateTime & the end time as TimeSpan.Ticks (double). Then used a custom renderable series overriding the draw method. Thanks
- Thomas Hutchinson answered 7 years ago
- You must login to post comments
Please login first to submit.