Hi,
I am using a Column series to draw a graph. My question is how can we decrease the width of bar in column series ? I want to change the width of bar so that it looks nice than its default width. So, is there any property for that ?
Please give me some suggestion.
Thanks.
The gap property on your X axis controls the spacing between the columns. You can set it to a value between 0 and 1, 1 giving you the most space.categoryXAxis.gap = 0.8, for example.Or from the column series:mySeries.xAxis.gap = 0.8
Hi Max,
Is it possible to hide grid without X-Axis and Y-Axis line to the chartview.
I have set
infraChart.gridMode = IGGridModeNone;
but the problem is that it will remove X and Y Axis also. I want to remove grid but show the Axis.
So there any way to do that ?
Thanx.
Instead of changing the grid mode, you can hide the gridlines by either setting a clear brush on them or strokeThickness to 0.
For example,
series.xAxis.majorStrokeThickness = 0; series.yAxis.majorStrokeThickness = 0;
series.xAxis.majorStroke = [[IGBrush alloc]initWithColor:[UIColor clearColor]]; series.yAxis.majorStroke = [[IGBrush alloc]initWithColor:[UIColor clearColor]];
If you have minor gridlines, you can disable them in a similar fashion using minorStroke and minorStrokeThickness.