UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

18 lines (17 loc) 601 B
import _ from 'lodash'; import React from 'react'; import createClass from 'create-react-class'; import BarChart from '../BarChart'; const data = _.map(_.range(0, 70), n => ({ x: new Date(0) + n * 60 * 60 * 24, y: n, })); const style = { paddingTop: '5rem', }; export default createClass({ render() { return (React.createElement("div", { style: style }, React.createElement(BarChart, { data: data, xAxisTextOrientation: 'diagonal', yAxisTextOrientation: 'horizontal', xAxisTickCount: 20, height: 600, width: 750, margin: { bottom: 300, left: 300 } }))); }, });