import React from 'react'; import PropTypes from 'prop-types'; import { createMuiTheme } from '@material-ui/core/styles'; import ThemePallete from 'ba-api/themePalette'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import { data1 } from './sampleData'; const theme = createMuiTheme(ThemePallete.orangeTheme); const color = ({ primary: theme.palette.primary.main, secondary: theme.palette.secondary.main, }); const CustomizedDot = props => { const { cx, cy, value } = props; if (value > 2500) { return ( ); } return ( ); }; CustomizedDot.propTypes = { cx: PropTypes.number, cy: PropTypes.number, value: PropTypes.number, }; CustomizedDot.defaultProps = { cx: 0, cy: 0, value: 0, }; function LineCustomDot() { return ( } /> ); } export default LineCustomDot;