@@ -68,6 +68,7 @@ var Axes = React.createClass({
68
68
valueAxisMode : React . PropTypes . oneOf ( [ 'normal' , 'inverted' ] ) ,
69
69
valueScale : ScalePropType . isRequired ,
70
70
valueLabelStyle : Text . propTypes . style ,
71
+ valueLabels : React . PropTypes . arrayOf ( React . PropTypes . string ) ,
71
72
72
73
// Style
73
74
orientation : React . PropTypes . oneOf ( [ 'vertical' , 'horizontal' ] ) ,
@@ -436,7 +437,7 @@ var Axes = React.createClass({
436
437
this . xAxisMode = this . props . categoryAxisMode ;
437
438
this . yAxisMode = 'point' ;
438
439
this . xAxisLabels = this . props . categoryLabels ;
439
- this . yAxisLabels = fixedValues . reverse ( ) ;
440
+ this . yAxisLabels = this . props . valueLabels || fixedValues . reverse ( ) ;
440
441
this . xAxisUnits = this . _getCategoryUnits ( props ) ;
441
442
this . yAxisUnits = this . _getValueUnits ( props ) . reverse ( ) ;
442
443
} else {
@@ -455,7 +456,7 @@ var Axes = React.createClass({
455
456
this . yAxisMode = this . props . categoryAxisMode ;
456
457
this . xAxisMode = 'point' ;
457
458
this . yAxisLabels = this . props . categoryLabels ;
458
- this . xAxisLabels = fixedValues ;
459
+ this . xAxisLabels = this . props . valueLabels || fixedValues ;
459
460
this . yAxisUnits = this . _getCategoryUnits ( props ) ;
460
461
this . xAxisUnits = this . _getValueUnits ( props ) ;
461
462
}
0 commit comments