If you change the logarithmic Y axis to a regular NumericalAxis, the mountain series displays properly (with fill color).
- Mike Liu asked 6 years ago
- You must login to post comments
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
- Yura Khariton answered 6 years ago
-
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 login to post comments
Please login first to submit.