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
I have an issue, xAxis label are not aligned to grouped bar graph when data is more. some labels are missing and everything seems to be fine when zoomed in.
here is my code
The first picture is proper and the dataarray is 10.
the second picture doesn't show xAxis label and the data array size is 50+.but if zoom in we could see all the labels.
Please help.
Thank You.
The text was updated successfully, but these errors were encountered:
Hi,
I have an issue, xAxis label are not aligned to grouped bar graph when data is more. some labels are missing and everything seems to be fine when zoomed in.
here is my code
chartView.descriptionText =@"";//dic[kJSONChartTitleKey];
// chartView.noDataTextDescription = @"No available data for the chart.";
[chartView setHighlightPerDragEnabled:NO];
chartView.drawBarShadowEnabled = NO;
chartView.drawValueAboveBarEnabled = YES;
chartView.dragEnabled = YES;
// [chartView setScaleEnabled:YES];
// [chartView setScaleXEnabled:YES];
[chartView setScaleYEnabled:YES];
[chartView setDoubleTapToZoomEnabled:YES];
chartView.pinchZoomEnabled = YES;
chartView.drawGridBackgroundEnabled = NO;
chartView.drawBordersEnabled = NO;
chartView.maxVisibleCount = 200;
chartView.fitBars = YES;
ChartXAxis *xAxis = chartView.xAxis;
[xAxis setLabelPosition:XAxisLabelPositionBottom];
xAxis.labelFont = [UIFont systemFontOfSize:10.f];
xAxis.labelTextColor = [UIColor darkGrayColor];
xAxis.drawAxisLineEnabled = YES;
xAxis.drawGridLinesEnabled = NO;
xAxis.drawLimitLinesBehindDataEnabled = YES;
NSMutableArray *xVals = [[NSMutableArray alloc] initWithCapacity:labelsArray.count];
I have screenshot too.
The first picture is proper and the dataarray is 10.
the second picture doesn't show xAxis label and the data array size is 50+.but if zoom in we could see all the labels.
Please help.
Thank You.
The text was updated successfully, but these errors were encountered: