Changes between Version 10 and Version 11 of JqChartMacro


Ignore:
Timestamp:
Jul 5, 2016, 2:20:36 PM (8 years ago)
Author:
Cinc-th
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JqChartMacro

    v10 v11  
    7878}}}
    7979
     80
     81The following creates a pie chart showing the number of tickets for each status. Label and grid are hidden.
     82{{{
     83{{{
     84#!JQChart
     85  "type": "Pie",
     86  "width": 400,
     87  "height": 250,
     88  "query": "SELECT status, count(status) AS number FROM ticket GROUP BY status",
     89  "options": {
     90      "title": "Ticket status",
     91      "axes": {
     92          "xaxis": {
     93              "drawMajorGridlines": false,
     94              "numberTicks": 0
     95          }
     96      },
     97      "grid": {
     98          "borderWidth":1.0,
     99          "shadow": false
     100      },
     101      "seriesDefaults":{
     102          "rendererOptions": {
     103              "showDataLabels": true,
     104              "sliceMargin": 8,
     105              "padding": 25,
     106              "dataLabels": "value"
     107          }
     108      },
     109      "legend": {
     110          "show": true,
     111          "placement": "inside",
     112          "location": "w",
     113          "marginTop": "15px"
     114      }
     115  }
     116}}}
     117}}}
    80118The options element is the jqPlot options parameter. See the [http://www.jqplot.com/index.php jqPlot website] for more information.
    81119