Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
AreaChart: recharts.AreaChart,
BarChart: recharts.BarChart,
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,
AreaChart : recharts.AreaChart,
BarChart : recharts.BarChart,
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,
myKeys.forEach(function (key, index) {
if (key !== 'name') {
lines.push(_react2.default.createElement(_recharts.Area, {
type: 'monotone',
key: '' + myKeys[index],
dataKey: '' + myKeys[index],
stroke: colors[index],
fillOpacity: 1,
fill: 'url(#color' + index + ')'
}));
gradients.push(_react2.default.createElement(
'linearGradient',
{
key: 'color' + index,
id: 'color' + index,
x1: '0', y1: '0', x2: '0', y2: '1'
},
_react2.default.createElement('stop', { offset: '5%', stopColor: colors[index], stopOpacity: 0.8 }),
_react2.default.createElement('stop', { offset: '95%', stopColor: colors[index], stopOpacity: 0.1 })