 |
|
 |
Subject: Charting in Xpages |
 |
 |
 |
Product Area: Notes Client |
 |
Technical Area: New Features |
 |
Platform: ALL |
 |
Release: 8.5.1 |
 |
Reproducible: Not applicable |
 |
 |
 |
 |
I'm trying to create chart in xpage by using dojox.charting.Chart2D class. The xpage-source is below:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" dojoTheme="true" dojoParseOnLoad="true">
<xp:this.resources>
<xp:dojoModule name="dojox.charting.Chart2D"></xp:dojoModule>
</xp:this.resources>
<xp:panel>
<div dojoType="dojox.charting.Chart2D" style="width: 250px; height: 150px;"
id="simplechart">
</div>
<xp:button value="Start" id="button1">
<xp:eventHandler event="onclick" submit="false">
<xp:this.script><![CDATA[
var chart1 = new dojox.charting.Chart2D("simplechart");
chart1.addPlot("default", {type: "Lines"});
chart1.addAxis("x");
chart1.addAxis("y", {vertical: true});
chart1.addSeries("Series 1", [1, 2, 2, 3, 4, 5, 5, 7]);
chart1.render();
]]></xp:this.script>
</xp:eventHandler></xp:button>
</xp:panel>
</xp:view>
Am I trying something that's not possible yet because i can't see anything happening when clicking on button?
Or is this proper way to use dojox-modules?
 
Feedback number WEBB7XNELH created by ~Lily Retooburobu on 11/10/2009

Status: Open
Comments:

Charting in Xpages (~Lily Retooburo... 10.Nov.09)
. . Try dojox.charting.widget.Chart2D (~Zach Fezwechek... 5.Feb.10)
. . . . And leave out dojoType in the <div>... (~Zach Fezwechek... 5.Feb.10) |
|  |
|