UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

27 lines 754 B
import React from 'react'; import createClass from 'create-react-class'; import { Axis, d3Scale } from '../../../index'; var margin = { right: 40, left: 20, top: 40, bottom: 10 }; var width = 500; var height = 100; var innerWidth = width - margin.right - margin.left; var x = d3Scale.scaleLinear().domain([0, 100000]).range([0, innerWidth]); export default createClass({ render: function render() { return /*#__PURE__*/React.createElement("svg", { width: width, height: height }, /*#__PURE__*/React.createElement("g", { transform: "translate(".concat(margin.left, ", ").concat(height / 2, ")") }, /*#__PURE__*/React.createElement(Axis, { scale: x, orient: "bottom", tickCount: 6 }))); } });