FontSize in chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
fno
Posts: 2
Joined: Wed Feb 06, 2008 4:40 pm

FontSize in chart

Post by fno » Wed Feb 06, 2008 4:44 pm

If I create a piechart how do I change the fontsize of the values in each pie?

mhilpert
Posts: 497
Joined: Wed Apr 02, 2003 1:57 pm
Location: Germany

Post by mhilpert » Mon Feb 11, 2008 1:48 pm

Code: Select all

        if (chart != null && font != null) {
            final Plot plot = chart.getPlot();
            if (plot instanceof PiePlot) {
                final PiePlot piePlot = (PiePlot) plot;
                piePlot.setLabelFont(font);
            }
        }//else: input unavailable
Java 11, JFreeChart 1.0.15, JFreeSVG 4.0

Locked