Jump to content
We've recently updated our Privacy Statement, available here ×

neils

Members
  • Posts

    4
  • Joined

  • Last visited

neils's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. Hi Teodor, I tried to use the Customizer as specified in this post but it isn't working for me. Here's the code I tried: public class PieChartCustomizer implements JRChartCustomizer { @Override public void customize(JFreeChart jFreeChart, JRChart jrChart) { PiePlot piePlot = (PiePlot) jFreeChart.getPlot(); StandardPieSectionLabelGenerator labelGenerator = new StandardPieSectionLabelGenerator("{0} {2}"); piePlot.setLabelGenerator(labelGenerator); piePlot.setLegendLabelGenerator(labelGenerator); } } Then implementing the class like this: JRDesignChart jrPieChart = new JRDesignChart(jasperDesign,net.sf.jasperreports.engine.JRChart.CHART_TYPE_PIE); ... jrPieChart.setCustomizerClass("PieChartCustomizer"); ... As soon as that last line to setCustomizerClass runs that's the last I see of the method. What am I doing wrong? Thanks in advance for your help.
  2. I am looking for a solution to this as well but the link listed is broken...
  3. Hi Teodor, I tried to use the Customizer as specified in this post but it isn't working for me. Here's the code I tried: public class PieChartCustomizer implements JRChartCustomizer { @Override public void customize(JFreeChart jFreeChart, JRChart jrChart) { PiePlot piePlot = (PiePlot) jFreeChart.getPlot(); StandardPieSectionLabelGenerator labelGenerator = new StandardPieSectionLabelGenerator("{0} {2}"); piePlot.setLabelGenerator(labelGenerator); piePlot.setLegendLabelGenerator(labelGenerator); } } Then implementing the class like this: JRDesignChart jrPieChart = new JRDesignChart(jasperDesign,net.sf.jasperreports.engine.JRChart.CHART_TYPE_PIE); ... jrPieChart.setCustomizerClass("PieChartCustomizer"); ... As soon as that last line to setCustomizerClass runs that's the last I see of the method. What am I doing wrong? Thanks in advance for your help.
×
×
  • Create New...