7 | | This plugin provides a simple way to chart the result of an SQL query using the [https://developers.google.com/chart/?hl=en Google Chart API]. |
8 | | |
9 | | '''Note''': This plugin currently uses an eval() statement to turn parameters in Python dict syntax into an actual dictionary. This means you can pass tuples and lists to the engine. However, it is also risky, since you are allowing the author of the wiki page to execute arbitrary Python code. Until this has been replaced by a more limited parser that only accepts primitive types, do not use this plugin in an environment where you don't trust your users. |
10 | | |
11 | | Patches to fix this are welcome! |
12 | | |
13 | | For example, using JSON: install simplejson, then in Python: |
14 | | {{{ |
15 | | >>> args = '["hurray",{"for":"json"}]' |
16 | | >>> import simplejson |
17 | | >>> simplejson.loads(args) |
18 | | ["hurray", {"for":"json"}] |
19 | | }}} |
20 | | |
21 | | == Bugs/Feature Requests |
22 | | |
23 | | Existing bugs and feature requests for GoogleChartPlugin are |
24 | | [report:9?COMPONENT=GoogleChartPlugin here]. |
25 | | |
26 | | If you have any issues, create a |
27 | | [/newticket?component=GoogleChartPlugin new ticket]. |
28 | | |
29 | | [[TicketQuery(component=GoogleChartPlugin&group=type,format=progress)]] |
30 | | |
31 | | == Download |
32 | | |
33 | | Download the zipped source from [export:googlechartplugin here]. |
34 | | |
35 | | == Source |
36 | | |
37 | | You can check out GoogleChartPlugin from [/svn/googlechartplugin here] using Subversion, or [source:googlechartplugin browse the source] with Trac. |
38 | | |
39 | | == Installation |
40 | | |
41 | | General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. |
42 | | |
43 | | == Example |
| 7 | This plugin provides a simple way to chart the result of an SQL query using the [https://developers.google.com/chart/?hl=en Google Chart API]. It defines a macro called GChart that can be used to pass variables into for the creation of charts, which are subsequently displayed on your wiki page. |
| 79 | '''Note''': This plugin currently uses an eval() statement to turn parameters in Python dict syntax into an actual dictionary. This means you can pass tuples and lists to the engine. However, it is also risky, since you are allowing the author of the wiki page to execute arbitrary Python code. Until this has been replaced by a more limited parser that only accepts primitive types, do not use this plugin in an environment where you don't trust your users. |
| 80 | |
| 81 | Patches to fix this are welcome! |
| 82 | |
| 83 | For example, using JSON: install simplejson, then in Python: |
| 84 | {{{ |
| 85 | >>> args = '["hurray",{"for":"json"}]' |
| 86 | >>> import simplejson |
| 87 | >>> simplejson.loads(args) |
| 88 | ["hurray", {"for":"json"}] |
| 89 | }}} |
| 90 | |
| 91 | == Bugs/Feature Requests |
| 92 | |
| 93 | Existing bugs and feature requests for GoogleChartPlugin are |
| 94 | [report:9?COMPONENT=GoogleChartPlugin here]. |
| 95 | |
| 96 | If you have any issues, create a |
| 97 | [/newticket?component=GoogleChartPlugin new ticket]. |
| 98 | |
| 99 | [[TicketQuery(component=GoogleChartPlugin&group=type,format=progress)]] |
| 100 | |
| 101 | == Download |
| 102 | |
| 103 | Download the zipped source from [export:googlechartplugin here]. |
| 104 | |
| 105 | == Source |
| 106 | |
| 107 | You can check out GoogleChartPlugin from [/svn/googlechartplugin here] using Subversion, or [source:googlechartplugin browse the source] with Trac. |
| 108 | |
| 109 | == Installation |
| 110 | |
| 111 | General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. |
| 112 | |