MrWooJ

adding requirement information for triangle point

triangle point in linebar chart
@@ -8,7 +8,8 @@ @@ -8,7 +8,8 @@
8 typedef NS_ENUM(NSUInteger, PNLineChartPointStyle) { 8 typedef NS_ENUM(NSUInteger, PNLineChartPointStyle) {
9 PNLineChartPointStyleNone = 0, 9 PNLineChartPointStyleNone = 0,
10 PNLineChartPointStyleCircle = 1, 10 PNLineChartPointStyleCircle = 1,
11 - PNLineChartPointStyleSquare = 3 11 + PNLineChartPointStyleSquare = 3,
  12 + PNLineChartPointStyleTriangle = 4
12 }; 13 };
13 14
14 @class PNLineChartDataItem; 15 @class PNLineChartDataItem;
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 PNLineChartData *data01 = [PNLineChartData new]; 38 PNLineChartData *data01 = [PNLineChartData new];
39 data01.color = PNFreshGreen; 39 data01.color = PNFreshGreen;
40 data01.itemCount = lineChart.xLabels.count; 40 data01.itemCount = lineChart.xLabels.count;
41 - data01.inflexionPointStyle = PNLineChartPointStyleCircle; 41 + data01.inflexionPointStyle = PNLineChartPointStyleTriangle;
42 data01.getData = ^(NSUInteger index) { 42 data01.getData = ^(NSUInteger index) {
43 CGFloat yValue = [data01Array[index] floatValue]; 43 CGFloat yValue = [data01Array[index] floatValue];
44 return [PNLineChartDataItem dataItemWithY:yValue]; 44 return [PNLineChartDataItem dataItemWithY:yValue];