We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e752fb commit 20fbf18Copy full SHA for 20fbf18
src/components/legend/index.js
@@ -570,7 +570,7 @@ legend.draw = function(td) {
570
}
571
572
if(opts.yanchor === 'bottom' || (opts.yanchor === 'auto' && opts.y <= 1 / 3)) {
573
- ly -= opts.width;
+ ly -= opts.height;
574
575
else if(opts.yanchor === 'middle' || (opts.yanchor === 'auto' && opts.y < 2 / 3)) {
576
ly -= opts.height / 2;
@@ -764,7 +764,7 @@ legend.repositionLegend = function(td, traces){
764
765
var yanchor = 'top';
766
767
768
yanchor = 'bottom';
769
770
0 commit comments