I have formatted value for PieChart as "#.0%" and display .27 as 27.0%
This is fine but my ToolTip (On Web Browser) is still showing value .27
How can I format value in Tooltip ?
ToolTip display in the form Name = Value ? Is there any option just displaying either name or value only ?
Thank You,
Nilesh
How to format ToolTip ?
I think, this should display tooltips with percentages:
NumberFormat nf = new DecimalFormat("#.0%");
PieToolTipGenerator ttg = new StandardPieToolTipGenerator(nf);
plot.setToolTipGenerator(ttg);
If it does work in the web browser (because of Java 1.1?) you may overwrite the generateToolTip method of the StandardPieToolTipGenerator or write your own PieToolTipGenerator.
NumberFormat nf = new DecimalFormat("#.0%");
PieToolTipGenerator ttg = new StandardPieToolTipGenerator(nf);
plot.setToolTipGenerator(ttg);
If it does work in the web browser (because of Java 1.1?) you may overwrite the generateToolTip method of the StandardPieToolTipGenerator or write your own PieToolTipGenerator.