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
Here's the issue I think. In the function - (void)setXLabels:(NSArray *)xLabels withWidth:(CGFloat)width, there is this code:
NSInteger x = (index * _xLabelWidth + _chartMarginLeft + _xLabelWidth /2.0 );
NSInteger y = _chartMarginBottom + _chartCavanHeight;
PNChartLabel *label = [[PNChartLabel alloc] initWithFrame:CGRectMake(x, y, (NSInteger)_xLabelWidth, (NSInteger)_chartMarginBottom)];
[label setTextAlignment:NSTextAlignmentCenter];
Because the text alignment is set to center, there is no need to add the _xLabelWidth /2.0 to the x position (as that would be code that does centering itself).
everything seems to be offset backwards by 1 tick
The text was updated successfully, but these errors were encountered: