territory.widget.xml 1.69 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

<chart>

	<!-- This file defines the pie chart that shows the actual values for each region -->

	<!-- Specify the title of the chart -->
	<title>Click on Territory</title>

	<!-- Specify the location of the title -->
	<title-position>top</title-position>

	<!-- Specify the font of the title -->
	<title-font>
		<font-family>Ariel</font-family>
		<size>12</size>
		<is-bold>false</is-bold>
		<is-italic>false</is-italic>
	</title-font>

	<width>420</width>
	<height>240</height>

	<!-- Specify the 3D-ness of the bars -->
	<is-3D>false</is-3D>

	<!-- Specify if the chart has a border and the border color -->
	<border-visible>false</border-visible>

	<!-- Specify is the chart legend should be shown -->
	<include-legend>false</include-legend>

	<color-palette>
		<color>#ee7733</color>
		<color>#9EAA36</color>
		<color>#BF0000</color>
		<color>#FCCF12</color>
		<color>#772200</color>
		<color>#ddcc88</color>
		<color>#123D82</color>
		<color>#4A0866</color>
		<color>#445500</color>
		<color>#FFAA00</color>
		<color>#1E8AD3</color>
		<color>#AA6611</color>
		<color>#772200</color>
	</color-palette>

	<!-- Specify where the data for the chart comes from -->
	<data>
		<!-- Specify the path to the action sequence that provides the data -->
		<data-solution>samples/steel-wheels</data-solution>
		<data-path>homeDashboard</data-path>
		<data-action>Sales_by_Territory.xaction</data-action>

		<!-- Specify the output of the action sequence that contains the data -->
		<data-output>swresult</data-output>
		<data-name>TERRITORY</data-name>
		<data-value>SOLD_PRICE</data-value>

		<!-- Specify whether to get the pie series from the rows or columns -->
		<data-orientation>columns</data-orientation>
	</data>
</chart>