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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.