openreplay/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/CallWithErrors/Chart.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

23 lines
505 B
JavaScript

import React from 'react';
import { AreaChart, Area } from 'recharts';
import { Styles } from '../../common';
function Chart({ data, compare }) {
const colors = compare ? Styles.compareColors : Styles.colors;
return (
<AreaChart width={90} height={30} data={data.chart}>
<Area
type="monotone"
dataKey="count"
stroke={colors[0]}
fill={colors[3]}
fillOpacity={0.5}
/>
</AreaChart>
);
}
Chart.displayName = 'Chart';
export default Chart;