Skip to content

Commit

Permalink
fix legend y position when it is placed bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Sep 21, 2024
1 parent f6ad126 commit 598dd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/legend/Legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class Legend {
let y = 0

if (w.config.legend.position === 'bottom') {
y = w.globals.svgHeight - legendRect.height / 1.8
y = w.globals.svgHeight - legendRect.height - 5
} else if (w.config.legend.position === 'top') {
const dim = new Dimensions(this.ctx)
const titleH = dim.dimHelpers.getTitleSubtitleCoords('title').height
Expand Down

0 comments on commit 598dd07

Please sign in to comment.