#11059 fixed setted number

This commit is contained in:
Daniel Cebrian 2023-06-22 15:08:52 +02:00
parent 66ba29581b
commit eac656dfc0
2 changed files with 2 additions and 2 deletions

View File

@ -501,7 +501,7 @@ class TopNEventByGroupWidget extends Widget
],
'elements' => [
'center' => [
'text' => '10000',
'text' => $sum,
'color' => '#2c3e50',
],
],

View File

@ -56,7 +56,7 @@ class JavaScript extends Renderer
var innerRadius = outerRadius - padding;
ctx.font = "30px ";
var sidePaddingCalculated = (92/100) * (innerRadius * 2)
var sidePaddingCalculated = (93/100) * (innerRadius * 2)
var stringWidth = ctx.measureText(txt).width;
var elementWidth = (innerRadius * 2) - sidePaddingCalculated;