You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int xVals_count = 12;//X轴上要显示多少条数据
double maxYVal = 100;//Y轴的最大值
//X轴上面需要显示的数据
NSMutableArray *xVals = [[NSMutableArray alloc] init];
for (int i = 0; i < xVals_count; i++) {
[xVals addObject:[NSString stringWithFormat:@"%dmonth", i+1]];
}
.........
BarChartData *data = [[BarChartData alloc] initWithXVals:xVals dataSets:dataSets];
this is old way toast xvals,
but now i can't find de method to set the xvals.
(
the method above replaced by :
BarChartData *data = [[BarChartData alloc] initWithDataSets:dataSets];
)
The text was updated successfully, but these errors were encountered:
int xVals_count = 12;//X轴上要显示多少条数据
double maxYVal = 100;//Y轴的最大值
//X轴上面需要显示的数据
NSMutableArray *xVals = [[NSMutableArray alloc] init];
for (int i = 0; i < xVals_count; i++) {
[xVals addObject:[NSString stringWithFormat:@"%dmonth", i+1]];
}
.........
BarChartData *data = [[BarChartData alloc] initWithXVals:xVals dataSets:dataSets];
this is old way toast xvals,
but now i can't find de method to set the xvals.
(
the method above replaced by :
BarChartData *data = [[BarChartData alloc] initWithDataSets:dataSets];
)
The text was updated successfully, but these errors were encountered: