UNPKG

react-occult

Version:

Layered Information Visualization based on React and D3

37 lines (32 loc) 726 B
import React from 'react'; import PropTypes from 'prop-types'; import lineProjection from './projection'; import Plot from '../BasePlot'; const Line = props => { return <Plot {...props} />; }; Line.propTypes = { ...Plot.propTypes, // lineType: PropTypes.oneOf([ // 'stackedarea', // 'stackedarea-invert', // 'stackedpercent', // 'stackedpercent-invert', // 'linepercent', // 'difference', // 'bumparea', // 'bumpline', // 'bumparea-invert', // 'line', // 'area', // 'cumulative', // 'cumulative-reverse' // ]), simpleLine: PropTypes.bool }; Line.defaultProps = { ...Plot.defaultProps, lineType: 'line', projection: lineProjection }; export default Line;