Pre loader

Area fill on mountain series

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

0
0

Hi, I am trying to make a graph using the mountain series and I have allocated some padding to the y axis using the growBy and have the series filled using areaStyle but the issue is the area bellow the padding doesn’t get filled and it looks weird where the graph looks half filled because of the padding. Is there a way to fill the area of the padding using the areaStyle or something similar ignoring the growBy padding.

Version
2.2
  • You must to post comments
0
0

Hi Vidya,

Well you can set VisibleRangeChangeListener for your yAxis and update ZeroLineY there to ensure that mountain series fully fills chart:

  yAxis.setVisibleRangeChangeListener(new VisibleRangeChangeListener() {
        @Override
        public void onVisibleRangeChanged(IAxisCore axis, IRange oldRange, IRange newRange, boolean isAnimating) {
            rSeries.setZeroLineY(newRange.getMinAsDouble());
        }
    });

Best regards,
Yura

  • You must to post comments
0
0

Hi Vidya.

Have you tried to set ZeroLineY property for your mountain series?

   series.setZeroLineY(-10);

By default it has 0 value so mountain series is filled from 0 line to to values which are provided by data serise. But if you want you can set it to negative value to extend filled area for mountain series.

Is this suitable for your needs?

Best regards,
Yura

  • Vidya Sagar Mohanraj
    This does not work as this does not go beyond the padding set by the growby. I want to make sure that the padding area is also filled in the same way as the area under the curve.
  • You must to post comments
Showing 2 results
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