Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
LineChart: recharts.LineChart,
ComposedChart: recharts.ComposedChart,
// PieChart <- not implemented
RadarChart: recharts.RadarChart,
// RadialBarChart <- not implemented
// ScatterChart <- not implemented
Treemap: recharts.Treemap,
////////////////////////
// General Components //
////////////////////////
// ResponsiveContainer, <- not implemented
Area: recharts.Area,
Legend: recharts.Legend,
Tooltip: recharts.Tooltip,
// Cell <- not implemented
// Text <- not implemented
// Label <- not implemented
// LabelList <- not implemented
//////////////////////////
// Cartesian Components //
//////////////////////////
Bar: recharts.Bar,
Line: recharts.Line,
Scatter: recharts.Scatter,
XAxis: recharts.XAxis,
YAxis: recharts.YAxis,
ZAxis: recharts.ZAxis,
Brush: recharts.Brush,
LineChart : recharts.LineChart,
ComposedChart : recharts.ComposedChart,
// PieChart <- not implemented
RadarChart : recharts.RadarChart,
// RadialBarChart <- not implemented
// ScatterChart <- not implemented
Treemap : recharts.Treemap,
////////////////////////
// General Components //
////////////////////////
// ResponsiveContainer, <- not implemented
Area : recharts.Area,
Legend : recharts.Legend,
Tooltip : recharts.Tooltip,
// Cell <- not implemented
// Text <- not implemented
// Label <- not implemented
// LabelList <- not implemented
//////////////////////////
// Cartesian Components //
//////////////////////////
Bar : recharts.Bar,
Line : recharts.Line,
Scatter : recharts.Scatter,
XAxis : recharts.XAxis,
YAxis : recharts.YAxis,
ZAxis : recharts.ZAxis,
Brush : recharts.Brush,
_react2.default.createElement(_recharts.Tooltip, { cursor: { strokeDasharray: '3 3' } })
)
),
_react2.default.createElement(
_recharts.ResponsiveContainer,
{ width: '33.333%', aspect: '1' },
_react2.default.createElement(
_recharts.ScatterChart,
null,
_react2.default.createElement(_recharts.XAxis, { dataKey: 'percent_non_white', name: 'Non-White', unit: '%' }),
_react2.default.createElement(_recharts.YAxis, { dataKey: 'total_incidents_per_1000', name: 'Incidents Per Thousand' }),
_react2.default.createElement(_recharts.ZAxis, { dataKey: 'fma', name: 'Fire Management Area' }),
_react2.default.createElement(_recharts.Scatter, { name: 'Incidents Per Thousand vs FMA % Non-White', data: _data2.default, fill: '#D7075F' }),
_react2.default.createElement(_recharts.CartesianGrid, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Tooltip, { cursor: { strokeDasharray: '3 3' } })
)
)
);
};
_react2.default.createElement(_recharts.CartesianGrid, { strokeDasharray: '3 3' }),
_react2.default.createElement(_recharts.Tooltip, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Bar, { dataKey: 'Average Medical Incidents per Hour, 2010-2016', fill: '#D7075F' })
)
),
_react2.default.createElement(
_recharts.ResponsiveContainer,
{ width: '33.333%', aspect: '1' },
_react2.default.createElement(
_recharts.BarChart,
{ layout: 'horizontal', data: dataHourFire },
_react2.default.createElement(_recharts.XAxis, { dataKey: 'name' }),
_react2.default.createElement(_recharts.YAxis, null),
_react2.default.createElement(_recharts.CartesianGrid, { strokeDasharray: '3 3' }),
_react2.default.createElement(_recharts.Tooltip, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Bar, { dataKey: 'Average Fire Incidents per Hour, 2010-2016', fill: '#e34d77' })
)
),
_react2.default.createElement(
_recharts.ResponsiveContainer,
{ width: '33.333%', aspect: '1' },
_react2.default.createElement(
_recharts.BarChart,
{ layout: 'horizontal', data: dataHourFalse },
_react2.default.createElement(_recharts.XAxis, { dataKey: 'name' }),
_react2.default.createElement(_recharts.YAxis, null),
_react2.default.createElement(_recharts.CartesianGrid, { strokeDasharray: '3 3' }),
_react2.default.createElement(_recharts.Tooltip, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Bar, { dataKey: 'Average False Alarms per Hour, 2010-2016', fill: '#ed7690' })
return _react2.default.createElement(
'div',
{ style: { display: 'flex', flexFlow: 'row wrap' } },
_react2.default.createElement(
_recharts.ResponsiveContainer,
{ width: '33.333%', aspect: '1' },
_react2.default.createElement(
_recharts.ScatterChart,
null,
_react2.default.createElement(_recharts.XAxis, { dataKey: 'fma_population_total', name: 'Population' }),
_react2.default.createElement(_recharts.YAxis, { dataKey: 'median_response_time', name: 'Response Time', unit: 'min' }),
_react2.default.createElement(_recharts.ZAxis, { dataKey: 'fma', name: 'Fire Management Area' }),
_react2.default.createElement(_recharts.Scatter, { name: 'Response Time vs. FMA Population', data: _data2.default, fill: '#D7075F' }),
_react2.default.createElement(_recharts.CartesianGrid, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Tooltip, { cursor: { strokeDasharray: '3 3' } })
)
),
_react2.default.createElement(
_recharts.ResponsiveContainer,
{ width: '33.333%', aspect: '1' },
_react2.default.createElement(
_recharts.ScatterChart,
null,
_react2.default.createElement(_recharts.XAxis, { dataKey: 'median_hh_income', name: 'Median Household Income', unit: '$' }),
_react2.default.createElement(_recharts.YAxis, { dataKey: 'median_response_time', name: 'Response Time', unit: 'min' }),
_react2.default.createElement(_recharts.ZAxis, { dataKey: 'fma', name: 'Fire Management Area' }),
_react2.default.createElement(_recharts.Scatter, { name: 'Response Time vs FMA Median Income', data: _data2.default, fill: '#D7075F' }),
_react2.default.createElement(_recharts.CartesianGrid, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Tooltip, { cursor: { strokeDasharray: '3 3' } })
)
return _react2.default.createElement(
'div',
{ style: { display: 'flex', justifyContent: 'space-around', margin: 'auto' } },
_react2.default.createElement(
_recharts.AreaChart,
{ width: 730, height: 250, data: data },
_react2.default.createElement(_recharts.Legend, { layout: 'vertical', iconType: 'square', verticalAlign: 'top', align: 'left' }),
_react2.default.createElement(
'defs',
null,
gradients
),
_react2.default.createElement(_recharts.XAxis, { dataKey: 'name' }),
_react2.default.createElement(_recharts.YAxis, null),
_react2.default.createElement(_recharts.CartesianGrid, { strokeDasharray: '3 3' }),
_react2.default.createElement(_recharts.Tooltip, null),
lines
)
);
};
var ErBarChart = function ErBarChart() {
return _react2.default.createElement(
'div',
{ style: { display: 'flex', flexFlow: 'row wrap' } },
_react2.default.createElement(
_recharts.ResponsiveContainer,
{ width: '33.333%', aspect: '1' },
_react2.default.createElement(
_recharts.BarChart,
{ layout: 'horizontal', data: dataMonthMedical },
_react2.default.createElement(_recharts.XAxis, { dataKey: 'name' }),
_react2.default.createElement(_recharts.YAxis, null),
_react2.default.createElement(_recharts.CartesianGrid, { strokeDasharray: '3 3' }),
_react2.default.createElement(_recharts.Tooltip, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Bar, { dataKey: 'Average Daily Medical Incidents per Month, 2010-2016', fill: '#D7075F' })
)
),
_react2.default.createElement(
_recharts.ResponsiveContainer,
{ width: '33.333%', aspect: '1' },
_react2.default.createElement(
_recharts.BarChart,
{ layout: 'horizontal', data: dataMonthFire },
_react2.default.createElement(_recharts.XAxis, { dataKey: 'name' }),
_react2.default.createElement(_recharts.YAxis, null),
_react2.default.createElement(_recharts.CartesianGrid, { strokeDasharray: '3 3' }),
_react2.default.createElement(_recharts.Tooltip, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Bar, { dataKey: 'Average Daily Fire Incidents per Month, 2010-2016', fill: '#e34d77' })
var HorizontalBarChart = function HorizontalBarChart(_ref) {
var data = _ref.data;
return _react2.default.createElement(
_recharts.BarChart,
{ layout: 'horizontal', width: 730, height: 250, data: data },
_react2.default.createElement(_recharts.XAxis, { dataKey: 'name' }),
_react2.default.createElement(_recharts.YAxis, null),
_react2.default.createElement(_recharts.CartesianGrid, { strokeDasharray: '3 3' }),
_react2.default.createElement(_recharts.Tooltip, null),
_react2.default.createElement(_recharts.Legend, null),
_react2.default.createElement(_recharts.Bar, { dataKey: 'x', fill: '#8884d8' }),
_react2.default.createElement(_recharts.Bar, { dataKey: 'y', fill: '#82ca9d' })
);
};