Skip to content

Commit e133b90

Browse files
committed
bound scalar marker.size in legenditems
- setting d.ms isn't enough here, as downstread in Drawing.pointStyle subtypes.isBubble is used to determine if d.ms or trace.marker.size is used to draw the legend item.
1 parent 18103fb commit e133b90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/legend/style.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,17 @@ module.exports = function style(s, gd) {
117117
dEdit.mc = boundVal('marker.color', pickFirst);
118118
dEdit.mx = boundVal('marker.symbol', pickFirst);
119119
dEdit.mo = boundVal('marker.opacity', Lib.mean, [0.2, 1]);
120-
dEdit.ms = boundVal('marker.size', Lib.mean, [2, 16]);
121120
dEdit.mlc = boundVal('marker.line.color', pickFirst);
122121
dEdit.mlw = boundVal('marker.line.width', Lib.mean, [0, 5]);
123122
tEdit.marker = {
124123
sizeref: 1,
125124
sizemin: 1,
126125
sizemode: 'diameter'
127126
};
127+
128+
var ms = boundVal('marker.size', Lib.mean, [2, 16]);
129+
dEdit.ms = ms;
130+
tEdit.marker.size = ms;
128131
}
129132

130133
if(showLines) {

0 commit comments

Comments
 (0)