Hello,
Trying the following with XWiki syntax 2.0:
=== TEST MACRO ===
(% id="table3" %)
| |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 type="bar" params="table:table3;range:B2-D5;series:columns;"
title="Chart Test" width="320" height="240"/}}
=== TEST CHART MACRO WITH DYNAMIC TABLE ===
{{python}}
print "(%id='table4'%)"
print "| |X |Y |Z"
print "|Q1|1.2|3.4|1.3"
print "|Q2|4.5|3.4|2.3"
print "|Q3|1.2|4.5|9.0"
print "|Q4|3.4|1.2|1.2"
{{/python}}
{{chart type="bar" params="table:table4;range:B2-D5;series:columns;"
title="Chart Test" width="320" height="240"/}}
----------------------------------------------
... I get a graph for the TEST MACRO section but an error
'org.xwiki.rendering.macro.MacroExecutionException: Unable to find a
macthing data table.' For the TEST CHART MACRO WITH DYNAMIC TABLE.
Since the result of the python is inserted in the back into the wiki page, I
thought (dreamt actually) that the chart macro would be able to use those
outputs.
What have I done here and how can I make this work, basically charting the
output of an xwiki script ?
Thanks for your help,
Regards,
Christophe,