lucid-ui
Version:
A UI component library from AppNexus.
24 lines • 693 B
JavaScript
import React from 'react';
import createClass from 'create-react-class';
import { Axis, d3Scale } from '../../../index';
var margin = {
right: 20,
left: 20
};
var width = 400;
var height = 40;
var innerWidth = width - margin.right - margin.left;
var x = d3Scale.scaleBand().domain(['a', 'b', 'c', 'd']).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, ", 1)")
}, /*#__PURE__*/React.createElement(Axis, {
orient: "bottom",
scale: x
})));
}
});