Changes between Version 18 and Version 19 of JqChartMacro


Ignore:
Timestamp:
Jun 23, 2022, 5:27:24 PM (22 months ago)
Author:
figaro
Comment:

Move examples to functional description

Legend:

Unmodified
Added
Removed
Modified
  • JqChartMacro

    v18 v19  
    77This macro adds [http://www.jqplot.com/index.php jqPlot] based charts to Trac wiki pages. jqPlot is a plotting and charting plugin for the jQuery Javascript framework and is dual licensed under GPL and MIT.
    88
     9=== Line chart
     10
    911Display dual line plot with title, legend and a date line:
    1012
     
    1315Also note the tooltip at the lower left-hand corner, showing the date, when hovering over the marker in question.
    1416
     17This creates a line chart with one series per ticket type. The x axis is the time the ticket was created, and the y axis is a fudged number for demonstration purposes only (the ticket id times 10). Notice that the SQL query returns the ticket id. This will make each point in the chart clickable: clicking on a point will send you to the corresponding ticket:
     18
     19{{{
     20{{{
     21#!JQChart
     22  "width": 400,
     23  "height": 250,
     24  "query": "select type, time, id * 10, id from ticket order by time",
     25  "options" : {
     26    "title": "Creation date of each ticket, by type"
     27  },
     28  "series_column": "type"
     29}}}
     30}}}
     31
     32=== Gauge chart
     33
    1534Display multiple gauge meters:
    1635
    1736[[Image(gauge.png)]]
    1837
    19 For more examples of the usage of this macro, see section Examples below.
    20 
    21 == Bugs/Feature Requests
    22 
    23 Existing bugs and feature requests for JqChartMacro are
    24 [report:9?COMPONENT=JqChartMacro here].
    25 
    26 If you have any issues, create a
    27 [/newticket?component=JqChartMacro new ticket].
    28 
    29 [[TicketQuery(component=JqChartMacro&group=type,format=progress)]]
    30 
    31 == Download
    32 
    33 Download the zipped source from [export:jqchartmacro here].
    34 
    35 == Source
    36 
    37 You can check out JqChartMacro from [/svn/jqchartmacro here] using Subversion, or [source:jqchartmacro 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 Make sure that jqplotchart is enabled in your `trac.ini` file:
    44 
    45 {{{#!ini
    46 [components]
    47 jqplotchart.* = enabled
    48 }}}
    49 
    50 == Examples
    51 
    5238The options element is the jqPlot options parameter. See the [http://www.jqplot.com/index.php jqPlot website] for more information.
    53 
    54 === Gauge chart
    5539
    5640This creates a gauge counting the number of rows returned in report number 10:
     
    6953    }
    7054  }
    71 }}}
    72 }}}
    73 
    74 === Line chart
    75 
    76 This creates a line chart with one series per ticket type. The x axis is the time the ticket was created, and the y axis is a 'cooked' number for demonstration only (the ticket id times 10). Notice that the sql query returns the ticket id. This will make each point in the chart clickable. When you click on a point, you will be sent to the ticket corresponding to that point:
    77 
    78 {{{
    79 {{{
    80 #!JQChart
    81   "width": 400,
    82   "height": 250,
    83   "query": "select type, time, id * 10, id from ticket order by time",
    84   "options" : {
    85     "title": "Creation date of each ticket, by type"
    86   },
    87   "series_column": "type"
    8855}}}
    8956}}}
     
    176143[[Image(ticket_status_pie2.png, 350px)]]
    177144
     145== Bugs/Feature Requests
     146
     147Existing bugs and feature requests for JqChartMacro are
     148[report:9?COMPONENT=JqChartMacro here].
     149
     150If you have any issues, create a
     151[/newticket?component=JqChartMacro new ticket].
     152
     153[[TicketQuery(component=JqChartMacro&group=type,format=progress)]]
     154
     155== Download
     156
     157Download the zipped source from [export:jqchartmacro here].
     158
     159== Source
     160
     161You can check out JqChartMacro from [/svn/jqchartmacro here] using Subversion, or [source:jqchartmacro browse the source] with Trac.
     162
     163== Installation
     164
     165General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
     166
     167Make sure that jqplotchart is enabled in your `trac.ini` file:
     168
     169{{{#!ini
     170[components]
     171jqplotchart.* = enabled
     172}}}
     173
    178174== Recent Changes
    179175