Pre loader

Why SCIFastMountainRenderableSeries cannot render Gradient Color Fill

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 Sir/Madam,
I have created a Mountain Series with gradient fill. below is part of my code:

-(SCIRenderableSeriesBase *)getTimeSharePlot:(SCIXyDataSeries*)xySeries{
    SCIFastMountainRenderableSeries * rSeries = [SCIFastMountainRenderableSeries new];
    rSeries.dataSeries = xySeries;
    rSeries.strokeStyle = [[SCISolidPenStyle alloc] initWithColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1] withThickness:1];
    rSeries.areaStyle = [[SCILinearGradientBrushStyle alloc] initWithColorStart:[UIColor colorWithRed:32/255.0 green:56/255.0 blue:124/255.0 alpha:1.0] finish:[UIColor whiteColor] direction:SCILinearGradientDirection_Vertical];

    return rSeries;
}

When i run the test, the chart is just filling with solid color
Would you please help?
BR,
Tommy

Version
Trial
Images
  • You must to post comments
0
0

Hi Tommy,

Unfortunately iOS doesn’t support PerScreen texture mapping, but It might be added in future since other platforms support it.

For now, please try setting SCIFastMountainRenderableSeries.ZeroLineY to YAxis minimum so it fills it like “PerScreen”. Hope that helps.

Best Regards,
Nazar R.

  • 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