要运行示例项目,先克隆仓库,然后从示例目录运行pod install
。
CHGraphLine *line = [CHGraphLine new]; line.points = @[ [CHGraphPoint pointWithDate:date1 value:@20.0], [CHGraphPoint pointWithDate:date2 value:@30.0], [CHGraphPoint pointWithDate:date3 value:@40.0], [CHGraphPoint pointWithDate:date4 value:@170.0], [CHGraphPoint pointWithDate:date5 value:@200.0], [CHGraphPoint pointWithDate:date6 value:@320.0], ]; CHGraphView *graphView = [[CHGraphView alloc] initWithLines:@[line1] frame:CGRectMake(0, 0, 500, 220)]; [self.view addSubview:graphView];
Andrey Korolenko,[email protected]
CHGraph可在MIT许可证下使用。有关更多信息,请参阅LICENSE文件。