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

0
0

Hi, I want to draw a chart like the attached image.

This is a chart with XyDataSeries, it show as vertical line at each data point and verticle line is a dotted line in order to separated from other series.
Since the OHLC chart will have the open, close on the data point and an impulse chart is forced to draw from an axis, is there any better way that can achieve a series like this? Thank you!

Version
v2.0.0
Images
  • You must to post comments
0
0

Hi May Lym,

Unfortunately we don’t support such series types. In this case you will need to use XyyDataSeries which contains both lines. This is required to determine which color to use for drawing of each line + to correctly implement hit test and some other APIs required by chart.

The closest thing to this type of chart is FastBandRenderableSeries, but it fills the area instead of drawing it with lines. You can try to pick up a fill texture for both FillBrush and FillY1Brush which contains desired output ( create a bitmap which contains those vertical lines and use it as fill for FastBandRenderableSeries).

Also you can try to create a custom renderable series – in your case you’ll need to extend XyyRenderableSeriesBase and draw it on your own using RenderContext API

Hope this will help you!

Best regards,
Yura

  • may lym
    Thank you, Yura! I will try out the custom renderable series.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.