Opened 9 years ago
Closed 9 years ago
#14350 closed defect (invalid)
Checkbox doesn't show up with Selectable Legend?
Reported by: | lampshade9909 | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.6.2 |
Component: | Charting | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
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
Attachments (1)
Change History (5)
Changed 9 years ago by
Attachment: | bugphoto.jpg added |
---|
comment:1 Changed 9 years ago by
PS: I tried adding dojo.require("dijit.form.CheckBox?"); but that didn't do it
comment:2 Changed 9 years ago by
PPS: I'm also including the dijit/themes/claro/claro.css theme. Is this a theme issue?
comment:3 Changed 9 years ago by
SOLVED Sorry, mistake on my part. I didn't have class="claro" in the body...
comment:4 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Image of the Checkbox not showing up