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

And leave out dojoType in the <div>

I was having trouble with Firefox positioning the axes far above the plot when the div had a dojoType. With just a plain <div>, everything looked ok. Here is the source code on a test XPage:

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom" dojoParseOnLoad="true"
dojoTheme="true" styleClass="tundra">

<xp:this.resources>
<xp:dojoModule name="dojox.charting.widget.Chart2D"></xp:dojoModule>

<xp:styleSheet href="/custom.css"></xp:styleSheet>
</xp:this.resources>

<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: "Columns", gap:2});
chart1.addAxis("x");
chart1.addAxis("y", {vertical: true});
chart1.addSeries("Series 1", [1, 2, 2, 3, 4, 5, 5, 7],{stroke: {color: "#C0C0C0", width: 1}, fill: "orange" } );
chart1.render();
]]>
</xp:this.script>
</xp:eventHandler>
</xp:button>

<div id="simplechart" style="width: 350px; height: 350px;">
</div>

</xp:view>


Feedback response number WEBB82DMB5 created by ~Zach Fezwechekli on 02/05/2010

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