Changes between Version 11 and Version 12 of JqChartMacro
- Timestamp:
- Jul 6, 2016, 6:31:20 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JqChartMacro
v11 v12 43 43 }}} 44 44 45 == Example 46 45 == Examples 46 The options element is the jqPlot options parameter. See the [http://www.jqplot.com/index.php jqPlot website] for more information. 47 === Gauge chart 47 48 This creates a gauge counting the number of rows returned in report number 10: 48 49 … … 63 64 }}} 64 65 66 === Line chart 65 67 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: 66 68 … … 78 80 }}} 79 81 80 82 === Ticket status as pie chart 81 83 The following creates a pie chart showing the number of tickets for each status. Label and grid are hidden. 82 84 {{{ … … 84 86 #!JQChart 85 87 "type": "Pie", 86 "width": 4 00,87 "height": 250,88 "width": 450, 89 "height": 350, 88 90 "query": "SELECT status, count(status) AS number FROM ticket GROUP BY status", 89 91 "options": { … … 103 105 "showDataLabels": true, 104 106 "sliceMargin": 8, 105 "padding": 25,107 "padding": 35, 106 108 "dataLabels": "value" 107 109 } … … 116 118 }}} 117 119 }}} 118 The options element is the jqPlot options parameter. See the [http://www.jqplot.com/index.php jqPlot website] for more information.119 120 121 [[Image(ticket_status_pie.png)]] 120 122 == Recent Changes 121 123