MPAndroidChart – Change message “No chart data available”
update answer chart.setNoDataText(“Description that you want”);
update answer chart.setNoDataText(“Description that you want”);
Use this: mChart.getAxisLeft().setDrawGridLines(false); mChart.getXAxis().setDrawGridLines(false); Please note you may need right axis or both of them. It depends on axis you are actually using. UPDATE: Is it axis line? If it is, then simply chart.getXAxis().setEnabled(false) Also possible: chart.getAxisLeft().setDrawAxisLine(false)
Do you mean the description which is in the bottom right corner (default) of the Chart? If so, simply call: chart.getDescription().setEnabled(false); Or did you mean the textual description inside the pie-slices? pieChart.setDrawSliceText(false); Or did you mean the actual slice values inside the pie-slices? pieData.setDrawValues(false); Or are you talking about the Legend (shows all DataSet labels … Read more
Yes, is possible, just using following code: mChart.setDescription(“”); // Hide the description mChart.getAxisLeft().setDrawLabels(false); mChart.getAxisRight().setDrawLabels(false); mChart.getXAxis().setDrawLabels(false); mChart.getLegend().setEnabled(false); // Hide the legend
Add maven { url “https://jitpack.io” } to repositories under allprojects not under buildscript see screenshot:
You can use MPAndroidChart. It’s native, free, easy to use, fast and reliable. Core features, benefits: LineChart, BarChart (vertical, horizontal, stacked, grouped), PieChart, ScatterChart, CandleStickChart (for financial data), RadarChart (spider web chart), BubbleChart Combined Charts (e.g. lines and bars in one) Scaling on both axes (with touch-gesture, axes separately or pinch-zoom) Dragging / Panning (with … Read more