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

pkwooster

Members
  • Posts

    7
  • Joined

  • Last visited

pkwooster's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Hi Teodor, Thanks for the reply, I just downloaded iReport 3.7.6 and tried the pie chart, I still don't get the labels. /peter
  2. The border on the bars in bar charts, which were visible in 2.0.5 have vanished in 3.7.2. I haven't tried 3.7.6 since it fails in other ways. I tried using plot.setOutlineVisible(true) in the customizer, but that seems to have no effect. Does anyone know what is nneded to get these back? Thanks/peter Post Edited by pkwooster at 11/01/2010 16:05
  3. I couldn't find a workaround, so I backed off to 3.7.2 where it works.
  4. I've posted thread 80373 on the JasperReports forum about pie chart labels no longer appearing in version 3.7.5. they work in 3.7.2. Post Edited by pkwooster at 10/29/2010 15:39
  5. I have a JRXML file created in IReport 2.0.5 that runs properly when previewed in IReport 3.7.2 but not when previewed in IReport 3.7.5. To debug this I created a much simpler jrxml in 3.7.5 and tried it in 3.7.2. The problem does not appear to be IReport, but Jasper Reports or JFreeChart. The Pie chart labels have disappeared from the designer, the internal preview and the PDF, the legend labels work if enabled. Here's the JRXML for the simple test: Code: Post Edited by pkwooster at 10/29/2010 14:46
  6. Setting the scale or any other attributes of the axes is a JFreeChart activity. Here's some customizer code that adjusts the item margins and autoscale zero behaviour, it will provide some hints on where to start Code: public void customize(JFreeChart jFreeChart, JRChart jRChart) { super.customize(jFreeChart, jRChart); CategoryPlot plot = jFreeChart.getCategoryPlot(); BarRenderer renderer = (BarRenderer) plot.getRenderer(); ValueAxis axis = plot.getRangeAxis(); if (axis instanceof NumberAxis) { NumberAxis naxis = (NumberAxis)axis; Range rng = plot.getDataRange(naxis); double max = rng.getUpperBound(); double min = rng.getLowerBound(); boolean iz = ((max - min) > (max/5.0)); naxis.setAutoRangeIncludesZero(iz); naxis.setAutoRangeStickyZero(iz); } renderer.setItemMargin(0.0); }
×
×
  • Create New...