Thursday, 13 June 2019

Angular Gauge fusion widget demo in jasper reports (7.1.1 studio)

Sample output





JRXML (Copy paste this below xml in your environment)


<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 7.2.0.final using JasperReports Library version 6.6.0  -->
<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="GAUGES_Chart" pageWidth="800" pageHeight="842" columnWidth="760" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="81251d9d-a3bb-4e53-83dc-72425b025624">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="foodmart"/>
<property name="ireport.jasperserver.url" value="http://localhost:8080/jasperserver-pro/"/>
<property name="ireport.jasperserver.user" value="superuser"/>
<property name="ireport.jasperserver.report.resource" value="/Explore/GAUGES_Report_files/main_jrxml"/>
<property name="ireport.jasperserver.reportUnit" value="/Explore/GAUGES_Report"/>
<subDataset name="Dataset1" uuid="dbf58f8c-bb29-4b1f-97db-7262c4f2aa8d">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="foodmart"/>
<queryString language="SQL">
<![CDATA[SELECT 35 AS value1]]>
</queryString>
<field name="value1" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.label" value="value1"/>
</field>
</subDataset>
<subDataset name="Dataset2" uuid="3af570a8-707d-43e0-8e46-4a1ccae7f95c">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="foodmart"/>
<queryString language="SQL">
<![CDATA[SELECT 56 AS value2]]>
</queryString>
<field name="value2" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.label" value="value2"/>
</field>
</subDataset>
<subDataset name="Dataset3" uuid="290f42ab-46fb-461d-9d52-b47439cce88b">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="foodmart"/>
<queryString language="SQL">
<![CDATA[SELECT 67 AS value3]]>
</queryString>
<field name="value3" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.label" value="value3"/>
</field>
</subDataset>
<subDataset name="Dataset4" uuid="b0869fcd-44a9-4ee3-abe5-285a2ce32f3f">
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="foodmart"/>
<queryString language="SQL">
<![CDATA[SELECT 50 AS value4]]>
</queryString>
<field name="value4" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.label" value="value4"/>
</field>
</subDataset>
<queryString language="SQL">
<![CDATA[select 1 as One]]>
</queryString>
<field name="one" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.label" value="one"/>
</field>
<background>
<band splitType="Stretch"/>
</background>
<summary>
<band height="543" splitType="Stretch">
<componentElement>
<reportElement x="-20" y="140" width="220" height="220" uuid="5a913c09-961e-4e39-af73-3bc70bcc96da">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<fw:angularGauge xmlns:fw="http://jaspersoft.com/fusion" xsi:schemaLocation="http://jaspersoft.com/fusion http://jaspersoft.com/schema/fusion.xsd">
<fw:widgetProperty name="gaugeStartAngle">
<fw:propertyExpression><![CDATA[225]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeEndAngle">
<fw:propertyExpression><![CDATA[-50]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="placeValuesInside">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="placeTicksInside">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeBorderThickness">
<fw:propertyExpression><![CDATA[new Integer(2)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeBorderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="label">
<fw:propertyExpression><![CDATA["TEST"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotBorderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotBorderThickness">
<fw:propertyExpression><![CDATA[new Integer(0)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotFillColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-16777216)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotRadius">
<fw:propertyExpression><![CDATA[new Integer(10)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotFillAngle">
<fw:propertyExpression><![CDATA[new Integer(5)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="upperLimit">
<fw:propertyExpression><![CDATA[new Integer(100)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="lowerLimitDisplay">
<fw:propertyExpression><![CDATA["0"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="upperLimitDisplay">
<fw:propertyExpression><![CDATA["100"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="bgColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="tickValueDistance">
<fw:propertyExpression><![CDATA[new Integer(10)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="borderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMNumber">
<fw:propertyExpression><![CDATA[10]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickValues">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showLimits">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showValue">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showShadow">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="valueBelowPivot">
<fw:propertyExpression><![CDATA[1]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickMarks">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMHeight">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMThickness">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickMarks">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="minorTMHeight">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="minorTMThickness">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="tickValueDistance">
<fw:propertyExpression><![CDATA[2]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:colorRange color="#C50F01">
<fw:minValueExpression><![CDATA[new Integer(0)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(45)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["RED"]]></fw:labelExpression>
</fw:colorRange>
<fw:colorRange color="#F9AF02">
<fw:minValueExpression><![CDATA[new Integer(46)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(65)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["YELLOW"]]></fw:labelExpression>
</fw:colorRange>
<fw:colorRange color="#00B050">
<fw:minValueExpression><![CDATA[new Integer(66)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(100)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["GREEN"]]></fw:labelExpression>
</fw:colorRange>
<dataset>
<datasetRun subDataset="Dataset1" uuid="a25baec4-2880-4216-8857-35e666a6d7a6"/>
</dataset>
<fw:dial>
<fw:dialProperty name="showValue">
<fw:propertyExpression><![CDATA[$F{value1}]]></fw:propertyExpression>
</fw:dialProperty>
<fw:dialProperty name="bgColor">
<fw:propertyExpression><![CDATA["#cc0505"]]></fw:propertyExpression>
</fw:dialProperty>
<fw:valueExpression><![CDATA[$F{value1}]]></fw:valueExpression>
</fw:dial>
</fw:angularGauge>
</componentElement>
<textField>
<reportElement x="53" y="310" width="75" height="25" uuid="642fe559-da15-4142-9c03-490cd6c7ff09"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA["LABEL"]]></textFieldExpression>
</textField>
<componentElement>
<reportElement x="250" y="0" width="220" height="220" uuid="44cb82b4-c3bf-4016-a4d1-15af0c631eae">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<fw:angularGauge xmlns:fw="http://jaspersoft.com/fusion" xsi:schemaLocation="http://jaspersoft.com/fusion http://jaspersoft.com/schema/fusion.xsd">
<fw:widgetProperty name="gaugeStartAngle">
<fw:propertyExpression><![CDATA[225]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeEndAngle">
<fw:propertyExpression><![CDATA[-50]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="placeValuesInside">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="placeTicksInside">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeBorderThickness">
<fw:propertyExpression><![CDATA[new Integer(2)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeBorderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="label">
<fw:propertyExpression><![CDATA["TEST"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotBorderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotBorderThickness">
<fw:propertyExpression><![CDATA[new Integer(0)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotFillColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-16777216)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotRadius">
<fw:propertyExpression><![CDATA[new Integer(10)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotFillAngle">
<fw:propertyExpression><![CDATA[new Integer(5)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="upperLimit">
<fw:propertyExpression><![CDATA[new Integer(100)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="lowerLimitDisplay">
<fw:propertyExpression><![CDATA["0"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="upperLimitDisplay">
<fw:propertyExpression><![CDATA["100"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="bgColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="tickValueDistance">
<fw:propertyExpression><![CDATA[new Integer(10)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="borderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMNumber">
<fw:propertyExpression><![CDATA[10]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickValues">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showLimits">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showValue">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showShadow">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="valueBelowPivot">
<fw:propertyExpression><![CDATA[1]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickMarks">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMHeight">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMThickness">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickMarks">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="minorTMHeight">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="minorTMThickness">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="tickValueDistance">
<fw:propertyExpression><![CDATA[2]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:colorRange color="#C50F01">
<fw:minValueExpression><![CDATA[new Integer(0)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(45)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["RED"]]></fw:labelExpression>
</fw:colorRange>
<fw:colorRange color="#F9AF02">
<fw:minValueExpression><![CDATA[new Integer(46)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(65)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["YELLOW"]]></fw:labelExpression>
</fw:colorRange>
<fw:colorRange color="#00B050">
<fw:minValueExpression><![CDATA[new Integer(66)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(100)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["GREEN"]]></fw:labelExpression>
</fw:colorRange>
<dataset>
<datasetRun subDataset="Dataset2" uuid="3c06cc6a-04f4-4122-b0e7-f501bd61dc14"/>
</dataset>
<fw:dial>
<fw:dialProperty name="showValue">
<fw:propertyExpression><![CDATA[$F{value2}]]></fw:propertyExpression>
</fw:dialProperty>
<fw:dialProperty name="bgColor">
<fw:propertyExpression><![CDATA["#cc0505"]]></fw:propertyExpression>
</fw:dialProperty>
<fw:valueExpression><![CDATA[$F{value2}]]></fw:valueExpression>
</fw:dial>
</fw:angularGauge>
</componentElement>
<textField>
<reportElement x="319" y="173" width="75" height="25" uuid="d49a634e-6096-4c31-bf3d-daf176d9978b"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA["LABEL"]]></textFieldExpression>
</textField>
<componentElement>
<reportElement x="540" y="130" width="220" height="220" uuid="12e0bd2a-6708-43a3-92a9-b065054fbbd7">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<fw:angularGauge xmlns:fw="http://jaspersoft.com/fusion" xsi:schemaLocation="http://jaspersoft.com/fusion http://jaspersoft.com/schema/fusion.xsd">
<fw:widgetProperty name="gaugeStartAngle">
<fw:propertyExpression><![CDATA[225]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeEndAngle">
<fw:propertyExpression><![CDATA[-50]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="placeValuesInside">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="placeTicksInside">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeBorderThickness">
<fw:propertyExpression><![CDATA[new Integer(2)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeBorderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="label">
<fw:propertyExpression><![CDATA["TEST"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotBorderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotBorderThickness">
<fw:propertyExpression><![CDATA[new Integer(0)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotFillColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-16777216)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotRadius">
<fw:propertyExpression><![CDATA[new Integer(10)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotFillAngle">
<fw:propertyExpression><![CDATA[new Integer(5)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="upperLimit">
<fw:propertyExpression><![CDATA[new Integer(100)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="lowerLimitDisplay">
<fw:propertyExpression><![CDATA["0"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="upperLimitDisplay">
<fw:propertyExpression><![CDATA["100"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="bgColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="tickValueDistance">
<fw:propertyExpression><![CDATA[new Integer(10)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="borderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMNumber">
<fw:propertyExpression><![CDATA[10]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickValues">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showLimits">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showValue">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showShadow">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="valueBelowPivot">
<fw:propertyExpression><![CDATA[1]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickMarks">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMHeight">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMThickness">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickMarks">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="minorTMHeight">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="minorTMThickness">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="tickValueDistance">
<fw:propertyExpression><![CDATA[2]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:colorRange color="#C50F01">
<fw:minValueExpression><![CDATA[new Integer(0)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(45)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["RED"]]></fw:labelExpression>
</fw:colorRange>
<fw:colorRange color="#F9AF02">
<fw:minValueExpression><![CDATA[new Integer(46)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(65)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["YELLOW"]]></fw:labelExpression>
</fw:colorRange>
<fw:colorRange color="#00B050">
<fw:minValueExpression><![CDATA[new Integer(66)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(100)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["GREEN"]]></fw:labelExpression>
</fw:colorRange>
<dataset>
<datasetRun subDataset="Dataset3" uuid="afe8028c-a5fb-4f77-90e0-3b7fd5cb1041"/>
</dataset>
<fw:dial>
<fw:dialProperty name="showValue">
<fw:propertyExpression><![CDATA[$F{value3}]]></fw:propertyExpression>
</fw:dialProperty>
<fw:dialProperty name="bgColor">
<fw:propertyExpression><![CDATA["#cc0505"]]></fw:propertyExpression>
</fw:dialProperty>
<fw:valueExpression><![CDATA[$F{value3}]]></fw:valueExpression>
</fw:dial>
</fw:angularGauge>
</componentElement>
<textField>
<reportElement x="620" y="310" width="75" height="25" uuid="5b9a8b0a-54e2-4ade-bcc7-06afc4cc6587"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA["LABEL"]]></textFieldExpression>
</textField>
<componentElement>
<reportElement x="210" y="223" width="300" height="320" uuid="97e64a44-6015-4215-b942-e3d0443aecbd">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<fw:angularGauge xmlns:fw="http://jaspersoft.com/fusion" xsi:schemaLocation="http://jaspersoft.com/fusion http://jaspersoft.com/schema/fusion.xsd">
<fw:widgetProperty name="gaugeStartAngle">
<fw:propertyExpression><![CDATA[225]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeEndAngle">
<fw:propertyExpression><![CDATA[-50]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="placeValuesInside">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="placeTicksInside">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeBorderThickness">
<fw:propertyExpression><![CDATA[new Integer(2)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="gaugeBorderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="label">
<fw:propertyExpression><![CDATA["TEST"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotBorderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotBorderThickness">
<fw:propertyExpression><![CDATA[new Integer(0)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotFillColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-16777216)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotRadius">
<fw:propertyExpression><![CDATA[new Integer(10)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="pivotFillAngle">
<fw:propertyExpression><![CDATA[new Integer(5)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="upperLimit">
<fw:propertyExpression><![CDATA[new Integer(100)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="lowerLimitDisplay">
<fw:propertyExpression><![CDATA["0"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="upperLimitDisplay">
<fw:propertyExpression><![CDATA["100"]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="bgColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="tickValueDistance">
<fw:propertyExpression><![CDATA[new Integer(10)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="borderColor">
<fw:propertyExpression><![CDATA[new java.awt.Color(-1)]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMNumber">
<fw:propertyExpression><![CDATA[10]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickValues">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showLimits">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showValue">
<fw:propertyExpression><![CDATA[Boolean.TRUE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showShadow">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="valueBelowPivot">
<fw:propertyExpression><![CDATA[1]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickMarks">
<fw:propertyExpression><![CDATA[Boolean.FALSE]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMHeight">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="majorTMThickness">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="showTickMarks">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="minorTMHeight">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="minorTMThickness">
<fw:propertyExpression><![CDATA[0]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:widgetProperty name="tickValueDistance">
<fw:propertyExpression><![CDATA[2]]></fw:propertyExpression>
</fw:widgetProperty>
<fw:colorRange color="#C50F01">
<fw:minValueExpression><![CDATA[new Integer(0)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(45)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["RED"]]></fw:labelExpression>
</fw:colorRange>
<fw:colorRange color="#F9AF02">
<fw:minValueExpression><![CDATA[new Integer(46)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(65)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["YELLOW"]]></fw:labelExpression>
</fw:colorRange>
<fw:colorRange color="#00B050">
<fw:minValueExpression><![CDATA[new Integer(66)]]></fw:minValueExpression>
<fw:maxValueExpression><![CDATA[new Integer(100)]]></fw:maxValueExpression>
<fw:labelExpression><![CDATA["GREEN"]]></fw:labelExpression>
</fw:colorRange>
<dataset>
<datasetRun subDataset="Dataset4" uuid="c0182866-e95f-4e02-abc2-8e57441916be"/>
</dataset>
<fw:dial>
<fw:dialProperty name="showValue">
<fw:propertyExpression><![CDATA[$F{value4}]]></fw:propertyExpression>
</fw:dialProperty>
<fw:dialProperty name="bgColor">
<fw:propertyExpression><![CDATA["#cc0505"]]></fw:propertyExpression>
</fw:dialProperty>
<fw:valueExpression><![CDATA[$F{value4}]]></fw:valueExpression>
</fw:dial>
</fw:angularGauge>
</componentElement>
<textField>
<reportElement x="292" y="463" width="110" height="60" uuid="df95c80c-3337-407f-bc2a-17438c500313"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["LABEL"]]></textFieldExpression>
</textField>
</band>
</summary>
</jasperReport>

6 comments:

  1. nice post..
    am working on pop up report on Jasper, it works alone fine but when insert this report into a dashboard (jasper-server) it doesn't work anymore. is there any tool tip to fix this problem.
    code:




    thank you..

    ReplyDelete
    Replies
    1. Sorry, some how I missed getting notified with your query earlier.
      Did you get resolve your query ? If not, could you let me know more details of it ?

      Delete
  2. Supper helpful, thank you. which property is the actgufal pointer for the guage please? I would be super helpful to reference the guage parts to the actual properties. :-)

    ReplyDelete
    Replies
    1. Sorry, some how I missed getting notified with your query earlier.
      Did you get resolve your query ? If not, could you copy the JRXMl into your studio and try going through the properties for guage vizz. ?

      Delete
  3. Hi,

    Sadakar, in the other example detail overflow vs stretch overflow(https://community.jaspersoft.com/blog/tip-detail-overflow-vs-stretch-overflow-jasper-reports-when-use-how-avoid-repetaitonimages-or) , from the first image (i.e page-1 output ) the height of the column in which the data is extending, its height is bit different (i.e less) when compared to other columns, how to resolve that issue please, as i'm facing the same issue.

    Thanks,

    ReplyDelete
  4. Sorry, some how I missed getting notified with your query earlier.
    Did you get resolve your query ? If not, could you paste your sample JRXML code here ?

    ReplyDelete