Hi Simon,
Sure, I'm pasting the source code here. It's a very simple source code because I have already removed a lot of the original page to debug it:
Thanks for help,
Adam
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" dojoParseOnLoad="true"
dojoTheme="true">333333<xp:span style="font-weight:bold"></xp:span><xp:br></xp:br>
<xp:text escape="false" id="seriesA" rendered="false">
<xp:this.value><![CDATA[#{javascript:var output:string = "";
output += "{y: 5, text: \"text\",legend: \"legend\", tooltip: \"tooltip (5)\"},";
output += "{y: 5, text: \"text\",legend: \"legend\", tooltip: \"tooltip (5)\"},";
output += "{y: 5, text: \"text\",legend: \"legend\", tooltip: \"tooltip (5)\"},";
return output.substr(0, output.length - 1);}]]></xp:this.value>
</xp:text>
<xp:br></xp:br>
<xp:br></xp:br>
<xp:text escape="false" id="computeSeries">
<xp:this.value><![CDATA[#{javascript:var result = "<script language=\"JavaScript\" type=\"text/javascript\">";
result += "var series1 = [";
result += getComponent("seriesA").getValue() + "];";
result += "</script>";
return result;
}]]></xp:this.value>
</xp:text>
<xp:br></xp:br>
<xp:panel id="adhocchart" style="width:400.0px;height:100px"></xp:panel>
<xp:this.resources>
<xp:dojoModule name="dojox.charting.widget.Chart2D"></xp:dojoModule>
</xp:this.resources><xp:this.resources>
<xp:dojoModule name="dojox.charting.widget.Chart2D"></xp:dojoModule>
</xp:this.resources>
<xp:br></xp:br>
<xp:scriptBlock id="scriptBlock1">
</xp:scriptBlock>
<xp:span style="font-weight:bold"></xp:span></xp:view>