Skip to content

Commit

Permalink
Prevent Download as PNG text from getting cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
allison-strandberg committed Feb 26, 2023
1 parent 7d50677 commit a234fa0
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 a234fa0

Please sign in to comment.