[Dojo-checkins] [Dojo Toolkit] #14350: Checkbox doesn't show up with Selectable Legend?
Dojo Trac
trac at dojotoolkit.org
Wed Nov 30 12:31:13 EST 2011
#14350: Checkbox doesn't show up with Selectable Legend?
---------------------------+-----------------------
Reporter: lampshade9909 | Owner: elazutkin
Type: defect | Status: new
Priority: normal | Milestone: 1.6.2
Component: Charting | Version: 1.6.1
Severity: normal | Keywords:
---------------------------+-----------------------
Referencing Chart 1.)Bars from
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/test_selectableLegend.html
When I recreate this (copy and paste the chart's specific code) the check
boxes don't show up in the Legend. The place where the checkbox should be
is clickable, and the series does show/hide correctly, but the checkbox
seems to be hidden.
Also, is there an option to set the checkbox to hide by default rather
than show by default?
{{{
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js"
type="text/javascript" data-dojo-
config="isDebug: true,parseOnLoad: true">
</script>
<style type="text/css">
@import "/media/js/dojo/dojo/resources/dojo.css";
@import "/media/js/dojo/dijit/themes/claro/claro.css";
@import
"/media/js/dojo/dojox/charting/resources/Legend.css";
</style>
<style>
.bars{
width:300px;
height:200px;
}
</style>
<script>
dojo.require("dijit.dijit");
dojo.require("dojox.charting.Chart");
dojo.require("dojox.charting.axis2d.Default");
dojo.require("dojox.charting.plot2d.Bars");
dojo.require("dojox.charting.themes.MiamiNice");
dojo.require("dojox.charting.widget.SelectableLegend");
dojo.require("dojox.charting.action2d.Highlight");
// When the DOM is ready and resources are
loaded...
dojo.ready(function() {
var bars = new
dojox.charting.Chart("bars").
setTheme(dojox.charting.themes.MiamiNice).
addPlot("default",{type:
"Bars",gap:2}).
addAxis("x",{natural: true,
includeZero: true}).
addAxis("y",{natural: true,
vertical:true}).
addSeries("A",[1,3,5,7,2,4,6]).
render();
var barsLegend = new
dojox.charting.widget.SelectableLegend({chart: bars},"barsLegend");
});
</script>
</head>
<body>
<h2>1.Bars</h2>
<div id="bars" class="bars"></div>
<div id="barsLegend"></div>
</body>
}}}
Thanks,
Joey
--
Ticket URL: <http://bugs.dojotoolkit.org/ticket/14350>
Dojo Toolkit <http://dojotoolkit.org>
The Dojo Toolkit
More information about the Dojo-checkins
mailing list