Comments on Chart Macro
Last modified by Admin on 2024/03/19 03:32
- Manage
- Copy
- Actions
- Export
- Print Preview
- Viewers
- Source
- Siblings
- Content
- Attachments (11)
- History
- Information
- Likes
Export
Choose the export format from the list below:
$services.rendering.render($uix.execute(), 'html/5.0')
- Office Formats (1)
-
Export as Portable Document Format (PDF) using the Web Browser
-
- Other Formats (1)
-
Export as HyperText Markup Language (HTML)
-
This is a great macro, but the parameter "params" is unclear. What parameters can I set in there?
Cp. http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/charts/params/ChartParams.java
Philipp, are you sure these are used? You're referring to the old chart plugin. This chart macro has been rewritten for XWiki Syntax 2.0 and lives here: http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-chart/
The links mentioned her do not ?
Where can we find parameters?
Can these macros be used with dynamic data? I have tables that pull data from SQL databases using the XWikiSqlPlugin - is it possible to chart this?
Yes. Just create a script (velocity, groovy, etc) that generates a table and use that table in the chart macro.
Is it possible to create 3d charts in XWiki 3.0?
Yep, I've just added that in XWiki 4.1
Can i create a dynamic .html file with the table and use this as a datasource for the graphs?
You can specify a separate document for the data; thus you could have that page written in HTML if you wish. You should ask your question on the users list.
Parameters at https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-chart/xwiki-platform-chart-plugin/src/main/java/com/xpn/xwiki/plugin/charts/params/ChartParams.java
For all charts with just years in 1st column "2010, 2011,... the all charts show "2009, 2010,..." on x-axis.
Same is visible above in example "Using "xy_line3D", where e.g. the value "|2001-4|153.8|117.2" is shown at "March-2001" in the chart.
-> All chart-values are offset by 1 date-unit.
Am I wrong or does the extension not worksd as expected?
Hi Markus. Please use our forum to ask questions, see http://dev.xwiki.org/xwiki/bin/view/Community/Discuss Thx
Thanks Vincent!
I've added my question here: https://forum.xwiki.org/t/chartmacro-problem-with-x-axis-labels/3041
The chart macro doesn't appear to be working with a clean install on Debian (installed via .deb). If gives an error:
Failed to execute the [chart] macro. Cause: [Could not initialize class org.jfree.chart.JFreeChart].
I'm using this from the example:
{{chart type="pie" source="inline" params="range:B2-D5;series:columns;" title="Chart Test" width="320" height="240"}}
|=|=X|=Y|=Z
|Q1|1.2|3.4|1.3
|Q2|4.5|3.4|2.3
|Q3|1.2|4.5|9.0
|Q4|3.4|1.2|1.2
{{/chart}}