How to Remove label on pie chart - java

I have Created Pie Chart using PhilJay MPAndroidChart but i do not want Text and figure written on pie chart it should be beside of pie chart with color an description with figure. now it display at downside without figure.

To remove x-Values use pieChart.setDrawSliceText(false).
To remove y-Values use pieChart.getData().setDrawValues(false).

pieChart.setDrawSliceText(false) has been deprecated so use pieChart.setDrawEntryLabels(false) instead

Related

How to change the percentage text color in MPAndroidChart PieChart?

I have a PieChart in my App using MPAndroidChart library but by default the chart slice percentage text is all white. Managed to change the percentage color but couldn't do the same for it's description text. See the image below
You might be looking for PieChart#setEntryLabelColor(int)

How to remove the section label boxes surrounding the section label in pie chart

Is it possible to remove the section label boxes from the below pie chart.I searched alot but was not able to get an answer.
![enter image description here]
[1] http://tinypic.com/view.php?pic=2vkhuyp&s=5
the above link is for pie chart drawn using java.I mean i dont want the percent shown inside the pie chart surrounded with a box it should just show the percent for ex.14%
PiePlot plot = (PiePlot) chart.getPlot();
plot.setLabelBackgroundPaint(null);
plot.setLabelOutlinePaint(null);
plot.setLabelShadowPaint(null);

Draw scatter plot with crosshair on each data points in iReport

Is it possible to draw scatter chart with horizontal and vertical line on the specific data-point in iReport or any other reporting tool except Excel?
Sure, as iReport Charts are based on the JFreeChart Library and you can bind a ChartCustomizer to your chart in iReport, that should not be a big problem.
Search google for these catchwords and you'll get ahead.

How to add a PieChart subplot in a JFree BarChart?

I want to include a PieChart subplot over a JFree BarChart. The idea is represent how many items are included in the chart vs the total number of items to see how long is the Long Tail.
Here you can a sample image. How can I build something similar with JFreeChart?
You can create a BufferedImage from any chart using createBufferedImage() and add it to a chart as an XYImageAnnotation.

How to display values within pie chart sector

I am using JFreeChart to create pie charts. Values are displayed outside pie chart sectors as labels. I want to display the values within the pie sectors. How can I achieve this. Please can any one help me?
Use setSimpleLabels(), as shown below; org.jfree.chart.demo.PieChartDemo1 is a good starting point.
PiePlot plot = (PiePlot) chart.getPlot();
plot.setSimpleLabels(true);
If you are using createPieChart3D to create Pie chart, following URL will be helpful to you.
http://www.java2s.com/Code/Java/Chart/JFreeChartPieChart3DDemo1.htm
What I know is, showing values inside is default feature of the chart. If you're unable to do so it seems that you have changed the default way.

Categories

Resources