delyntaxUG / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

multiple scatter plot with colored above area #570

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Core-Plot team,

Composite plot sample has similiar feature in the core plot gallery.. we can 
fill below area with gradient color.. But it only fills to till areaBaseValue 
(which represents a line).. we need to fill color till other graph lines.. is 
it possible to add this feature? it will be great if we should have this 
feature..

Alaattin   

// Code sample from composite plot ..
    // Put an area gradient under the plot above
    CPTColor *areaColor       = [CPTColor colorWithComponentRed:0.3 green:1.0 blue:0.3 alpha:0.8];
    CPTGradient *areaGradient = [CPTGradient gradientWithBeginningColor:areaColor endingColor:[CPTColor clearColor]];
    areaGradient.angle               = -90.0f;
    areaGradientFill                 = [CPTFill fillWithGradient:areaGradient];
    dataSourceLinePlot.areaFill      = areaGradientFill;

    /*** this should be other graph line point values.. ***/
    dataSourceLinePlot.areaBaseValue = CPTDecimalFromString(@"1.75");

Original issue reported on code.google.com by alaattinbedir@gmail.com on 20 Aug 2013 at 11:40

GoogleCodeExporter commented 8 years ago

Original comment by eskr...@mac.com on 20 Aug 2013 at 9:13