'use client'; import React from 'react'; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'; interface BarChartComponentProps { data: any[]; config: any; width?: number; height?: number; } /** * 바 차트 컴포넌트 (Recharts SimpleBarChart 기반) * - 실제 데이터를 받아서 단순하게 표시 * - 복잡한 변환 로직 없음 */ export function BarChartComponent({ data, config, width = 600, height = 300 }: BarChartComponentProps) { // console.log('🎨 BarChartComponent - 전체 데이터:', { // dataLength: data?.length, // fullData: data, // dataType: typeof data, // isArray: Array.isArray(data), // config, // xAxisField: config?.xAxis, // yAxisFields: config?.yAxis // }); // 데이터가 없으면 메시지 표시 if (!data || data.length === 0) { return (