lecho / hellocharts-android

Charts library for Android compatible with API 8+, several chart types with scaling, scrolling and animations 📊
Apache License 2.0
7.44k stars 1.61k forks source link

Y -axis not displaying 4 digits value #516

Open ArisChoice opened 5 years ago

ArisChoice commented 5 years ago

Hello guys, I liked your work it is a good library. Just increase the y.axis limit.Currently it show maximus 3 digits value.My y axis range is form 0-30000 . and it is only showing 000 starting digits are not visible when range . goes above 1000. Please let me know any solution for this.

baillyjamy commented 5 years ago

Hello, I have this problem too, have you found a solution?

ArisChoice commented 5 years ago

@baillyjamy ,

 Axis yAxis = new Axis();
//      yAxis.setName("Earning in pounds");
        yAxis.setTextColor(Color.parseColor("#03A9F4"));
        yAxis.setTextSize(10);
//      yAxis.setHasLines(true);
        data.setAxisYLeft(yAxis);

try something like this,

baillyjamy commented 5 years ago

With a title, I can see the complete numbers, but the title overwrites part of the Y-axis values. As you can see on the screenshot.

Screenshot 2019-05-24 at 15 10 52

ShengXingyu commented 4 years ago

It is useful,but have other ways to slove it?