Opened 11 years ago

Closed 11 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 Adam Peller)

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("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]);
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 11 years ago by Adam Peller

Component: DojoxCharting
Description: modified (diff)
Owner: changed from Adam Peller to Eugene Lazutkin

comment:2 Changed 11 years ago by cjolif

Milestone: 1.8
Owner: changed from Eugene Lazutkin to cjolif

comment:3 Changed 11 years ago by cjolif

Status: newassigned

comment:4 Changed 11 years ago by cjolif

Resolution: fixed
Status: assignedclosed

In [27025]:

fixes #14259 about missing marker in legend. Also fixes an other legend issue with colors.

Note: See TracTickets for help on using tickets.