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

pinner

Members
  • Posts

    3
  • Joined

  • Last visited

pinner's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. This is just a guess, but I did have a similar problem. It turned out that my problem was: I had put my chart inside my <detail> element. So, for N datapoints I had N charts, with each subsequent one adding an additional datapoint.
  2. Hello. I am having a problem getting an axis label to appear on a scaterplot within a JasperReport. It simply does not appear. The xml snippet is here: <band height="700" isSplitAllowed="false" > <scatterChart> <chart hyperlinkTarget="Self" > <reportElement x="5" y="5" width="525" height="500" key="element-1"/> <box topBorder="1Point" topBorderColor="#0000DD" leftBorder="1Point" leftBorderColor="#009900" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> </chart> <xyDataset> <xySeries> <seriesExpression><![CDATA[$F{itemNumber}]]></seriesExpression> <xValueExpression><![CDATA[$F{accuracy}]]></xValueExpression> <yValueExpression><![CDATA[$F{responseTime}]]></yValueExpression> </xySeries> </xyDataset> <scatterPlot > <plot/> <xAxisLabelExpression><![CDATA[$P{xLabel}]]></xAxisLabelExpression> <yAxisLabelExpression><![CDATA[$P{yLabel}]]></yAxisLabelExpression> </scatterPlot> </scatterChart> </band> At first, I thought the legend was covering the label somehow, but suppressing the legend did not uncover the label. Could this possibly be a bug? Or something in my code ? Thanks!
  3. Hello! I had the same problem as you. SO I looked at the DTD and discovered that "chartLegend" is not there. So iReport is either out-of-date with respect to the common DTD, or it is using a DTD that we are not aware of. I fixed the problem by removing the "chartLegend" element from my XML. That wasn't the end of it, though. "xAxisFormat" and "yAxisFormat" had to be purged as well (for scatterPlot). Pie chat and bar chart may have other problematic tags as well. I hope this helps.
×
×
  • Create New...