Remove unsupported line chart point style.
Doesn't seem like triangular point styles are currently supported, so, this commit removes cruft.
Showing
2 changed files
with
2 additions
and
15 deletions
| @@ -337,15 +337,6 @@ | @@ -337,15 +337,6 @@ | ||
| 337 | 337 | ||
| 338 | last_x = x; | 338 | last_x = x; |
| 339 | last_y = y; | 339 | last_y = y; |
| 340 | - } | ||
| 341 | - // Triangular point | ||
| 342 | - else if (chartData.inflexionPointStyle == PNLineChartPointStyleTriangle) { | ||
| 343 | - | ||
| 344 | - if ( i != 0 ) { | ||
| 345 | - [progressline addLineToPoint:CGPointMake(x, y)]; | ||
| 346 | - } | ||
| 347 | - | ||
| 348 | - [progressline moveToPoint:CGPointMake(x, y)]; | ||
| 349 | } else { | 340 | } else { |
| 350 | 341 | ||
| 351 | if ( i != 0 ) { | 342 | if ( i != 0 ) { |
| @@ -5,15 +5,11 @@ | @@ -5,15 +5,11 @@ | ||
| 5 | 5 | ||
| 6 | #import <Foundation/Foundation.h> | 6 | #import <Foundation/Foundation.h> |
| 7 | 7 | ||
| 8 | -/** | ||
| 9 | - * not support PNLineChartPointStyleTriangle style recently | ||
| 10 | - */ | ||
| 11 | typedef NS_ENUM(NSUInteger, PNLineChartPointStyle) { | 8 | typedef NS_ENUM(NSUInteger, PNLineChartPointStyle) { |
| 12 | 9 | ||
| 13 | PNLineChartPointStyleNone = 0, | 10 | PNLineChartPointStyleNone = 0, |
| 14 | - PNLineChartPointStyleCircle, | 11 | + PNLineChartPointStyleCircle = 1, |
| 15 | - PNLineChartPointStyleTriangle, | 12 | + PNLineChartPointStyleSquare = 3 |
| 16 | - PNLineChartPointStyleSquare | ||
| 17 | }; | 13 | }; |
| 18 | 14 | ||
| 19 | @class PNLineChartDataItem; | 15 | @class PNLineChartDataItem; |
-
Please register or login to post a comment