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 a19bc1c commit b9888bfCopy full SHA for b9888bf
scripts/JSRootPainter.js
@@ -4874,18 +4874,21 @@
4874
if (box.height > maxh) maxh = box.height;
4875
cnt++;
4876
});
4877
+
4878
if ((cnt>0) && (maxh>0)) {
4879
// adjust font size
4880
if (maxh < h/cnt) {
4881
shift = parseInt((h/cnt - maxh) / 2);
4882
+ drawy.selectAll(".tick text").attr("y", -shift).attr("dy", "0");
4883
} else {
4884
shift = 1;
4885
ylabelfont.size = parseInt(ylabelfont.size * (h/cnt-2) / maxh);
4886
if (ylabelfont.size<2) ylabelfont.size = 2;
4887
drawy.call(ylabelfont.func);
4888
+ drawy.selectAll(".tick text").attr("dy", shift);
4889
}
4890
- drawy.selectAll(".tick text").attr("dy", shift);
4891
4892
4893
} else
4894
if ((n2ay > 0) && !this.options.Logy) {
0 commit comments