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

@@ -3,7 +3,6 @@
<component name="ChangeListManager">
<list default="true" id="d913f462-7721-4324-b281-53f1a4bb289e" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/../hw2/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../hw2/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/hw3.html" beforeDir="false" afterPath="$PROJECT_DIR$/hw3.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script.js" beforeDir="false" afterPath="$PROJECT_DIR$/script.js" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/.tmp/" />
@@ -28,13 +27,13 @@
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="html" value="274" />
<entry key="js" value="3414" />
<entry key="js" value="3418" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="HTML" value="274" />
<entry key="JavaScript" value="3414" />
<entry key="JavaScript" value="3418" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
@@ -63,8 +62,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/script.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="193">
<caret line="154" column="25" lean-forward="true" selection-start-line="154" selection-start-column="25" selection-end-line="154" selection-end-column="25" />
<state relative-caret-position="319">
<caret line="88" column="41" lean-forward="true" selection-start-line="88" selection-start-column="41" selection-end-line="88" selection-end-column="41" />
</state>
</provider>
</entry>
@@ -180,12 +179,12 @@
<updated>1569214123580</updated>
<workItem from="1569214124878" duration="389000" />
<workItem from="1569214556532" duration="97000" />
<workItem from="1569214674667" duration="18857000" />
<workItem from="1569214674667" duration="19376000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="19343000" />
<option name="totallyTimeSpent" value="19862000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="0" width="1280" height="800" extended-state="0" />
@@ -200,14 +199,14 @@
<window_info id="Favorites" order="6" side_tool="true" />
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info active="true" anchor="bottom" id="Find" order="1" visible="true" weight="0.32876712" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32876712" />
<window_info anchor="bottom" id="Run" order="2" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Version Control" order="7" />
<window_info anchor="bottom" id="Terminal" order="8" weight="0.28767124" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.28767124" />
<window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
<window_info anchor="right" id="Commander" order="0" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
@@ -240,8 +239,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/script.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="193">
<caret line="154" column="25" lean-forward="true" selection-start-line="154" selection-start-column="25" selection-end-line="154" selection-end-column="25" />
<state relative-caret-position="319">
<caret line="88" column="41" lean-forward="true" selection-start-line="88" selection-start-column="41" selection-end-line="88" selection-end-column="41" />
</state>
</provider>
</entry>

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)