Skip to content

Commit

Permalink
Add dimensions to chartGauge returned values
Browse files Browse the repository at this point in the history
  • Loading branch information
graphieros committed Jan 20, 2024
1 parent faab467 commit a8878ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion savyg/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "savyg",
"private": false,
"version": "1.1.4",
"version": "1.1.5",
"description": "A savvy library to create svg elements and charts with ease",
"author": "Alec Lloyd Probert",
"repository": {
Expand Down
7 changes: 5 additions & 2 deletions savyg/src/utils_chart_gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,11 @@ export function chartGauge({
pathElement: a.path,
color: a.color,
}
})

}),
dimensions: {
centerX: drawingArea.centerX,
centerY: drawingArea.centerY + height / 4,
}
}
}

Expand Down

0 comments on commit a8878ce

Please sign in to comment.