MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

BarChart in CombinedChart is clipping the outer bars

Open morriscodes opened this issue 9 years ago • 2 comments

When using non-grouped BarData CombinedChart clips the outer most bars.

Here is a quick example I made by changing BarChartActivity in the Example project to use CombinedChart.

If you can point me in the right direction I'd be happy to help try and fix the problem.

combinedclipped

morriscodes avatar Dec 06 '16 20:12 morriscodes

I was able to get around the above issue by using the following code:

XAxis xAxis = mChart.getXAxis();
xAxis.setAxisMinimum(data.getXMin() - .5f);
xAxis.setAxisMaximum(data.getXMax() + .5f);

This shouldn't be required so I am leaving the issue open so that it will hopefully be fixed.

morriscodes avatar Dec 07 '16 16:12 morriscodes

@morriscodes Thanks, it worked for me

TinhHuynh avatar Mar 20 '19 07:03 TinhHuynh