How to show sum values in jasper report 3d bar charts

I'm trying to create a 3d bar chart which groups by type and shows the sum of squarefeet values for each type. But I couldn't get the bars to show the sum of squarefeets for each types per color. Instead it seems to show the value of last squarefeet when there are more than one squarefeet value for same type and color

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version using JasperReports Library version 6.6.0  -->
<jasperReport xmlns="" xmlns:xsi="" xsi:schemaLocation="" name="barChart" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="4f80af00-8345-4feb-bd0c-5b0b3b2b6232">
    <property name="" value=""/>
    <property name="" value="hsqlCon"/>
    <queryString language="SQL">
        <![CDATA[select * from Item where id = ANY ( select itemId from TempItem)]]>
    <field name="COLOR" class="java.lang.String">
        <property name="" value="COLOR"/>
        <property name="" value="ITEM"/>
    <field name="SQUAREFEET" class="java.lang.Double">
        <property name="" value="SQUAREFEET"/>
        <property name="" value="ITEM"/>
    <field name="TYPE" class="java.lang.String">
        <property name="" value="TYPE"/>
        <property name="" value="ITEM"/>
    <group name="TYPE">
        <band splitType="Stretch"/>
        <band height="79" splitType="Stretch"/>
        <band height="35" splitType="Stretch"/>
        <band height="257" splitType="Stretch">
                <chart evaluationTime="Report">
                    <reportElement x="139" y="0" width="581" height="257" uuid="f2ceb018-5078-4aeb-90df-125419604d39"/>
                        <axisFormat labelColor="#000000" tickLabelColor="#000000" axisLineColor="#000000"/>
                        <axisFormat labelColor="#000000" tickLabelColor="#000000" axisLineColor="#000000"/>
        <band height="54" splitType="Stretch"/>

Any guidance is highly appreciated

SO question

RoshanaSheri's picture
Joined: Jan 2 2019 - 1:18am
Last seen: 4 years 8 months ago

0 Answers:

No answers yet