The problem is even the increase the global xrange, the bar are visible in the small size.
Please find the below code I used
CGFloat xMin = 0.0f;
CGFloat xMax = [[[GraphsDataHolder sharedInstance] getCompanywisedaySales] count]+0;
CGFloat yMin = 0.0f;
CGFloat yMax = 5000.0f; // should determine dynamically based on max price
CPTXYPlotSpace *plotSpace = (CPTXYPlotSpace *) graph.defaultPlotSpace;
plotSpace.allowsUserInteraction = YES;
plotSpace.delegate =self;
// plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(xMin) length:CPTDecimalFromFloat(xMax)];
plotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromFloat(yMin) length:CPTDecimalFromFloat(yMax)];
plotSpace.globalYRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromInt(yMin) length:CPTDecimalFromInt(yMax)];
plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromInt(xMin)length:CPTDecimalFromInt(xMax)];
plotSpace.globalXRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromInt(xMin) length:CPTDecimalFromInt(xMax+2)];
Please find the screen shots
present I am getting the screen as below
Required to get the below image
barWidth
? - Larme