Question
When including (from another page) a page with chart (
ChartPlugin) that uses data from table with some spreadsheet expressions (
SpreadSheetPlugin), I get always a blank chart (like all values equal to zerro). Expressions are defined using variables:
%CALC{"$SET(suma, $NOEXEC($ROUND($SUM(R$ROW(-11):C$COLUMN()...R$ROW(-1):C$COLUMN()),1)))"}%
The table row which makes the troubles looks like the following:
| *SUM* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* | *%CALC{"$EXEC($GET( suma ))"}%* |
When I change the chart definition to use row without spreadsheet expressions, everything works well. No error or warning message in apache/twiki logs.
Here is the whole included page code:
| |
|
|
|
|
|
|
|
|
|
|
|
|
| Metrics \ Month |
I.07 |
II.07 |
III.07 |
IV.07 |
V.07 |
VI.07 |
VII.07 |
VIII.07 |
IX.07 |
X.07 |
XI.07 |
XII.07 |
| ochir |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
|
|
| ogyn |
1607 |
1607 |
0 |
0 |
0 |
1607 |
|
|
|
|
|
|
| olm |
781 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
|
|
| aro |
0 |
0 |
1700 |
1200 |
0 |
3594 |
|
|
|
|
|
|
| koa |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
|
|
| koa |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
|
|
| kob |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
|
|
| koc |
4821 |
0 |
0 |
0 |
1700 |
0 |
|
|
|
|
|
|
| ouro |
4780 |
2400 |
0 |
0 |
0 |
2202 |
|
|
|
|
|
|
| kro |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
|
|
| stac |
0 |
0 |
1607 |
0 |
0 |
0 |
|
|
|
|
|
|
| sum |
11989 |
4007 |
3307 |
1200 |
1700 |
7403 |
0 |
0 |
0 |
0 |
0 |
0 |
You can see the result in
Sandbox/PetrKlikaSandbox.
When I tried to use the $ROUND(...) expressions directly (instead of calling $EXEC(...)), I've got graph with -11 values in the included chart. This leads to some parse error in the expressions probably.
Environment
--
PetrKlika - 21 Aug 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
I suspeced a
web="%WEB%" topic="%TOPIC%" in
%CHART would do the trick, but not so. Not sure how to fix that.
--
PeterThoeny - 27 Aug 2007
Sorry, closing this after more than 30 days of inactivity. Please feel free to reopen the question.
--
PeterThoeny - 03 Oct 2007