allemp.xml 3.12 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
<chart>
	<chart-type>DialChart</chart-type>
	<units></units>
	
	<!--  this is the color of the needle -->
	<needle-color>#000080</needle-color>
	

	<!--  this is the background for the whole image -->
	<!-- chart-background type="color">#ffffff</chart-background> 
	 
	 <chart-background type="gradient">
		<x1>0.0</x1>
		<y1>0.0</y1>
		<color1>#058afb</color1>
		<x2>80.0</x2>
		<y2>80.0</y2>
		<color2>#7ad4fa</color2>
		<cyclic>true</cyclic>
	</chart-background> 	-->

	<!--  this ia the background for the dial 
	<plot-background type="gradient">
		<color1>#000000</color1>
		<color2>#FFFFFF</color2>
		<cyclic>true</cyclic>
	</plot-background>
	-->
	    <plot-background type="texture">
			<texture-image>samples/portal/white.jpg</texture-image>
		</plot-background>
	
	    <plot-background type="texture">
			<texture-image>samples/portal/white.jpg</texture-image>
		</plot-background>
	
       <tick-interval>100</tick-interval>
		
		<!-- <value-color>#9999bb</value-color> -->
		<tick-color>#808080</tick-color>
		
			
		<chart-background type="texture">
			<texture-image>samples/portal/white.jpg</texture-image>
		</chart-background>
	
	<!--  intervals define ranges on the dial that are colored differently from the dial background -->
	<intervals>
		<interval>
			<label>low</label>
			<!-- this is the value that the range starts at -->
			<minimum>0</minimum>
			<!-- this is the value that the range stops at -->
			<maximum>1000</maximum>
			<!--  this is the color of the range -->
			<!-- color>#ff8080</color -->
			<interval-background type="gradient">
				<x1>50</x1>
				<y1>50</y1>
				<x2>100</x2>
				<y2>100</y2>
				<color1>#ffffff</color1>
				<color2>#00FF00</color2>
				<cyclic>true</cyclic>
			</interval-background>
			
			<!--  this is the color of the text for the range value and tick marks -->
			<text-color>#0000bb</text-color>
		</interval>
		<interval>
			<label>medium</label>
			<minimum>1000</minimum>
			<maximum>2000</maximum>
			<!-- color>#ffff80</color -->
			<text-color>#0000bb</text-color>
			<interval-background type="gradient">
				<x1>50</x1>
				<y1>50</y1>
				<x2>100</x2>
				<y2>100</y2>
				<color1>#ffffff</color1>
				<color2>#ffff00</color2>
				<cyclic>true</cyclic>
			</interval-background>
		</interval>
		<interval>
			<label>high</label>
			<minimum>2000</minimum>
			<maximum>3000</maximum>
			<text-color>#0000bb</text-color>
			<interval-background type="gradient">
				<x1>50</x1>
				<y1>50</y1>
				<x2>110</x2>
				<y2>110</y2>
				<color1>#ffffff</color1>
				<color2>#ff0000</color2>
				<cyclic>true</cyclic>
			</interval-background>
		</interval>
	</intervals>
	<!-- Specify where the data for the chart comes from -->
	<data>
		<!-- Specify the path to the action sequence that provides the data -->
		<data-solution>samples</data-solution>
		<data-path>charts/samplesDashboard</data-path>
		<data-action>emp_data.xaction</data-action>
		
		
		<!-- Specify the output of the action sequence that contains the data -->
		<data-output>query_result</data-output>
		
		
		<!-- Specify whether to get the chart series from the rows or columns -->
		<data-orientation>rows</data-orientation>
	</data>
	
</chart>