Got it
This commit is contained in:
1
hw4/.idea/workspace.xml
generated
1
hw4/.idea/workspace.xml
generated
@@ -2,7 +2,6 @@
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="906ccaea-ddf8-4975-a2c6-85ccd75313dc" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/js/barChart.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/barChart.js" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
||||
@@ -83,7 +83,7 @@ class BarChart {
|
||||
.attr('x', (d,i) => xScale(d))
|
||||
.attr('y', (d,i) => yScale(dataNum[i]))
|
||||
.attr('width', xScale.bandwidth())
|
||||
.attr('height', (d,i) => svgHeight - yScale(dataNum[i]))
|
||||
.attr('height', (d,i) => svgHeight - yScale(dataNum[i])-xaxisHeight)
|
||||
.attr('class', 'bar');
|
||||
//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user