Skip to content

Commit

Permalink
Merge pull request #2308 from allison-strandberg/save-as-image-label
Browse files Browse the repository at this point in the history
Prevent Download as PNG text from getting cut off
  • Loading branch information
cyberw authored Feb 26, 2023
2 parents 7d50677 + a234fa0 commit 42c46f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion locust/static/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
Expand Down

0 comments on commit 42c46f1

Please sign in to comment.