Commit 7100e81e authored by Mathieu Giraud's avatar Mathieu Giraud

js/scatterPlot.js: add 15px to the margin when the labels are rotated

Close #3641.
parent dac04142
Pipeline #52939 passed with stages
in 6 minutes and 6 seconds
......@@ -1366,13 +1366,15 @@ ScatterPlot.prototype = {
var className = "sp_legend"
if (space < 1.1) {
this.rotation_x = 320;
this.text_position_x = 40;
this.text_position_x = 55;
this.margin[0] = 60
this.sub_text_position_x = 80;
className = "sp_rotated_legend";
} else {
this.rotation_x = 0;
className = "sp_legend";
this.text_position_x = 30;
this.margin[0] = 45
this.sub_text_position_x = 45;
}
......
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