Closed Ruchita-Bora closed 5 years ago
Hey @Ruchita-Bora,
I found two different solutions to this problem.
1) Set the SpaceMax to 1
xAxis.SpaceMax = 1;
2) Disable the property to center the x-axis labels and use use the SpaceMin as the starting point in GroupBarsFromX instead of setting it to zero.
xAxis.CenterAxisLabelsEnabled = false;
...
barChartView.GroupBarsFromX(-xAxis.SpaceMin, 0.42, 0.04);
With any of the two all bars will fit into the screen, but I'm not aware of the side effects for each one.
Btw, when picking the values for BarWidth, groupSpace and barSpace you need to keep the following math being true:
1f = (BarWidth + barSpace) * DATASET_COUNT + groupSpace
Here is the code i used to plot bar graph. But last orange bar is not visible. Tried to scroll but its not scrolling. I think gap between first blue bar and yaxis might be the issue. But not able to remove that gap. Can you help me with this?