Setting label and value of the chart
问题 I am creating pie charts using JFreeChart , and I want to set the value and the label seperately like in iReport . In other words, I want the chart to show different results on the pie than in the legend. Is there any way that I can achieve this? 回答1: The MessageFormat ArgumentIndex values correspond to the series name , domain and range . You can set a different generator for each series or for all series in the base. PiePlot plot = (PiePlot) chart.getPlot(); plot.setLabelGenerator(new