I have a pie chart, and the tooltips are generated automatically.
I tried to remove then in many ways, but none of them works:
When create the chart:
Code: Select all
JFreeChart chart =
ChartFactory.createPieChart("", dataset, true, false, false);
Code: Select all
plot = (PiePlot) chart.getPlot();
plot.setToolTipGenerator(null);
Code: Select all
chart = createChart(createDataset());
chartPanel = new ChartPanel(chart);
((ChartPanel)chartPanel).setDisplayToolTips(false);
How can I remove it?
Thanks a lot,
Efrat