A bar chart which has two y-axes

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js"></script>
<script src="https://npmcdn.com/[email protected]/dist/react-with-addons.min.js"></script>
<script src="https://npmcdn.com/[email protected]/dist/react-dom.min.js"></script>
<script src="https://npmcdn.com/prop-types/prop-types.min.js"></script>
<script src="https://npmcdn.com/recharts/umd/Recharts.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-array/1.2.2/d3-array.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-scale/1.0.7/d3-scale.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-format/1.3.0/d3-format.min.js"></script>
<div id="container">
    <!-- This element's contents will be replaced with your component. -->
</div>

CSS

body {
  margin: 0;
}
#container {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px;
  width: 800px;
  height: 800px;
  background-color: #fff;
}

Babel + JSX

const {BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} = Recharts;
const { extent, max } = 'd3-array';
const { scaleLinear, scaleTime } = 'd3-scale'; 
const { format } = 'd3-format';

const data = [
      {name: 'Page A', uv: 4000, pv: 2400, amt: 2400},
      {name: 'Page B', uv: 3000, pv: 1398, amt: 2210},
      {name: 'Page C', uv: 2000, pv: 4800, amt: 2290},
      {name: 'Page D', uv: 2780, pv: 3908, amt: 2000},
      {name: 'Page E', uv: 1890, pv: 4800, amt: 2181},
      {name: 'Page F', uv: 2390, pv: 3800, amt: 2500},
      {name: 'Page G', uv: 3490, pv: 4300, amt: 2100},
];
const data1 = [
      {time: 1518265980000, uv: 4000, pv: 2400, amt: 2400},
      {time: 1518258600000, uv: 3000, pv: 1398, amt: 2210},
      {time: 1518275700000, uv: 2000, pv: 4800, amt: 2290},
      {time: 1518300900000, uv: 2780, pv: 3908, amt: 2000},
      {time: 1518344100000, uv: 1890, pv: 4800, amt: 2181},
      {time: 1518430500000, uv: 2390, pv: 3800, amt: 2500},
      {time: 1518448500000, uv: 3490, pv: 4300, amt: 2100}
];
const SimpleLineChart = React.createClass({
	render () {
  	const domain = extent(data1, d=>new Date(d.time)); 
  	const tScale = scaleTime().domain(domain);
  	const tickFormat = tScale.tickFormat();
    
  	return (
    	<BarChart width={600} height={300} data={data1} margin={{top: 20, right: 30, left: 20, bottom: 5}}>
       <CartesianGrid strokeDasharray="3 3"/>
       <XAxis dataKey="time" tickFormatter={tickFormat} />
       <YAxis />
       <Tooltip />
       <Legend />
       <Bar dataKey="pv" fill="#8884d8" />
       <Bar dataKey="uv" fill="#82ca9d" />
      </BarChart>
    );
  }
})

ReactDOM.render(
  <SimpleLineChart />,
  document.getElementById('container')
);