Skip to content

Commit

Permalink
fix #4386; pie chart size issue when given in percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed May 5, 2024
1 parent ebaf1ee commit ec962e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/dimensions/Dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export default class Dimensions {
if (!cnf.legend.show || cnf.legend.floating) {
gl.gridHeight =
gl.svgHeight - cnf.grid.padding.left + cnf.grid.padding.right
gl.gridWidth = gl.gridHeight
gl.gridWidth = Math.min(gl.svgWidth, gl.gridHeight)

gl.translateY = offY
gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2
Expand Down

0 comments on commit ec962e8

Please sign in to comment.