Application background CBChart is a simple chart, used to display simple data. Directly given x, the value of the Y axis, you can automatically generate a line chart, can be customized. Key Technology Copy the folder CBChart to the project, import the header file: #import "CBChartView.h" CBChartView *chartView = [CBChartView charView]; [self.view addSubview:chartView]; ChartView.xValues = @[@ of "0" @ "9", & nbsp; @ "10", & nbsp; @ "11", & nbsp; @ "12", & nbsp; @ "13", & nbsp; @ "14", & nbsp; @ "15", & nbsp; @ "16", & nbsp; @ 17]. & nbsp;ChartView.yValues = @[@ "75", & nbsp; @ "20", & nbsp; @ "90", & nbsp; @ "50", & nbsp; @ "55", & nbsp; @ "60", & nbsp; @ "50", & nbsp; @ "50", & nbsp; @ 34, & nbsp; @ "67"] & nbsp; & nbsp;Grid settings: Self.chartView.isDrawDashLine = NO/YES Please refer to the demo.