This commit is contained in:
Beverly Nguyen
2024-08-07 17:03:25 -07:00
parent 1a75fc5142
commit 86748c3317

View File

@@ -22,7 +22,12 @@
var svg = d3.select("#totalMessageChart");
var width = chartContainer.clientWidth;
var height = 64;
console.log('update')
// Ensure the width is set correctly
if (width === 0) {
console.error('Chart container width is 0, cannot set SVG width.');
return;
}
svg.attr("width", width).attr("height", height);