Skip to content

Commit d33b1fe

Browse files
committed
vertical line
1 parent 91bb3ef commit d33b1fe

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

public/react-js/birdwatch.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,12 @@ var BirdWatch = BirdWatch || {};
539539
var w = bar.value / arr[0].value * (barChartElem.width() - 216);
540540
return Bar( {t:bar.key, y:y, w:w, key:bar.key, idx:i, val:bar.value, count:this.props.count} );
541541
}.bind(this));
542-
return React.DOM.svg( {width:"750", height:"6000"}, React.DOM.g(null, bars));
542+
return React.DOM.svg( {width:"750", height:"6000"},
543+
React.DOM.g(null,
544+
bars,
545+
React.DOM.line( {transform:"translate(148, 0)", y:"0", y2:"375", stroke:"#000000"})
546+
)
547+
)
543548
}
544549
});
545550

react-js/jsx/barchart.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ var BirdWatch = BirdWatch || {};
7676
var w = bar.value / arr[0].value * (barChartElem.width() - 216);
7777
return <Bar t={bar.key} y={y} w={w} key={bar.key} idx={i} val={bar.value} count={this.props.count} />;
7878
}.bind(this));
79-
return <svg width="750" height="6000"><g>{bars}</g></svg>;
79+
return <svg width="750" height="6000">
80+
<g>
81+
{bars}
82+
<line transform="translate(148, 0)" y="0" y2="375" stroke="#000000"></line>
83+
</g>
84+
</svg>
8085
}
8186
});
8287

0 commit comments

Comments
 (0)