Closed
Description
Below a certain "small" number for marker.size of a trace, the size of the legend symbol becomes smaller as well. This leads in extreme cases to single pixel legend symbols.
Minimal example:
var trace1 = {
x: [1, 2, 3, 4],
y: [10, 11, 12, 13],
mode: 'markers',
marker: {
size: [10, 6, 8, 5],
sizemode: 'area',
}
};
var trace2 = {
x: [1, 2, 3, 4],
y: [14, 15, 16, 17],
mode: 'markers',
marker: {
size: [400, 600, 800, 1000],
sizemode: 'area'
}
};
var data = [trace1, trace2];
var layout = {
title: 'Bubble Chart Size Scaling',
showlegend: true,
height: 480,
width: 640
};
Plotly.newPlot('myDiv', data, layout);