fixing console errors

This commit is contained in:
Beverly Nguyen
2024-08-07 15:42:46 -07:00
parent 5797e989fd
commit f65655e56c
2 changed files with 12 additions and 10 deletions

View File

@@ -25,7 +25,8 @@
// Ensure the width is set correctly
if (width === 0) {
throw new Error('Chart container width is 0, cannot set SVG width.');
console.error('Chart container width is 0, cannot set SVG width.');
return;
}
svg.attr("width", width).attr("height", height);