Changes between Version 13 and Version 14 of GoogleChartPlugin
- Timestamp:
- Nov 2, 2015, 10:20:48 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GoogleChartPlugin
v13 v14 1 = Google Chart API plugin = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = = Description ==3 = Google Chart API plugin 4 4 5 Provides a simple way to chart the result of any query. 5 == Description 6 6 7 '''NOTE''': This plugin currently uses an eval() statement to turn parameters in Python dict syntax into an actual dictionary. This is convenient, because it means you can pass tuples and lists to the engine. However, it is also quite dangerous, since you are allowing the author of the wiki page to execute arbitrary Python. 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. 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. 8 10 9 11 Patches to fix this would be welcome! 10 12 11 H''ow about this? Use JSON. 13 H''ow about this? Use JSON. Install simplejson, then in python:'' 12 14 {{{ 13 15 >>> args = '["hurray",{"for":"json"}]' … … 17 19 }}} 18 20 19 == Bugs/Feature Requests ==21 == Bugs/Feature Requests 20 22 21 23 Existing bugs and feature requests for GoogleChartPlugin are … … 23 25 24 26 If you have any issues, create a 25 [ http://trac-hacks.org/newticket?component=GoogleChartPlugin&owner=optiludenew ticket].27 [/newticket?component=GoogleChartPlugin new ticket]. 26 28 27 == Download == 29 [[TicketQuery(component=GoogleChartPlugin&group=type,format=progress)]] 28 30 29 Download the zipped source from [download:googlechartplugin here]. 31 == Download 30 32 31 == Source == 33 Download the zipped source from [export:googlechartplugin here]. 34 35 == Source 32 36 33 37 You can check out GoogleChartPlugin from [http://trac-hacks.org/svn/googlechartplugin here] using Subversion, or [source:googlechartplugin browse the source] with Trac. 34 38 35 == Example == 39 == Installation 40 41 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 42 43 == Example 44 45 === Line chart 46 36 47 {{{ 37 48 [[GChart(query="SELECT id FROM ticket", type="line")]] 38 49 }}} 50 39 51 {{{ 40 52 #!html … … 43 55 44 56 '''Note''': the following example macros must be entered in a single line. 45 === Simple Pie === 57 58 === Pie chart 59 46 60 {{{ 47 61 [[GChart(type="pie", chs="250x100", query="SELECT rev FROM revision")]] 48 62 }}} 63 49 64 {{{ 50 65 #!html … … 52 67 }}} 53 68 54 === Legend === 69 === Add a legend 70 55 71 {{{ 56 72 [[GChart(chxt="y", chco="ff0000,00ff00,0000ff", chs="300x150", type="lc", … … 58 74 query="SELECT rev, (10+2*rev), (30+3*rev) FROM revision")]] 59 75 }}} 76 60 77 {{{ 61 78 #!html … … 63 80 }}} 64 81 65 === Fill === 82 === Add a fill 83 66 84 {{{ 67 85 [[GChart( chxt="x,y", chf="c,lg,45,ffffff,0,76A4FB,0.75|bg,s,EFEFEF", … … 70 88 query="SELECT id FROM ticket")]] 71 89 }}} 90 72 91 Equivalent to multi-line macro: 73 92 {{{ … … 94 113 See README.txt for more information. 95 114 96 == Recent Changes ==115 == Recent Changes 97 116 98 117 [[ChangeLog(googlechartplugin, 3)]] 99 118 100 == Author/Contributors == 101 119 == Author/Contributors 102 120 103 121 '''Author:''' [wiki:optilude] [[BR]] 122 '''Maintainer:''' [[Maintainer]] [[BR]] 104 123 '''Contributors:'''