Changes between Version 18 and Version 19 of JqChartMacro
- Timestamp:
- Jun 23, 2022, 5:27:24 PM (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JqChartMacro
v18 v19 7 7 This 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. 8 8 9 === Line chart 10 9 11 Display dual line plot with title, legend and a date line: 10 12 … … 13 15 Also note the tooltip at the lower left-hand corner, showing the date, when hovering over the marker in question. 14 16 17 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 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 15 34 Display multiple gauge meters: 16 35 17 36 [[Image(gauge.png)]] 18 37 19 For more examples of the usage of this macro, see section Examples below.20 21 == Bugs/Feature Requests22 23 Existing bugs and feature requests for JqChartMacro are24 [report:9?COMPONENT=JqChartMacro here].25 26 If you have any issues, create a27 [/newticket?component=JqChartMacro new ticket].28 29 [[TicketQuery(component=JqChartMacro&group=type,format=progress)]]30 31 == Download32 33 Download the zipped source from [export:jqchartmacro here].34 35 == Source36 37 You can check out JqChartMacro from [/svn/jqchartmacro here] using Subversion, or [source:jqchartmacro browse the source] with Trac.38 39 == Installation40 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 {{{#!ini46 [components]47 jqplotchart.* = enabled48 }}}49 50 == Examples51 52 38 The options element is the jqPlot options parameter. See the [http://www.jqplot.com/index.php jqPlot website] for more information. 53 54 === Gauge chart55 39 56 40 This creates a gauge counting the number of rows returned in report number 10: … … 69 53 } 70 54 } 71 }}}72 }}}73 74 === Line chart75 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 #!JQChart81 "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"88 55 }}} 89 56 }}} … … 176 143 [[Image(ticket_status_pie2.png, 350px)]] 177 144 145 == Bugs/Feature Requests 146 147 Existing bugs and feature requests for JqChartMacro are 148 [report:9?COMPONENT=JqChartMacro here]. 149 150 If 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 157 Download the zipped source from [export:jqchartmacro here]. 158 159 == Source 160 161 You can check out JqChartMacro from [/svn/jqchartmacro here] using Subversion, or [source:jqchartmacro browse the source] with Trac. 162 163 == Installation 164 165 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 166 167 Make sure that jqplotchart is enabled in your `trac.ini` file: 168 169 {{{#!ini 170 [components] 171 jqplotchart.* = enabled 172 }}} 173 178 174 == Recent Changes 179 175