Changes between Version 13 and Version 14 of GoogleChartPlugin


Ignore:
Timestamp:
Nov 2, 2015, 10:20:48 AM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged with license

Legend:

Unmodified
Added
Removed
Modified
  • GoogleChartPlugin

    v13 v14  
    1 = Google Chart API plugin =
     1[[PageOutline(2-5,Contents,pullout)]]
    22
    3 == Description ==
     3= Google Chart API plugin
    44
    5 Provides a simple way to chart the result of any query.
     5== Description
    66
    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.
     7This 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.
    810
    911Patches to fix this would be welcome!
    1012
    11 H''ow about this? Use JSON.  Install simplejson, then in python:''
     13H''ow about this? Use JSON. Install simplejson, then in python:''
    1214{{{
    1315>>> args = '["hurray",{"for":"json"}]'
     
    1719}}}
    1820
    19 == Bugs/Feature Requests ==
     21== Bugs/Feature Requests
    2022
    2123Existing bugs and feature requests for GoogleChartPlugin are
     
    2325
    2426If you have any issues, create a
    25 [http://trac-hacks.org/newticket?component=GoogleChartPlugin&owner=optilude new ticket].
     27[/newticket?component=GoogleChartPlugin new ticket].
    2628
    27 == Download ==
     29[[TicketQuery(component=GoogleChartPlugin&group=type,format=progress)]]
    2830
    29 Download the zipped source from [download:googlechartplugin here].
     31== Download
    3032
    31 == Source ==
     33Download the zipped source from [export:googlechartplugin here].
     34
     35== Source
    3236
    3337You can check out GoogleChartPlugin from [http://trac-hacks.org/svn/googlechartplugin here] using Subversion, or [source:googlechartplugin browse the source] with Trac.
    3438
    35 == Example ==
     39== Installation
     40
     41General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
     42
     43== Example
     44
     45=== Line chart
     46
    3647{{{
    3748[[GChart(query="SELECT id FROM ticket", type="line")]]
    3849}}}
     50
    3951{{{
    4052#!html
     
    4355
    4456'''Note''': the following example macros must be entered in a single line.
    45 === Simple Pie ===
     57
     58=== Pie chart
     59
    4660{{{
    4761[[GChart(type="pie", chs="250x100", query="SELECT rev FROM revision")]]
    4862}}}
     63
    4964{{{
    5065#!html
     
    5267}}}
    5368
    54 === Legend ===
     69=== Add a legend
     70
    5571{{{
    5672[[GChart(chxt="y", chco="ff0000,00ff00,0000ff", chs="300x150", type="lc",
     
    5874         query="SELECT rev, (10+2*rev), (30+3*rev) FROM revision")]]
    5975}}}
     76
    6077{{{
    6178#!html
     
    6380}}}
    6481
    65 === Fill ===
     82=== Add a fill
     83
    6684{{{
    6785[[GChart( chxt="x,y", chf="c,lg,45,ffffff,0,76A4FB,0.75|bg,s,EFEFEF",
     
    7088          query="SELECT id FROM ticket")]]
    7189}}}
     90
    7291Equivalent to multi-line macro:
    7392{{{
     
    94113See README.txt for more information.
    95114
    96 == Recent Changes ==
     115== Recent Changes
    97116
    98117[[ChangeLog(googlechartplugin, 3)]]
    99118
    100 == Author/Contributors ==
    101 
     119== Author/Contributors
    102120
    103121'''Author:''' [wiki:optilude] [[BR]]
     122'''Maintainer:''' [[Maintainer]] [[BR]]
    104123'''Contributors:'''