Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Reportes; import java.io.Serializable; import net.sf.dynamicreports.report.definition.ReportParameters; import net.sf.dynamicreports.report.definition.chart.DRIChartCustomizer; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.axis.CategoryLabelPositions; /** * * @author ernesto */ public class ChartCustomizer implements DRIChartCustomizer, Serializable { @Override public void customize(JFreeChart chart, ReportParameters reportParameters) { CategoryAxis domainAxis = chart.getCategoryPlot().getDomainAxis(); domainAxis.setCategoryLabelPositions(CategoryLabelPositions.createUpRotationLabelPositions(Math.PI / 2)); } }