Skip to content

Commit 96bce5b

Browse files
committed
fix issue where scale prop wasn't passed properly
1 parent 28d18ef commit 96bce5b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ var YStep = function (_React$Component3) {
12021202
x2: this.props.x - this.props.length, y2: this.props.y,
12031203
stroke: this.props.color }));
12041204
step.push(_react2.default.createElement(YTickLabel, { key: "label" + this.props.y, x: this.props.x - 10, y: this.props.y,
1205-
value: this.props.value, color: this.props.color }));
1205+
value: this.props.value, yScale: this.props.yScale, color: this.props.color }));
12061206

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

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

13781378
return _react2.default.createElement(
13791379
"g",
@@ -1439,7 +1439,7 @@ var XAxisContinuous = function (_React$Component7) {
14391439
}
14401440
xAxis.push(_react2.default.createElement(XStep, { key: "xStep" + i, x: tickPos, y: this.props.y,
14411441
value: xVal, length: 10, color: this.props.style.labelColor,
1442-
showXLabels: this.props.showXLabels }));
1442+
showXLabels: this.props.showXLabels, xScale: this.props.xScale }));
14431443
}
14441444
}
14451445

src/Axis.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class YStep extends React.Component {
7474
)
7575
step.push(
7676
<YTickLabel key={"label"+this.props.y} x={this.props.x-10} y={this.props.y}
77-
value={this.props.value} color={this.props.color} />
77+
value={this.props.value} yScale={this.props.yScale} color={this.props.color} />
7878
)
7979

8080
return(
@@ -131,7 +131,7 @@ class YAxis extends React.Component {
131131
yAxis.push(
132132
<YStep key={"yStep"+i} x={this.props.x} y={tickPos}
133133
value={yVal} length={10} color={this.props.style.labelColor}
134-
showYLabels={this.props.showYLabels}/>
134+
showYLabels={this.props.showYLabels} yScale={this.props.yScale}/>
135135
)
136136
}
137137

@@ -217,7 +217,7 @@ class XStep extends React.Component {
217217
)
218218
step.push(
219219
<XTickLabel key={"label"+this.props.x} x={this.props.x} y={this.props.y}
220-
value={this.props.value} color={this.props.color} />
220+
value={this.props.value} xScale={this.props.xScale} color={this.props.color} />
221221
)
222222

223223
return(
@@ -274,7 +274,7 @@ class XAxisContinuous extends React.Component {
274274
xAxis.push(
275275
<XStep key={"xStep"+i} x={tickPos} y={this.props.y}
276276
value={xVal} length={10} color={this.props.style.labelColor}
277-
showXLabels={this.props.showXLabels}/>
277+
showXLabels={this.props.showXLabels} xScale={this.props.xScale}/>
278278
)
279279
}
280280
}

0 commit comments

Comments
 (0)