react-d3-core
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -87,2 +87,3 @@ "use strict"; | ||
var type = _props2.type; | ||
var style = _props2.style; | ||
@@ -114,4 +115,12 @@ var axisGroup = _reactFauxDom2['default'].createElement('g'); | ||
axisDom.selectAll('.x.axis path').style('display', 'none'); | ||
axisDom.selectAll('.axis path').style('display', 'none'); | ||
var axisText = axisDom.selectAll('.axis text'); | ||
if (style) { | ||
for (var key in style) { | ||
axisText.style(key, style[key]); | ||
} | ||
} | ||
return axisDom.node().toReact(); | ||
@@ -118,0 +127,0 @@ } |
@@ -66,2 +66,3 @@ "use strict"; | ||
var labelOffset = _props.labelOffset; | ||
var style = _props.style; | ||
@@ -116,3 +117,4 @@ var t; | ||
outerTickSize: xOuterTickSize, | ||
ticks: xTicks | ||
ticks: xTicks, | ||
style: style | ||
}), | ||
@@ -154,3 +156,4 @@ axisLabel | ||
xTickFormat: _react.PropTypes.func, | ||
xTicks: _react.PropTypes.array | ||
xTicks: _react.PropTypes.array, | ||
style: _react.PropTypes.object | ||
}, | ||
@@ -157,0 +160,0 @@ enumerable: true |
@@ -66,2 +66,3 @@ "use strict"; | ||
var showYAxis = _props.showYAxis; | ||
var style = _props.style; | ||
@@ -115,3 +116,4 @@ var t; | ||
outerTickSize: yOuterTickSize, | ||
ticks: yTicks | ||
ticks: yTicks, | ||
style: style | ||
}), | ||
@@ -153,3 +155,4 @@ axisLabel | ||
yTickFormat: _react.PropTypes.func, | ||
yTicks: _react.PropTypes.array | ||
yTicks: _react.PropTypes.array, | ||
style: _react.PropTypes.object | ||
}, | ||
@@ -156,0 +159,0 @@ enumerable: true |
{ | ||
"name": "react-d3-core", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "react-d3 chart core component", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
4131090
31304