Details
-
New Feature
-
Resolution: Cannot Reproduce
-
Major
-
None
-
2.2.5
-
None
-
linux fedora12
-
chart,no matching table,python,groovy,velocity
-
Unknown
-
N/A
-
N/A
-
Description
Hello,
Putting the following in a wiki page (syntax 2.0):
{{groovy}}
println "(%id='table1'%)"
println "| |X |Y |Z"
println "|Q1|1.2|3.4|1.3"
println "|Q2|4.5|3.4|2.3"
println "|Q3|1.2|4.5|9.0"
println "|Q4|3.4|1.2|1.2"
{{/groovy}}
{{chart type="bar" params="table:table1;range:B2-D5;series:columns;" title="Chart Test" width="320" height="240"/}}
{{python}}
print "(%id='table2'%)"
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:table2;range:B2-D5;series:columns;" title="Chart Test" width="320" height="240"/}}
{{velocity}}
#set($rows = ["(%id='table3'%)", "| |X |Y |Z\n", "|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"])
#foreach($row in $rows)
$row
#end
{{/velocity}}
{{chart type="bar" params="table:table3;range:B2-D5;series:columns;" title="Chart Test" width="320" height="240"/}}
No chart is created and each one of them fails with
Caused by: org.xwiki.rendering.macro.MacroExecutionException: Unable to find a macthing data table.
at org.xwiki.chart.internal.source.DocumentTableBlockDataSource.getTableBlock(DocumentTableBlockDataSource.java:114)
at org.xwiki.chart.internal.source.AbstractTableBlockDataSource.buildModel(AbstractTableBlockDataSource.java:72)
at org.xwiki.rendering.internal.macro.chart.ChartMacro.generateChart(ChartMacro.java:144)
Thanks for a rapid fix !!!
Regards,
Christophe
Attachments
Issue Links
- is related to
-
XWIKI-8267 Chart macro with an XDOM data source in the same document executes very slowly
-
- Closed
-