diff --git a/c3.js b/c3.js index 95c873b..22fdc18 100644 --- a/c3.js +++ b/c3.js @@ -4660,14 +4660,14 @@ .attr('width', 10) .attr('height', 10); // Set background for inset legend - if (isLegendInset && maxWidth != 0) { + if (isLegendInset && maxWidth !== 0) { legend.insert('g', '.' + CLASS.legendItem) .attr("class", CLASS.legendBackground).append('rect') .style('opacity', 0.75) .style('fill', 'white') .style('stroke', 'lightgray') .style('stroke-width', 1) - .attr('height', getLegendHeight()-10) + .attr('height', getLegendHeight() - 10) .attr('width', maxWidth); }