kevinzhow

Fix circle chart position

@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 CGFloat endAngle = clockwise ? -90.01f : 270.01f; 33 CGFloat endAngle = clockwise ? -90.01f : 270.01f;
34 34
35 _lineWidth = @8.0f; 35 _lineWidth = @8.0f;
36 - UIBezierPath *circlePath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.frame.size.width/2, self.frame.size.height/2) 36 + UIBezierPath *circlePath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x, self.center.y)
37 radius:(self.frame.size.height * 0.5) - [_lineWidth floatValue] 37 radius:(self.frame.size.height * 0.5) - [_lineWidth floatValue]
38 startAngle:DEGREES_TO_RADIANS(startAngle) 38 startAngle:DEGREES_TO_RADIANS(startAngle)
39 endAngle:DEGREES_TO_RADIANS(endAngle) 39 endAngle:DEGREES_TO_RADIANS(endAngle)
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 -<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5056" systemVersion="13C1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="9Rt-UT-IxH"> 2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="9Rt-UT-IxH">
3 <dependencies> 3 <dependencies>
4 - <deployment defaultVersion="1536" identifier="iOS"/> 4 + <deployment identifier="iOS"/>
5 - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/> 5 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6247"/>
6 </dependencies> 6 </dependencies>
7 <scenes> 7 <scenes>
8 - <!--Chart View Controller - PNChart--> 8 + <!--PNChart-->
9 <scene sceneID="lC9-iu-Smd"> 9 <scene sceneID="lC9-iu-Smd">
10 <objects> 10 <objects>
11 <viewController id="Tha-Wr-sPW" customClass="PCChartViewController" sceneMemberID="viewController"> 11 <viewController id="Tha-Wr-sPW" customClass="PCChartViewController" sceneMemberID="viewController">
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 </objects> 24 </objects>
25 <point key="canvasLocation" x="536" y="31"/> 25 <point key="canvasLocation" x="536" y="31"/>
26 </scene> 26 </scene>
27 - <!--Charts Table View Controller - PNChart--> 27 + <!--PNChart-->
28 <scene sceneID="pBo-qW-N8B"> 28 <scene sceneID="pBo-qW-N8B">
29 <objects> 29 <objects>
30 <tableViewController id="cc5-BF-Ga2" customClass="PCChartsTableViewController" sceneMemberID="viewController"> 30 <tableViewController id="cc5-BF-Ga2" customClass="PCChartsTableViewController" sceneMemberID="viewController">