Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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