UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

19 lines (18 loc) 592 B
import React from 'react'; import createClass from 'create-react-class'; import { LineChart } from '../../../index'; const data = [ { x: new Date('2015-01-01T00:00:00-08:00'), y: 1 }, { x: new Date('2015-01-02T00:00:00-08:00'), y: 0 }, { x: new Date('2015-01-03T00:00:00-08:00'), y: 3 }, { x: new Date('2015-01-04T00:00:00-08:00'), y: 5 }, ]; const style = { paddingTop: '4rem', }; export default createClass({ render() { return (React.createElement("div", { style: style }, React.createElement(LineChart, { data: data, width: 800 }))); }, });