[icinga-checkins] icinga.org: icinga-reports/mluebben/r1.5: Change color in charts

git at icinga.org git at icinga.org
Tue Jun 14 13:23:14 CEST 2011


Module: icinga-reports
Branch: mluebben/r1.5
Commit: 7c1723f91669bfaed137f4e82e5c4a4c48ba7ec0
URL:    https://git.icinga.org/?p=icinga-reports.git;a=commit;h=7c1723f91669bfaed137f4e82e5c4a4c48ba7ec0

Author: Michael Luebben <michael_luebben at web.de>
Date:   Tue Jun 14 13:23:02 2011 +0200

Change color in charts

---

 .../sub/host/availabilityInGivenTime.jrxml         |    9 +++++++--
 jasperreports/templates/sub/page/footer.jrxml      |    4 ++--
 .../sub/service/activityInGivenTime.jasper         |  Bin 0 -> 134778 bytes
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/jasperreports/templates/sub/host/availabilityInGivenTime.jrxml b/jasperreports/templates/sub/host/availabilityInGivenTime.jrxml
index 24b3276..506ae07 100644
--- a/jasperreports/templates/sub/host/availabilityInGivenTime.jrxml
+++ b/jasperreports/templates/sub/host/availabilityInGivenTime.jrxml
@@ -2,7 +2,7 @@
 <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="Host availability sub report in given time" language="groovy" pageWidth="555" pageHeight="842" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
 	<property name="ireport.zoom" value="1.0"/>
 	<property name="ireport.x" value="0"/>
-	<property name="ireport.y" value="260"/>
+	<property name="ireport.y" value="0"/>
 	<subDataset name="graph_availability">
 		<parameter name="p_host_object_id" class="java.lang.String">
 			<defaultValueExpression><![CDATA[$P{p_host_object_id}]]></defaultValueExpression>
@@ -219,7 +219,12 @@ and object_id                      = $P{p_host_object_id}]]>
 					<labelExpression><![CDATA[($F{sum(state_duration)} / ($P{p_period} / 100) ).setScale(3,BigDecimal.ROUND_HALF_UP).toString() + "%"]]></labelExpression>
 				</pieDataset>
 				<pie3DPlot isCircular="false" labelFormat="" legendLabelFormat="{0} ({1} %)">
-					<plot/>
+					<plot>
+						<seriesColor seriesOrder="0" color="#66FF66"/>
+						<seriesColor seriesOrder="1" color="#FF9933"/>
+						<seriesColor seriesOrder="2" color="#BF44B2"/>
+						<seriesColor seriesOrder="3" color="#FF3333"/>
+					</plot>
 					<itemLabel color="#000000" backgroundColor="#FFFFFF">
 						<font size="8"/>
 					</itemLabel>
diff --git a/jasperreports/templates/sub/page/footer.jrxml b/jasperreports/templates/sub/page/footer.jrxml
index d746285..cf75346 100644
--- a/jasperreports/templates/sub/page/footer.jrxml
+++ b/jasperreports/templates/sub/page/footer.jrxml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <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="Icinga-Report page footer" language="groovy" pageWidth="435" pageHeight="842" columnWidth="435" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
 	<property name="ireport.zoom" value="1.9487171000000016"/>
-	<property name="ireport.x" value="36"/>
+	<property name="ireport.x" value="20"/>
 	<property name="ireport.y" value="0"/>
 	<template><![CDATA["repo:/icinga/styles/IcingaStyleBase.jrtx"]]></template>
 	<queryString>
@@ -22,7 +22,7 @@
 				<textElement textAlignment="Left" verticalAlignment="Bottom">
 					<font size="8" isBold="true"/>
 				</textElement>
-				<text><![CDATA[Icinga Reports - Version 1.4.1 © Icinga Development Team (www.icinga.org)]]></text>
+				<text><![CDATA[Icinga Reports - Version 1.5 © Icinga Development Team (www.icinga.org)]]></text>
 			</staticText>
 		</band>
 	</detail>
diff --git a/jasperreports/templates/sub/service/activityInGivenTime.jasper b/jasperreports/templates/sub/service/activityInGivenTime.jasper
new file mode 100644
index 0000000..b9d8197
Binary files /dev/null and b/jasperreports/templates/sub/service/activityInGivenTime.jasper differ





More information about the icinga-checkins mailing list