how can i change de Label Format in a LineChart ?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Cristiano

how can i change de Label Format in a LineChart ?

Post by Cristiano » Fri Aug 09, 2002 6:46 pm

...
DecimalFormatSymbols dfSymbols = new DecimalFormatSymbols();
dfSymbols.setGroupingSeparator(':');
DecimalFormat dformatT = new DecimalFormat("00,00",dfSymbols);

CategoryPlot plot = (CategoryPlot) chart.getPlot();

lot.setLabelFormatString(dformatT.toPattern());
plot.setLabelsVisible(true);
plot.setVerticalLabels(true);
plot.setLabelFont(new Font("Arial",Font.PLAIN,8));
...

i have the code above, and the line :

"lot.setLabelFormatString(dformatT.toPattern());"

dont it work !! am i doing something wrong ?

Locked