MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

setAvoidFirstLastClipping still clips last label

Open Styx665 opened this issue 9 years ago • 7 comments

Hi, this is a really great Project but unfortunately the setAvoidFirstLastClipping-Method seems to not work correctly. The first Label placement is correct but the last label is not, as you can see: setavoidfirstlastclipping_issue

Here the corresponding Code for my Chart-styling:

lineChart.getAxisRight().setEnabled(false);
lineChart.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);
lineChart.getXAxis().setAvoidFirstLastClipping(true);
lineChart.getXAxis().setValueFormatter(new MyValueFormatter(getApplicationContext()));

Did I made something wrong or is it a Bug?

Styx665 avatar Aug 31 '17 09:08 Styx665

Hi I have the same question ,i am wondering that have u solved this? @Styx665

Wilshion avatar Dec 13 '17 10:12 Wilshion

@Wilshion Nope, it's still like this.

Styx665 avatar Dec 13 '17 13:12 Styx665

Same problem here. Using IndexAxisValueFormatter.

slavasav avatar Feb 02 '18 12:02 slavasav

+1

ABouretz avatar Jul 25 '18 07:07 ABouretz

+1

ByteRax avatar Sep 19 '18 07:09 ByteRax

Same problem here.

pengguanming avatar Jun 26 '19 11:06 pengguanming

Issue was brought forward in #3819, merged in #3820, and should be included in 3.1.0

MoonWolf125 avatar Aug 15 '19 18:08 MoonWolf125