Opened 13 years ago
Closed 13 years ago
#5727 closed defect (invalid)
Error in charting when two axes are specified in markup
Reported by: | ptwobrussell | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | Charting | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I am trying to transpose example #18 from the 2D chart tests into markup. However, I get a "s has no properties" in Firebug if I do it like so:
<html> <head> <title>Fun With Charting!</title> <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.0/dojo/dojo.xd.js.uncompressed.js" djConfig="parseOnLoad:true,isDebug:true,debugAtAllCosts:true"> </script> <!-- http://trac.dojotoolkit.org/ticket/4462 --> <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.0/dojox/gfx.js"> </script> <script type="text/javascript"> dojo.require("dojo.parser"); dojo.require("dojox.charting.widget.Chart2D"); </script> </head> <body> <div dojoType="dojox.charting.widget.Chart2D" style="width:300px; height:300px" > <div class="axis" name="x" fixLower="minor" fixUpper="minor" natural="true"></div> <div class="axis" name="y" fixLower="major" fixUpper="major" includeZero="true"></div> <div class="plot" name="default" type="ClusteredColumns" gap="2"></div> <div class="series" name="Series A" data="1,2,3,4,5" stroke="'red'" fill="'lightpink'"></div> <div class="series" name="Series B" data="5,4,3,2,1" stroke="'blue'" fill="'lightblue'"></div> </div> </body> </html>
However, I noticed that if I kill that first axis (x), the error goes away and the chart renders just fine and without any errors occurring. I'm assuming this is must be a bug since the code was transposed directly from the example that worked programmatically (but it's always possible that maybe I'm doing something wrong that I'm just not aware of)
Change History (2)
comment:1 Changed 13 years ago by
Component: | DojoX GFX → Charting |
---|---|
Milestone: | → 1.1 |
Status: | new → assigned |
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
You have a mistake in the code: both your axes are horizontal. I suspect you wanted vertical="true" on the y axis.