Fix SAC axis marks width issue
This commit is contained in:
parent
43ab863cc3
commit
6d1e181db4
|
@ -8,7 +8,7 @@ var Axis = React.createClass({
|
||||||
}
|
}
|
||||||
var renderMark = function(week, i) {
|
var renderMark = function(week, i) {
|
||||||
var len = this.props.weeks.length,
|
var len = this.props.weeks.length,
|
||||||
x = i/(len - 1)*this.props.width,
|
x = i/(len - 1)*this.props.width + 1,
|
||||||
showLabel,
|
showLabel,
|
||||||
ta = (i === 0 // Text anchor for the leftmost label
|
ta = (i === 0 // Text anchor for the leftmost label
|
||||||
? 'start'
|
? 'start'
|
||||||
|
|
Loading…
Reference in New Issue