Opened 14 years ago

Closed 14 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:


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:

        <title>Fun With Charting!</title>


        <!-- -->

        <script type="text/javascript">
    <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>

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 14 years ago by Eugene Lazutkin

Component: DojoX GFXCharting
Milestone: 1.1
Status: newassigned

comment:2 Changed 14 years ago by Eugene Lazutkin

Resolution: invalid
Status: assignedclosed

You have a mistake in the code: both your axes are horizontal. I suspect you wanted vertical="true" on the y axis.

Note: See TracTickets for help on using tickets.