mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
fixing console errors
This commit is contained in:
@@ -23,12 +23,6 @@
|
|||||||
var width = chartContainer.clientWidth;
|
var width = chartContainer.clientWidth;
|
||||||
var height = 64;
|
var height = 64;
|
||||||
|
|
||||||
// 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);
|
svg.attr("width", width).attr("height", height);
|
||||||
|
|
||||||
var x = d3.scaleLinear()
|
var x = d3.scaleLinear()
|
||||||
|
|||||||
Reference in New Issue
Block a user