{
const namespace = "http://www.w3.org/2000/svg"
const svg = document.createElementNS(namespace, "svg")
svg.setAttributeNS(null, "width", 200);
svg.setAttributeNS(null, "height", 200);
svg.setAttributeNS(null, "fill", "blue");
for(let i=0; i < data.length; i++){
let rect = document.createElementNS(namespace, "rect")
rect.setAttributeNS(null, "height", 30);
rect.setAttributeNS(null, "width", 10 * data[i]);
rect.setAttributeNS(null, "x", 0);
rect.setAttributeNS(null, "y", 40 * i);
svg.appendChild(rect)
}
return svg
}