From version < 6.1 >
edited by Ludovic Dubost
on 2018/05/08 16:55
To version < 5.1 >
edited by Ludovic Dubost
on 2018/05/08 16:52
< >
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -1,48 +2,2 @@
1 -Allows creating charts and data table for AppWithinMinutes applications.
2 2  
3 -You will find the link to the charts page in the left menu
4 -
5 -[[image:awm-charts-menu.png]]
6 -
7 -You can then select an application or class
8 -
9 -[[image:awm-charts-home.png]]
10 -
11 -You can create bar or pie charts by choosing the fields from your application or class:
12 -
13 -[[image:awm-charts-table.png]]
14 -
15 -[[image:awm-charts-pie.png]]
16 -
17 -You can also create charts using the macro in the Wysiwyg editor or in Wiki syntax. See the macro parameters below:
18 -
19 -{{{{{awmchart app="Help.Applications.Movies" category="databaseList1" type="pie" title="Chart" width="500" height="500" table="1" /}}
20 -}}}
21 -
22 -|= Parameter |= Description |= Default Value
23 -|= app | Application Name to get the data for the chart (corresponds to the space) |Empty
24 -|= className | Class Name used alternatively to an Application name  |Empty
25 -|= category | Field on which the counting is made |status
26 -|= type | Chart type (pie / bar / bar3D) |Empty
27 -|= title | Title of the chart |Empty
28 -|= width | Width of the chart |500px
29 -|= height | Height of the chart |500px
30 -|= table | Display of the data table (0/1) |1
31 -|= chart | Display of the chart (0/1) |1
32 -|= chartClasses | CSS Classes to add to the chart 'div' |col-md-6 col-sm-12
33 -|= tableClasses | CSS Classes to add to the table 'div' |col-md-6 col-sm-12
34 -|= useRow | Display of a bootstrap row (0/1) |1
35 -|= colors | Colors to use for the chart (separated by commas) |backgroundColor:FFFFFF;
36 -legendBackgroundColor:FFFFFF;
37 -borderColor:FFFFFF;
38 -plotBackgroundColor:FFFFFF;
39 -plotBorderColor:FFFFFF;
40 -plotBorderVisible:false
41 -|= addParams | Additional parameters for the chart (see the ~[~[Chart macro documentation>>[[http:~~/~~/extensions.xwiki.org/xwiki/bin/view/Extension/Chart%20Macro>>url:http://extensions.xwiki.org/xwiki/bin/view/Extension/Chart%20Macro]]]) |Empty
42 -|= fromHQL | Additional HQL to add to the from part of the query |Empty
43 -|= whereHQL | Additional HQL to add to the where part of the query |Empty
44 -|= function | Function to apply to the category field |Empty
45 -|= aggregate | Aggregate field to use instead of count |Empty
46 -|= aggregateFunction | Function to apply to the aggregate |sum
47 -
48 -[[image:awm-charts-macro.png]]
2 +Allows creating charts and data table for AppWithinMinutes applications
cogAllows creating charts and data table for AppWithinMinutes applications
TypeXAR
Developed by

Ludovic Dubost

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

Allows creating charts and data table for AppWithinMinutes applications

Allows creating charts and data table for AppWithinMinutes applications

You will find the link to the charts page in the left menu

awm-charts-menu.png

You can then select an application or class

awm-charts-home.png

You can create bar or pie charts by choosing the fields from your application or class:

awm-charts-table.png

awm-charts-pie.png

You can also create charts using the macro in the Wysiwyg editor or in Wiki syntax. See the macro parameters below:

{{awmchart app="Help.Applications.Movies" category="databaseList1" type="pie" title="Chart" width="500" height="500" table="1" /}}
 Parameter  Description  Default Value
 app  Application Name to get the data for the chart (corresponds to the space) Empty
 className  Class Name used alternatively to an Application name  Empty
 category  Field on which the counting is made status
 type  Chart type (pie / bar / bar3D) Empty
 title  Title of the chart Empty
 width  Width of the chart 500px
 height  Height of the chart 500px
 table  Display of the data table (0/1) 1
 chart  Display of the chart (0/1) 1
 chartClasses  CSS Classes to add to the chart 'div' col-md-6 col-sm-12
 tableClasses  CSS Classes to add to the table 'div' col-md-6 col-sm-12
 useRow  Display of a bootstrap row (0/1) 1
 colors  Colors to use for the chart (separated by commas) backgroundColor:FFFFFF;
legendBackgroundColor:FFFFFF;
borderColor:FFFFFF;
plotBackgroundColor:FFFFFF;
plotBorderColor:FFFFFF;
plotBorderVisible:false
 addParams  Additional parameters for the chart (see the [[Chart macro documentation>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Chart%20Macro]) Empty
 fromHQL  Additional HQL to add to the from part of the query Empty
 whereHQL  Additional HQL to add to the where part of the query Empty
 function  Function to apply to the category field Empty
 aggregate  Aggregate field to use instead of count Empty
 aggregateFunction  Function to apply to the aggregate sum

awm-charts-macro.png

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Get Connected