Pre loader

Creating a custom X, X, Y data series?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies