|
|
@ -4660,14 +4660,14 @@ |
|
|
|
.attr('width', 10) |
|
|
|
.attr('width', 10) |
|
|
|
.attr('height', 10); |
|
|
|
.attr('height', 10); |
|
|
|
// Set background for inset legend
|
|
|
|
// Set background for inset legend
|
|
|
|
if (isLegendInset && maxWidth != 0) { |
|
|
|
if (isLegendInset && maxWidth !== 0) { |
|
|
|
legend.insert('g', '.' + CLASS.legendItem) |
|
|
|
legend.insert('g', '.' + CLASS.legendItem) |
|
|
|
.attr("class", CLASS.legendBackground).append('rect') |
|
|
|
.attr("class", CLASS.legendBackground).append('rect') |
|
|
|
.style('opacity', 0.75) |
|
|
|
.style('opacity', 0.75) |
|
|
|
.style('fill', 'white') |
|
|
|
.style('fill', 'white') |
|
|
|
.style('stroke', 'lightgray') |
|
|
|
.style('stroke', 'lightgray') |
|
|
|
.style('stroke-width', 1) |
|
|
|
.style('stroke-width', 1) |
|
|
|
.attr('height', getLegendHeight()-10) |
|
|
|
.attr('height', getLegendHeight() - 10) |
|
|
|
.attr('width', maxWidth); |
|
|
|
.attr('width', maxWidth); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|