Commit cf2506dc authored by Patrick Schreifels's avatar Patrick Schreifels

Resolves indentation issues.

parent 28f6083e
...@@ -490,8 +490,8 @@ ...@@ -490,8 +490,8 @@
} }
// for legend // for legend
var insetLegendPosition = { var insetLegendPosition = {
top: isLegendTop ? getCurrentPaddingTop() + __legend_inset_y + 5.5 : currentHeight - legendHeight - getCurrentPaddingBottom() - __legend_inset_y, top: isLegendTop ? getCurrentPaddingTop() + __legend_inset_y + 5.5 : currentHeight - legendHeight - getCurrentPaddingBottom() - __legend_inset_y,
left: isLegendLeft ? getCurrentPaddingLeft() + __legend_inset_x + 0.5 : currentWidth - legendWidth - getCurrentPaddingRight() - __legend_inset_x + 0.5 left: isLegendLeft ? getCurrentPaddingLeft() + __legend_inset_x + 0.5 : currentWidth - legendWidth - getCurrentPaddingRight() - __legend_inset_x + 0.5
}; };
margin3 = { margin3 = {
top: isLegendRight ? 0 : isLegendInset ? insetLegendPosition.top : currentHeight - legendHeight, top: isLegendRight ? 0 : isLegendInset ? insetLegendPosition.top : currentHeight - legendHeight,
...@@ -4661,7 +4661,7 @@ ...@@ -4661,7 +4661,7 @@
.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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment