2016-05-08 6 views

Antwort

0

Sie Grenzlinie als zusätzliche Zeile verwenden können, smth wie folgt aus:

ChartLimitLine *ll1 = [[ChartLimitLine alloc] initWithLimit:YOUR_NUMBER label:@""]; 
ll1.lineColor = [UIColor greenColor]; 
ll1.lineWidth = 1.0; 

Kreisfarben zu ändern, Sie private func drawCircles(context context: CGContext) Methode in LineChartRenderer ändern müssen.

Es gibt eine for-Schleife mit Linie:

CGContextSetFillColorWithColor(context, dataSet.getCircleColor(j)!.CGColor) 

Sie können es ändern, um smth wie:

if e.value > YOUR_VALUE { 
    CGContextSetFillColorWithColor(context, UIColor.greenColor().CGColor) 
} 
else { 
    CGContextSetFillColorWithColor(context, dataSet.getCircleColor(j)!.CGColor) 
} 

And will be smth like this: