Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Charting in Xpages
Feedback Type: Question
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)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS