On Tue, May 11, 2010 at 01:51, Christophe FRAULE <[email protected]>wrote:
> 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 ?
>
Looks like a priority issue here, chart macro is probably executed before
groovy macro which is wrong. Would be great if you could create an issue
about that on http://jira.xwiki.org.
>
> Thanks for your help,
>
> Regards,
>
> Christophe,
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
--
Thomas Mortagne
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users