Pre loader

Dynamic gridlines length

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

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.

Try SciChart Today

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

Start TrialCase Studies