Pre loader

Bug: When using LogarithmicNumericAxis (Y axis) with FastMountainRenderableSeries (X axis), the mountain series displays as a line 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

If you change the logarithmic Y axis to a regular NumericalAxis, the mountain series displays properly (with fill color).

Version
2.2.0.2324
  • You must to post comments
0
0

Hi Mike,

I believe this is happening because by default gradient in mountain series is drawn from 0 and for log axis log(0) is undefined so gradient can’t be drawn in this case. You can workaround this limitation by assigning ZeroLine which is greater than 0:

 final FastMountainRenderableSeries rSeries = sciChartBuilder.newMountainSeries()
            .withDataSeries(dataSeries)
            .withStrokeStyle(0xAAFFC9A8, 1f, true)
            .withAreaFillLinearGradientColors(0xAAFF8D42, 0x88090E11)
            .withZeroLine(0.001) // set zero line = 0.01 so fill can be drawn correctly for log Y axis
            .build();

Can you try it?

Hope this will help you

Best regards,
Yura

  • Mike Liu
    Hi Yura, I worked around this issue by implementing my own logarithmic axis for now. Hope the issue can be fixed in an upcoming release. Thanks.
  • You must to post comments
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