SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & 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.

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.