Opened 9 years ago
Closed 9 years ago
#14259 closed defect (fixed)
Legend MarkersOnly Graphic Does Not Display
Reported by: | lampshade9909 | Owned by: | cjolif |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | Charting | Version: | 1.6.1 |
Keywords: | Charting Legend | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
Charting with Dojo: When using a "MarkersOnly" chart with "dojox.charting.widget.Legend", the marker graphic doesn't show up in the Legend. If you change the plot type to "Markers", the legend shows a line and marker graphic, and if you change the plot type to "Lines", the legend shows a line graphic, but if you change the plot type to "MarkersOnly", the legend does not show any graphic. How can I get the legend to show the Marker graphic for plot type "MarkersOnly" ?
Below is a very basic example:
var chart1 = new dojox.charting.Chart2D("simplechart"); chart1.addPlot("default", {type: "MarkersOnly"}); chart1.addAxis("x"); chart1.addAxis("y", {vertical: true}); chart1.addSeries("Series 1", [1, 2, 2, 3, 4, 5, 5, 7]); chart1.addSeries("Series 2", [3, 4, 4, 5, 1, 2, 2, 3]); chart1.render(); var legend1 = new dojox.charting.widget.Legend({chart: chart1, horizontal: false}, "simplelegend");
<div id="simplechart" style="width: 250px; height: 150px;"></div> <div id="simplelegend"></div>
PS: For some reason Question Marks are being inserted after MarkersOnly before the end quotation marks. They are getting inserted after I hit Preview or CreateTicket, they aren't in my source code and aren't being typed by me, just ignore them.
Change History (4)
comment:1 Changed 9 years ago by
Component: | Dojox → Charting |
---|---|
Description: | modified (diff) |
Owner: | changed from Adam Peller to Eugene Lazutkin |
comment:2 Changed 9 years ago by
Milestone: | → 1.8 |
---|---|
Owner: | changed from Eugene Lazutkin to cjolif |
comment:3 Changed 9 years ago by
Status: | new → assigned |
---|
comment:4 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In [27025]: