From a234fa0c6f209d168fbcd42b628ad827092c6559 Mon Sep 17 00:00:00 2001 From: Allison Strandberg Date: Sun, 26 Feb 2023 15:33:35 -0500 Subject: [PATCH] Prevent Download as PNG text from getting cut off --- locust/static/chart.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/locust/static/chart.js b/locust/static/chart.js index 9e3cfa13f5..78718e97e9 100644 --- a/locust/static/chart.js +++ b/locust/static/chart.js @@ -97,7 +97,12 @@ feature: { saveAsImage: { name: this.title.replace(/\s+/g, '_').toLowerCase() + '_' + Date.parse(new Date()) / 1000, - title: "Download as PNG" + title: "Download as PNG", + emphasis: { + iconStyle: { + textPosition: "left" + } + } } } }