openreplay/frontend/app/components/Funnels/FunnelGraphSmall/FunnelGraphSmall.js
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

25 lines
658 B
JavaScript

import React from 'react';
import { BarChart, Bar, Cell } from 'recharts';
function FunnelGraphSmall({ data }) {
return (
<div
className="rounded-md flex items-center justify-center p-2"
style={{ backgroundColor: 'rgba(62, 170, 175, 0.2)' }}
>
<BarChart width={50} height={40} data={data}>
<Bar
dataKey="sessionsCount"
maxBarSize={6}
background={{ fill: '#DDDDDD' }}
>
{data.map((entry, index) => (
<Cell cursor="pointer" fill="#3EAAAF" key={`cell-${index}`} />
))}
</Bar>
</BarChart>
</div>
);
}
export default FunnelGraphSmall;