android - MPAndroidChart vertical values -
i want delimit on vertical values between 13 , 14 not how looks linear chart, starts on 0 starting limit, want around 13. please see image on next link see talking about, attaching piece of code enter image description here
linechart linechart = (linechart) rootview.findviewbyid(r.id.chart); linedata data = new linedata(labels, dataset); dataset.setcolors(colortemplate.colorful_colors); // dataset.setdrawcubic(true); dataset.setdrawfilled(true); linechart.setdata(data); linechart.animatey(5000);
finally got answer this, can check here
linechart linechart = (linechart) rootview.findviewbyid(r.id.chart); linedata data = new linedata(labels, dataset); linechart.getaxisleft().setlabelcount(2, true); linechart.getaxisright().setenabled(false); linechart.getaxisleft().setstartatzero(false); linechart.setautoscaleminmaxenabled(false); linechart.getaxisleft().setaxismaxvalue(maxyval + 1); linechart.getaxisleft().setaxisminvalue(minyval - 1); dataset.setcolors(colortemplate.colorful_colors); // dataset.setvaluetextsize(10); dataset.setdrawcubic(true); dataset.setdrawfilled(true); linechart.setdata(data); linechart.animatey(10);