Opened 5 years ago

Closed 4 years ago

#18488 closed defect (patchwelcome)

No y-axis ticks for flat line chart

Reported by: mrosiles Owned by: Eugene Lazutkin
Priority: undecided Milestone: 1.13
Component: Charting Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:

Description

Using dojox.charting.Chart2D, if the data results in a horizontal line, the y-axis does not render any ticks. If there is some configuration setting that will work, I searched but was unable to find any combination of values.

<script type="text/javascript"> dojo.require("dojox.charting.Chart2D"); makeCharts = function(){

var chart1 = new dojox.charting.Chart2D("simplechart"); chart1.addPlot("default", {type: "Lines"}); chart1.addAxis("x"); chart1.addAxis("y", {vertical: true}); chart1.addSeries("Series 1", [2, 2, 2, 2, 2, 2, 2, 2]); chart1.render();

}; dojo.addOnLoad(makeCharts); </script> <div id="simplechart" style="width: 450px; height: 350px;"></div>

Change History (2)

comment:1 Changed 5 years ago by bill

Component: GeneralCharting
Owner: set to Eugene Lazutkin

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in almost a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.