diff --git a/index.js b/index.js
index 0ff7a86..8b9db01 100644
--- a/index.js
+++ b/index.js
@@ -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",
@@ -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) {
@@ -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",
@@ -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 }));
}
}
diff --git a/src/Axis.jsx b/src/Axis.jsx
index fb9c6d2..94a4cc1 100644
--- a/src/Axis.jsx
+++ b/src/Axis.jsx
@@ -74,7 +74,7 @@ class YStep extends React.Component {
)
step.push(
+ value={this.props.value} yScale={this.props.yScale} color={this.props.color} />
)
return(
@@ -131,7 +131,7 @@ class YAxis extends React.Component {
yAxis.push(
+ showYLabels={this.props.showYLabels} yScale={this.props.yScale}/>
)
}
@@ -217,7 +217,7 @@ class XStep extends React.Component {
)
step.push(
+ value={this.props.value} xScale={this.props.xScale} color={this.props.color} />
)
return(
@@ -274,7 +274,7 @@ class XAxisContinuous extends React.Component {
xAxis.push(
+ showXLabels={this.props.showXLabels} xScale={this.props.xScale}/>
)
}
}