1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <action-sequence>
|
---|
3 | <name>Simple Line Chart Example</name>
|
---|
4 | <title>Chartbeans Line Chart</title>
|
---|
5 | <version>1</version>
|
---|
6 | <logging-level>debug</logging-level>
|
---|
7 | <documentation>
|
---|
8 | <author>Gretchen Moran</author>
|
---|
9 | <description/>
|
---|
10 | <help/>
|
---|
11 | </documentation>
|
---|
12 |
|
---|
13 | <inputs>
|
---|
14 | <series-column type="string">
|
---|
15 | <sources>
|
---|
16 | <request>series-column</request>
|
---|
17 | </sources>
|
---|
18 | <default-value>YEAR</default-value>
|
---|
19 | </series-column>
|
---|
20 | <category-column type="string">
|
---|
21 | <sources>
|
---|
22 | <request>category-column</request>
|
---|
23 | </sources>
|
---|
24 | <default-value>LINE</default-value>
|
---|
25 | </category-column>
|
---|
26 | <value-column type="string">
|
---|
27 | <sources>
|
---|
28 | <request>value-column</request>
|
---|
29 | </sources>
|
---|
30 | <default-value>PRICE</default-value>
|
---|
31 | </value-column>
|
---|
32 | </inputs>
|
---|
33 |
|
---|
34 | <outputs>
|
---|
35 | <outputstream type="string">
|
---|
36 | <destinations>
|
---|
37 | <response>content</response>
|
---|
38 | </destinations>
|
---|
39 | </outputstream>
|
---|
40 | </outputs>
|
---|
41 |
|
---|
42 | <resources>
|
---|
43 | <line>
|
---|
44 | <solution-file>
|
---|
45 | <location>chartbeans_linechart.xml</location>
|
---|
46 | <mime-type>text/xml</mime-type>
|
---|
47 | </solution-file>
|
---|
48 | </line>
|
---|
49 | </resources>
|
---|
50 |
|
---|
51 |
|
---|
52 | <actions>
|
---|
53 |
|
---|
54 | <action-definition>
|
---|
55 | <component-name>SQLLookupRule</component-name>
|
---|
56 | <action-type>New Chart Data Query</action-type>
|
---|
57 | <action-outputs>
|
---|
58 | <query-result type="result-set" mapping="new_result"/>
|
---|
59 | </action-outputs>
|
---|
60 | <component-definition>
|
---|
61 | <live><![CDATA[true]]></live>
|
---|
62 | <driver><![CDATA[com.mysql.jdbc.Driver]]></driver>
|
---|
63 | <connection><![CDATA[jdbc:mysql://localhost:3306/database]]></connection>
|
---|
64 | <user-id><![CDATA[username]]></user-id>
|
---|
65 | <password><![CDATA[wachtwoord]]></password>
|
---|
66 | <query><![CDATA[SELECT start AS LINE,
|
---|
67 | roomID AS "YEAR",
|
---|
68 | MAX(value) AS "PRICE"
|
---|
69 | FROM
|
---|
70 | dennis_test.tuples
|
---|
71 | WHERE end IS NULL
|
---|
72 | GROUP BY LINE, YEAR
|
---|
73 | ORDER BY LINE ASC
|
---|
74 | LIMIT 50]]></query>
|
---|
75 | </component-definition>
|
---|
76 | </action-definition>
|
---|
77 |
|
---|
78 |
|
---|
79 | <action-definition>
|
---|
80 | <component-name>ChartBeansComponent</component-name>
|
---|
81 | <action-inputs>
|
---|
82 | <value-column type="string"/>
|
---|
83 | <category-column type="string"/>
|
---|
84 | <series-column type="string"/>
|
---|
85 | <chartdata type="result-set" mapping="new_result"/>
|
---|
86 | </action-inputs>
|
---|
87 | <action-resources>
|
---|
88 | <chart-model-xml type="resource" mapping="line"/>
|
---|
89 | </action-resources>
|
---|
90 | <action-outputs>
|
---|
91 | <outputstream/>
|
---|
92 | </action-outputs>
|
---|
93 | <component-definition/>
|
---|
94 | <action-name>ChartBeans Line Chart</action-name>
|
---|
95 | <logging-level>DEBUG</logging-level>
|
---|
96 | </action-definition>
|
---|
97 |
|
---|
98 | </actions>
|
---|
99 | </action-sequence>
|
---|