import React from 'react';
import {
BarChart,
Bar,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Cell
} from 'recharts';
import PropTypes from 'prop-types';
import { purple, red, pink, indigo, blue, cyan, teal } from '@material-ui/core/colors';
import { data2 } from './sampleData';
const colors = [red[500], pink[500], purple[500], indigo[500], blue[500], cyan[500], teal[500]];
const getPath = (x, y, width, height) => (
`M${x},${y + height}
C${x + (width / 3)},${y + height} ${x + (width / 2)},${y + (height / 3)} ${x + (width / 2)}, ${y}
C${x + (width / 2)},${y + (height / 3)} ${x + (2 * (width / 3))},${y + height} ${x + width}, ${y + height}
Z`
);
const TriangleBar = props => {
const {
fill,
x,
y,
width,
height
} = props;
return ;
};
TriangleBar.propTypes = {
x: PropTypes.number,
y: PropTypes.number,
fill: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
};
TriangleBar.defaultProps = {
x: 0,
y: 0,
fill: '#9f9f9f',
width: 0,
height: 0,
};
function BarCustom() {
return (
} label={{ position: 'top' }}>
{
data2.map((entry, index) => (
|
))
}
);
}
export default BarCustom;