title: Creating grouped bar or Line graph
body: <p>I'm working with <em>Jaspersoft Studio 5.6</em>, trying to create a report that shows multiple XY (or bar) charts based upon a grouping parameter. I've dumbed down my original data to the following, and I still can't figure it out.  </p>
  
  <pre><code>DATA
  +------+------+-------+
  | xrow | yrow | group |
  +------+------+-------+
  |    1 |   11 |     1 |
  |    2 |   12 |     1 |
  |    3 |   10 |     1 |
  |    1 |    5 |     2 |
  |    2 |   10 |     2 |
  |    3 |   14 |     2 |
  +------+------+-------+
  </code></pre>
  
  <p>Here is my XML code: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!-- Created with Jaspersoft Studio version last--&gt;
  &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="group3" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="cdd6d2cf-7c0c-4d79-8cfe-a4f1e04da233"&gt;
      &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="Office"/&gt;
      &lt;queryString language="SQL"&gt;
          &lt;![CDATA[SELECT maintenance.test.xrow,
      maintenance.test.yrow,
      maintenance.test.group
  FROM maintenance.test]]&gt;
      &lt;/queryString&gt;
      &lt;field name="xrow" class="java.lang.Integer"&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name="yrow" class="java.lang.Integer"&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name="group" class="java.lang.Integer"&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;sortField name="group"/&gt;
      &lt;sortField name="xrow"/&gt;
      &lt;group name="Group1"&gt;
          &lt;groupExpression&gt;&lt;![CDATA[$F{group}]]&gt;&lt;/groupExpression&gt;
          &lt;groupHeader&gt;
              &lt;band height="190"&gt;
                  &lt;barChart&gt;
                      &lt;chart evaluationTime="Report"&gt;
                          &lt;reportElement x="40" y="0" width="460" height="190" uuid="582be7ed-4b48-4d55-a2b6-1295290d34e3"/&gt;
                          &lt;chartTitle/&gt;
                          &lt;chartSubtitle/&gt;
                          &lt;chartLegend/&gt;
                      &lt;/chart&gt;
                      &lt;categoryDataset&gt;
                          &lt;dataset resetType="Group" resetGroup="Group1"/&gt;
                          &lt;categorySeries&gt;
                              &lt;seriesExpression&gt;&lt;![CDATA["SERIES 1"]]&gt;&lt;/seriesExpression&gt;
                              &lt;categoryExpression&gt;&lt;![CDATA[$F{xrow}]]&gt;&lt;/categoryExpression&gt;
                              &lt;valueExpression&gt;&lt;![CDATA[$F{yrow}]]&gt;&lt;/valueExpression&gt;
                          &lt;/categorySeries&gt;
                      &lt;/categoryDataset&gt;
                      &lt;barPlot&gt;
                          &lt;plot/&gt;
                          &lt;itemLabel/&gt;
                          &lt;categoryAxisFormat&gt;
                              &lt;axisFormat/&gt;
                          &lt;/categoryAxisFormat&gt;
                          &lt;valueAxisFormat&gt;
                              &lt;axisFormat/&gt;
                          &lt;/valueAxisFormat&gt;
                      &lt;/barPlot&gt;
                  &lt;/barChart&gt;
              &lt;/band&gt;
          &lt;/groupHeader&gt;
      &lt;/group&gt;
      &lt;background&gt;
          &lt;band splitType="Stretch"/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height="79" splitType="Stretch"/&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band height="35" splitType="Stretch"/&gt;
      &lt;/pageHeader&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  
  <p>I've created a report group for the column "group"</p>
  
  <p>I'm putting the chart in the Group header band.  and I've tried setting "reset on" to GROUP, as well as REPORT (in chart wizard) with no change in results.  See below screen shot.</p>
  
  <p>I'm at a loss of what to try next.
  <img src="https://i.stack.imgur.com/iBYaB.png" alt="Report screen shot"></p>