diff --git a/ui/src/app/widget/lib/flot-widget.js b/ui/src/app/widget/lib/flot-widget.js index 512f25b4ce..af8ce9e7eb 100644 --- a/ui/src/app/widget/lib/flot-widget.js +++ b/ui/src/app/widget/lib/flot-widget.js @@ -535,7 +535,11 @@ export default class TbFlot { yaxis.tickUnits = units; yaxis.tickDecimals = tickDecimals; yaxis.tickSize = tickSize; - yaxis.alignTicksWithAxis = position == "right" ? 1 : null; + if (position === "right" && tickSize === null) { + yaxis.alignTicksWithAxis = 1; + } else { + yaxis.alignTicksWithAxis = null; + } yaxis.position = position; yaxis.keysInfo = []; @@ -938,11 +942,6 @@ export default class TbFlot { "type": "string", "default": null }, - "titleAngle": { - "title": "Axis title's angle in degrees", - "type": "number", - "default": 0 - }, "color": { "title": "Ticks color", "type": "string", @@ -975,11 +974,6 @@ export default class TbFlot { "type": "string", "default": null }, - "titleAngle": { - "title": "Axis title's angle in degrees", - "type": "number", - "default": 0 - }, "color": { "title": "Ticks color", "type": "string", @@ -1048,7 +1042,6 @@ export default class TbFlot { "items": [ "xaxis.showLabels", "xaxis.title", - "xaxis.titleAngle", { "key": "xaxis.color", "type": "color" @@ -1064,7 +1057,6 @@ export default class TbFlot { "yaxis.tickSize", "yaxis.showLabels", "yaxis.title", - "yaxis.titleAngle", { "key": "yaxis.color", "type": "color"