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

0
0

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:

X,X,Y data series

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)?

Version
4
  • You must to post comments
0
0

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

  • You must to post comments
0
0

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

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.