Changes between Version 11 and Version 12 of JqChartMacro


Ignore:
Timestamp:
Jul 6, 2016, 6:31:20 AM (8 years ago)
Author:
Cinc-th
Comment:

Rework of example section

Legend:

Unmodified
Added
Removed
Modified
  • JqChartMacro

    v11 v12  
    4343}}}
    4444
    45 == Example
    46 
     45== Examples
     46The options element is the jqPlot options parameter. See the [http://www.jqplot.com/index.php jqPlot website] for more information.
     47=== Gauge chart
    4748This creates a gauge counting the number of rows returned in report number 10:
    4849
     
    6364}}}
    6465
     66=== Line chart
    6567This 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:
    6668
     
    7880}}}
    7981
    80 
     82=== Ticket status as pie chart
    8183The following creates a pie chart showing the number of tickets for each status. Label and grid are hidden.
    8284{{{
     
    8486#!JQChart
    8587  "type": "Pie",
    86   "width": 400,
    87   "height": 250,
     88  "width": 450,
     89  "height": 350,
    8890  "query": "SELECT status, count(status) AS number FROM ticket GROUP BY status",
    8991  "options": {
     
    103105              "showDataLabels": true,
    104106              "sliceMargin": 8,
    105               "padding": 25,
     107              "padding": 35,
    106108              "dataLabels": "value"
    107109          }
     
    116118}}}
    117119}}}
    118 The options element is the jqPlot options parameter. See the [http://www.jqplot.com/index.php jqPlot website] for more information.
    119120
     121[[Image(ticket_status_pie.png)]]
    120122== Recent Changes
    121123