<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.11.0.final using JasperReports Library version 6.11.0-0c4056ccaa4d25a5a8c45672d2f764ea3498bebb  -->
<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="Grafico" printOrder="Horizontal" pageWidth="300" pageHeight="200" orientation="Landscape" columnWidth="260" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="1fcb641f-d3aa-42ae-908f-abf28f5dceda">
	<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="DataAdapter.xml"/>
	<property name="com.jaspersoft.studio.unit." value="pixel"/>
	<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
	<parameter name="ID_Usuario" class="java.lang.Integer">
		<defaultValueExpression><![CDATA[new Integer(1)]]></defaultValueExpression>
	</parameter>
	<queryString language="SQL">
		<![CDATA[select gestiones.descripcion, month(fecha), sum(precio)
from transacciones
join gestiones on transacciones.idGestion = gestiones.id
where gestiones.idUsuario = $P{ID_Usuario}
group by idGestion, month(fecha), gestiones.idUsuario]]>
	</queryString>
	<field name="descripcion" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="descripcion"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="gestiones"/>
	</field>
	<field name="month(fecha)" class="java.lang.Integer">
		<property name="com.jaspersoft.studio.field.label" value="month(fecha)"/>
	</field>
	<field name="sum(precio)" class="java.lang.Double">
		<property name="com.jaspersoft.studio.field.label" value="sum(precio)"/>
	</field>
	<background>
		<band splitType="Stretch"/>
	</background>
	<summary>
		<band height="140">
			<areaChart>
				<chart evaluationTime="Report">
					<reportElement x="-10" y="10" width="260" height="130" uuid="983e1be7-88fd-4dc1-b8bd-9559f97fece0"/>
					<chartTitle/>
					<chartSubtitle/>
					<chartLegend/>
				</chart>
				<categoryDataset>
					<dataset resetType="Report"/>
					<categorySeries>
						<seriesExpression><![CDATA[$F{descripcion}]]></seriesExpression>
						<categoryExpression><![CDATA[$F{month(fecha)}]]></categoryExpression>
						<valueExpression><![CDATA[$F{sum(precio)}]]></valueExpression>
					</categorySeries>
				</categoryDataset>
				<areaPlot>
					<plot/>
					<categoryAxisFormat>
						<axisFormat/>
					</categoryAxisFormat>
					<valueAxisFormat>
						<axisFormat/>
					</valueAxisFormat>
				</areaPlot>
			</areaChart>
		</band>
	</summary>
</jasperReport>
