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

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.