Commit 005d00b0 authored by Mikaël Salson's avatar Mikaël Salson

Merge branch 'feature-c/3641-more-space-for-rotated-labels' into 'dev'

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

Closes #3641

See merge request !370
parents d9f0b676 7100e81e
Pipeline #54353 failed with stages
in 24 minutes and 59 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