diff --git a/src/visualizations/config/generators/dhis/singleValue.js b/src/visualizations/config/generators/dhis/singleValue.js index a9c570ca6..669a046d0 100644 --- a/src/visualizations/config/generators/dhis/singleValue.js +++ b/src/visualizations/config/generators/dhis/singleValue.js @@ -173,8 +173,8 @@ const generateDVItem = ( const svg = document.createElementNS(svgNS, 'svg') svg.setAttribute('xmlns', svgNS) svg.setAttribute('viewBox', `0 0 ${width} ${height}`) - svg.setAttribute('width', '100%') - svg.setAttribute('height', '100%') + svg.setAttribute('width', width) + svg.setAttribute('height', height) svg.setAttribute('data-test', 'visualization-container') if (backgroundColor) {