{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/405","labels_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/405/comments","events_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/405/events","html_url":"https://github.com/danielgindi/ios-charts/issues/405","id":107626031,"number":405,"title":"Max Y value sometimes get clipped","user":{"login":"yas375","id":217368,"avatar_url":"https://avatars.githubusercontent.com/u/217368?v=3","gravatar_id":"","url":"https://api.github.com/users/yas375","html_url":"https://github.com/yas375","followers_url":"https://api.github.com/users/yas375/followers","following_url":"https://api.github.com/users/yas375/following{/other_user}","gists_url":"https://api.github.com/users/yas375/gists{/gist_id}","starred_url":"https://api.github.com/users/yas375/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yas375/subscriptions","organizations_url":"https://api.github.com/users/yas375/orgs","repos_url":"https://api.github.com/users/yas375/repos","events_url":"https://api.github.com/users/yas375/events{/privacy}","received_events_url":"https://api.github.com/users/yas375/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-22T00:52:01Z","updated_at":"2015-09-24T03:50:30Z","closed_at":null,"body":"I've just updated to the latest version of the library (v2.1.4, 7b85077) and have noticed an issue that sometimes max value doesn't show on the graph even it was shown before the update. Here is What I get now:\r\n\r\n![img_0018](https://cloud.githubusercontent.com/assets/217368/10008762/d9995054-6087-11e5-8397-e2e233152b37.PNG)\r\n\r\nHere is my setup:\r\n\r\n```objective-c\r\n  self.chartView.drawGridBackgroundEnabled = NO;\r\n  self.chartView.doubleTapToZoomEnabled = NO;\r\n  self.chartView.pinchZoomEnabled = YES;\r\n  self.chartView.scaleYEnabled = NO;\r\n\r\n  self.chartView.xAxis.drawGridLinesEnabled = NO;\r\n  self.chartView.xAxis.avoidFirstLastClippingEnabled = YES;\r\n  self.chartView.rightAxis.enabled = NO;\r\n\r\n  self.chartView.marker = [FilledCircleChartMarker new];\r\n  self.chartView.visibleXRangeMaximum = 99;\r\n\r\n  self.chartView.leftAxis.startAtZeroEnabled = NO;\r\n  self.chartView.leftAxis.customAxisMin = 1;\r\n  self.chartView.leftAxis.customAxisMax = 10;\r\n```\r\n\r\nHere are the values I have:\r\n```\r\nChartDataEntry, xIndex: 0, value 2.0\r\nChartDataEntry, xIndex: 1, value 1.0\r\nChartDataEntry, xIndex: 2, value 10.0\r\nChartDataEntry, xIndex: 3, value 5.0\r\n```\r\n\r\nHere is what I expect and can achieve with a workaround `self.chartView.leftAxis.customAxisMax = 11`:\r\n\r\n![img_0019](https://cloud.githubusercontent.com/assets/217368/10008782/20c3f4b6-6088-11e5-8b8d-a0f2a96b8631.PNG)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/comments/142800592","html_url":"https://github.com/danielgindi/ios-charts/issues/405#issuecomment-142800592","issue_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/405","id":142800592,"user":{"login":"liuxuan30","id":4375169,"avatar_url":"https://avatars.githubusercontent.com/u/4375169?v=3","gravatar_id":"","url":"https://api.github.com/users/liuxuan30","html_url":"https://github.com/liuxuan30","followers_url":"https://api.github.com/users/liuxuan30/followers","following_url":"https://api.github.com/users/liuxuan30/following{/other_user}","gists_url":"https://api.github.com/users/liuxuan30/gists{/gist_id}","starred_url":"https://api.github.com/users/liuxuan30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuxuan30/subscriptions","organizations_url":"https://api.github.com/users/liuxuan30/orgs","repos_url":"https://api.github.com/users/liuxuan30/repos","events_url":"https://api.github.com/users/liuxuan30/events{/privacy}","received_events_url":"https://api.github.com/users/liuxuan30/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T03:50:30Z","updated_at":"2015-09-24T03:50:30Z","body":"I tried it on ChartsDemo line chart view controller, with commit 7b85077 (latest before today)\r\n```Swift\r\n_chartView.leftAxis.customAxisMax = 10;\r\n    NSMutableArray *xVals = [[NSMutableArray alloc] init];\r\n    \r\n    [xVals addObject:@\"1442246400000\"];\r\n    [xVals addObject:@\"1442419200000\"];\r\n    [xVals addObject:@\"1442505600000\"];\r\n    [xVals addObject:@\"1442764800000\"];\r\n    [xVals addObject:@\"1442851200000\"];\r\n\r\n    NSMutableArray *yVals = [[NSMutableArray alloc] init];\r\n    \r\n    [yVals addObject:[[ChartDataEntry alloc] initWithValue:0 xIndex:0]];\r\n    [yVals addObject:[[ChartDataEntry alloc] initWithValue:2 xIndex:1]];\r\n    [yVals addObject:[[ChartDataEntry alloc] initWithValue:10 xIndex:2]];\r\n    [yVals addObject:[[ChartDataEntry alloc] initWithValue:7 xIndex:3]];\r\n    [yVals addObject:[[ChartDataEntry alloc] initWithValue:3 xIndex:4]];\r\n    \r\n    LineChartDataSet *set1 = [[LineChartDataSet alloc] initWithYVals:yVals label:@\"DataSet 1\"];\r\n    \r\n    set1.lineWidth = 1.75;\r\n    set1.circleRadius = 3.0;\r\n    [set1 setColor:[UIColor orangeColor]];\r\n    [set1 setCircleColor:UIColor.whiteColor];\r\n    set1.highlightColor = UIColor.whiteColor;\r\n    set1.drawValuesEnabled = NO;\r\n```\r\n\r\nit looks fine to me, the top value 10's circle is visible too:\r\n![10](https://cloud.githubusercontent.com/assets/4375169/10065041/6f716ee6-62b2-11e5-8bfe-7c836a93beda.png)\r\n\r\n\r\n\r\n"}}