hellocharts-android icon indicating copy to clipboard operation
hellocharts-android copied to clipboard

Viewport.top is not working well !

Open deshario opened this issue 7 years ago • 1 comments

viewport.top is not working well ! my max value is 1500 ... but viewport.top is repeating 000-900 after 900!

Viewport viewport = new Viewport(chartTop.getMaximumViewport());
        viewport.left = 0;
        viewport.right = 20;
        viewport.top = 1500;
        viewport.bottom = 0;


        chartTop.setMaximumViewport(viewport);
        chartTop.setCurrentViewport(viewport);
        chartTop.setZoomType(ZoomType.HORIZONTAL);
        chartTop.setZoomType(ZoomType.VERTICAL);

screenshot_1503141177

Is there somebody that know how to fix it ! Thankx

deshario avatar Aug 19 '17 11:08 deshario

这位兄弟,你也太搞笑了。这个分明不是重复0-900好吗?很明显是你y坐标label长度不够用啊,没显示全。000,100,200....这些前面的1被挡住了!Aixs.setMaxLabelChars();字符长度加大几位试试。

menghuibali avatar Jan 09 '18 07:01 menghuibali