Skip to content

Commit 10ac170

Browse files
committed
make array marker.symbol value propagate to legendonly items
1 parent 2c3dbb3 commit 10ac170

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/components/legend/style.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ module.exports = function style(s, gd) {
115115

116116
if(showMarkers) {
117117
dEdit.mc = boundVal('marker.color', pickFirst);
118+
dEdit.mx = boundVal('marker.symbol', pickFirst);
118119
dEdit.mo = boundVal('marker.opacity', Lib.mean, [0.2, 1]);
119120
dEdit.ms = boundVal('marker.size', Lib.mean, [2, 16]);
120121
dEdit.mlc = boundVal('marker.line.color', pickFirst);
-438 Bytes
Loading

test/image/mocks/legend_visibility.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@
5353
"xaxis": "x2",
5454
"yaxis": "y3",
5555
"y": [1, 4, 6, 7, 7, 8, 8, 8, 9]
56+
},
57+
{
58+
"name": "marker A",
59+
"mode": "markers",
60+
"visible": "legendonly",
61+
"y": [1, 4, 6, 3, 2, 8, 8, 8, 4],
62+
"yaxis": "y2",
63+
"marker": {
64+
"size": 15,
65+
"symbol": ["square", "square", "square", "square", "square", "square", "square", "square", "square"]
66+
}
5667
}
5768
],
5869
"layout": {

0 commit comments

Comments
 (0)