在Graph中的mpAndroidChart中隐藏图例(Hide legends in mpAndroidChart in Graph)
我已经尝试了所有,但没有找到任何代码隐藏图片中的mpAndroidChart传说。
chart.setTouchEnabled(false); chart.animateY(3000); chart.setDescription(""); chart.setDrawValueAboveBar(false); chart.getAxisLeft().setDrawLabels(false); //chart.getAxisRight().setDrawLabels(false); //chart.getXAxis().setDrawLabels(false); chart.setDrawBorders(true); //chart.getAxisLeft().setDrawGridLines(false); //chart.getXAxis().setDrawGridLines(false); //chart.getAxisRight().setDrawGridLines(false);I have tried all but didn't find any code for hiding legends in mpAndroidChart in Graph.
chart.setTouchEnabled(false); chart.animateY(3000); chart.setDescription(""); chart.setDrawValueAboveBar(false); chart.getAxisLeft().setDrawLabels(false); //chart.getAxisRight().setDrawLabels(false); //chart.getXAxis().setDrawLabels(false); chart.setDrawBorders(true); //chart.getAxisLeft().setDrawGridLines(false); //chart.getXAxis().setDrawGridLines(false); //chart.getAxisRight().setDrawGridLines(false);最满意答案
首先使用方法get legend()然后使用方法set Enabled(),因为它是布尔方法传递TRUE / FALSE。
First use method get legend() And then use method set Enabled () ,as it is boolean method pass TRUE/FALSE .
更多推荐
发布评论