From 23637f1addd0e502f59a026ffbeb0ecb3be1aa2a Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 23 Sep 2019 22:33:33 -0600 Subject: [PATCH] fixed a bug --- hw3/.idea/workspace.xml | 21 ++++++++++----------- hw3/script.js | 4 ++-- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/hw3/.idea/workspace.xml b/hw3/.idea/workspace.xml index 149019f..739d75b 100644 --- a/hw3/.idea/workspace.xml +++ b/hw3/.idea/workspace.xml @@ -3,7 +3,6 @@ - @@ -28,13 +27,13 @@ - + - + @@ -63,8 +62,8 @@ - - + + @@ -180,12 +179,12 @@ 1569214123580 - + - @@ -200,14 +199,14 @@ - + - + @@ -240,8 +239,8 @@ - - + + diff --git a/hw3/script.js b/hw3/script.js index c826e52..4e31ccd 100644 --- a/hw3/script.js +++ b/hw3/script.js @@ -79,14 +79,14 @@ function update(data) { d3.select(this).style('fill', 'steelblue') }) - .attr('height', d => aScale(d.b)); + .attr('height', d => bScale(d.b)); barChart2.enter() .append("rect") .attr("x", function (d, i) { return iScale(i + 1); }) - .attr("height", d => aScale(d.b)) + .attr("height", d => bScale(d.b)) .attr("y", 0) .attr("width", 10)