From 726a9c93ea1951b9a86c86c96e505125bfe8cc03 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sun, 10 Sep 2017 00:47:45 -0400 Subject: [PATCH] setting height/width of svg elem --- app.js | 7 ++++++- index.html | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 70f6719..c024a99 100644 --- a/app.js +++ b/app.js @@ -1 +1,6 @@ -alert('hi'); +var WIDTH = 800; +var HEIGHT = 600; + +d3.select('svg') + .style('width', WIDTH) + .style('height', HEIGHT); diff --git a/index.html b/index.html index 6f4df57..da2085b 100644 --- a/index.html +++ b/index.html @@ -3,9 +3,10 @@ - - + + +