Skip to content

Commit

Permalink
fix issue where scale prop wasn't passed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarejowicz committed Aug 25, 2017
1 parent 28d18ef commit 96bce5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ var YStep = function (_React$Component3) {
x2: this.props.x - this.props.length, y2: this.props.y,
stroke: this.props.color }));
step.push(_react2.default.createElement(YTickLabel, { key: "label" + this.props.y, x: this.props.x - 10, y: this.props.y,
value: this.props.value, color: this.props.color }));
value: this.props.value, yScale: this.props.yScale, color: this.props.color }));

return _react2.default.createElement(
"g",
Expand Down Expand Up @@ -1268,7 +1268,7 @@ var YAxis = function (_React$Component4) {
if (this.props.showYLabels) {
yAxis.push(_react2.default.createElement(YStep, { key: "yStep" + i, x: this.props.x, y: tickPos,
value: yVal, length: 10, color: this.props.style.labelColor,
showYLabels: this.props.showYLabels }));
showYLabels: this.props.showYLabels, yScale: this.props.yScale }));
}

if (this.props.showGrid) {
Expand Down Expand Up @@ -1373,7 +1373,7 @@ var XStep = function (_React$Component6) {
x2: this.props.x, y2: this.props.y + this.props.length,
stroke: this.props.color }));
step.push(_react2.default.createElement(XTickLabel, { key: "label" + this.props.x, x: this.props.x, y: this.props.y,
value: this.props.value, color: this.props.color }));
value: this.props.value, xScale: this.props.xScale, color: this.props.color }));

return _react2.default.createElement(
"g",
Expand Down Expand Up @@ -1439,7 +1439,7 @@ var XAxisContinuous = function (_React$Component7) {
}
xAxis.push(_react2.default.createElement(XStep, { key: "xStep" + i, x: tickPos, y: this.props.y,
value: xVal, length: 10, color: this.props.style.labelColor,
showXLabels: this.props.showXLabels }));
showXLabels: this.props.showXLabels, xScale: this.props.xScale }));
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/Axis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class YStep extends React.Component {
)
step.push(
<YTickLabel key={"label"+this.props.y} x={this.props.x-10} y={this.props.y}
value={this.props.value} color={this.props.color} />
value={this.props.value} yScale={this.props.yScale} color={this.props.color} />
)

return(
Expand Down Expand Up @@ -131,7 +131,7 @@ class YAxis extends React.Component {
yAxis.push(
<YStep key={"yStep"+i} x={this.props.x} y={tickPos}
value={yVal} length={10} color={this.props.style.labelColor}
showYLabels={this.props.showYLabels}/>
showYLabels={this.props.showYLabels} yScale={this.props.yScale}/>
)
}

Expand Down Expand Up @@ -217,7 +217,7 @@ class XStep extends React.Component {
)
step.push(
<XTickLabel key={"label"+this.props.x} x={this.props.x} y={this.props.y}
value={this.props.value} color={this.props.color} />
value={this.props.value} xScale={this.props.xScale} color={this.props.color} />
)

return(
Expand Down Expand Up @@ -274,7 +274,7 @@ class XAxisContinuous extends React.Component {
xAxis.push(
<XStep key={"xStep"+i} x={tickPos} y={this.props.y}
value={xVal} length={10} color={this.props.style.labelColor}
showXLabels={this.props.showXLabels}/>
showXLabels={this.props.showXLabels} xScale={this.props.xScale}/>
)
}
}
Expand Down

0 comments on commit 96bce5b

Please sign in to comment.