Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Dojo StackedAreas vs Bars
Steve Dyke
Ranch Hand
Posts: 2206
2
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The following code will produce a StackedAreas Chart but the . render will give an Object Expected error using the same code but will work if I hard code the array values.
<html> <script> dojo.require("dojox.charting.Chart2D"); dojo.require("dojox.charting.axis2d.Default"); dojo.require("dojox.charting.plot2d.Default"); dojo.require("dojox.charting.themes.ThreeD"); dojo.ready(function(){ var s3 = new Array(); alert("Step1"); $.getJSON("/QMSWebApp/DashboardChartDOJOCallBackTestServlet", cbdojotest); function cbdojotest(wResults){ var s3a = wResults.series3.split(","); for(i=0;i<s3a.length;i++){ s3[i] = s3a[i]; } alert(s3[0]); alert(s3[2]); }; alert(s3); var c = new dojox.charting.Chart2D("chartOne"); c.addPlot("default", {type: "StackedAreas", tension:3}) .addAxis("x") .addAxis("y", {vertical: true}) .setTheme(dojox.charting.themes.ThreeD) .addSeries("Series A", s3) .render(); }); </script> <div id="chartOne" style="width: 400px; height: 240px; margin: 30px auto 0px auto;"></div> </html>
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to show icons in Tree using DOJO 0.4
DOJO Grid and JSON
DOJO Charts 2D : Unable to Stretchable / Scrollable/Draggable as in case of Google Maps View.
DOJO Tree using 0.4
Absolute div dynamically appended to body element
More...