fixed a bug

This commit is contained in:
2019-09-23 22:33:33 -06:00
parent f3e18a366e
commit 23637f1add
2 changed files with 12 additions and 13 deletions

View File

@@ -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)