import React from 'react'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'; const LineChartComponent = ({ data, title, description, metaInfo, dataKey = 'value', lineColor = '#8884d8', height = 400, showLegend = true, showGrid = true, customTooltip, customXAxisFormatter, customYAxis, additionalLines = [] }) => { return (
{title &&

{title}

} {description && (

{description}

)} {metaInfo && (
{metaInfo}
)} {showGrid && } new Date(timestamp).toLocaleTimeString())} /> {customYAxis || } new Date(timestamp).toLocaleString()} /> {showLegend && } {additionalLines.map((lineProps, index) => ( ))}
); }; export default LineChartComponent;