We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdcc5de commit a6baa45Copy full SHA for a6baa45
ChartsDemo/Classes/Demos/LineChart1ViewController.m
@@ -57,6 +57,15 @@ - (void)viewDidLoad
57
_chartView.pinchZoomEnabled = YES;
58
_chartView.highlightIndicatorEnabled = NO;
59
60
+ // x-axis limit line
61
+ ChartLimitLine *llXAxis = [[ChartLimitLine alloc] initWithLimit:10.f label:@"Index 10"];
62
+ llXAxis.lineWidth = 4.f;
63
+ llXAxis.lineDashLengths = @[@(10.f), @(10.f), @(0.f)];
64
+ llXAxis.labelPosition = ChartLimitLabelPositionRight;
65
+ llXAxis.valueFont = [UIFont systemFontOfSize:10.f];
66
+
67
+ [_chartView.xAxis addLimitLine:llXAxis];
68
69
ChartLimitLine *ll1 = [[ChartLimitLine alloc] initWithLimit:130.f label:@"Upper Limit"];
70
ll1.lineWidth = 4.f;
71
ll1.lineDashLengths = @[@5.f, @5.f];
0 commit comments