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

Answered
0
0

Hi,

I have a question as to whether it is possible to draw major gridlines to end at the renderSeries surface. Something similar to the attached image.

Version
2.2
Images
  • You must to post comments
Best Answer
0
0

Hi Vidya,

It isn’t possible because chart’s XAxis doesn’t have direct access to data from renderable series. Have you tried to use FastMountainRenderableSeries instead?

You can set its fill to some non transparent color ( so fill color will replace gridlines ) and set its ZeroLineY to some high enough value ( larger than VisibleRange.Max for YAxis ):

   final FastMountainRenderableSeries rSeries = sciChartBuilder.newMountainSeries()
            .withDataSeries(dataSeries)
            .withStrokeStyle(0xAAFFC9A8, 1f, true)
            .withAreaFillColor(Color.BLACK)
            .withZeroLine(13000)
            .build();

Is this suitable for your needs? Hope this will help you!

Best regards,
Yura

Images
Showing 1 result
Your Answer

Please first to submit.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+