{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ex-loading-state-echarts-bar-chart",
  "registryDependencies": [
    "@evilcharts/echarts-bar-chart"
  ],
  "files": [
    {
      "path": "src/registry/examples/echarts/ex-loading-state-echarts-bar-chart.tsx",
      "content": "\"use client\";\n\nimport { EChartsBarChart, type ChartConfig } from \"@/registry/charts/echarts-bar-chart\";\n\nconst data: { month: string; desktop: number; mobile: number }[] = [];\n\nconst chartConfig = {\n  desktop: {\n    label: \"Desktop\",\n    colors: {\n      light: [\"#047857\"],\n      dark: [\"#10b981\"],\n    },\n  },\n  mobile: {\n    label: \"Mobile\",\n    colors: {\n      light: [\"#be123c\"],\n      dark: [\"#f43f5e\"],\n    },\n  },\n} satisfies ChartConfig;\n\nexport function EChartsExampleBarChart() {\n  return (\n    <EChartsBarChart\n      data={data} // if isLoading is true, pass empty array → i.e isLoading ? [] : data\n      config={chartConfig}\n      className=\"h-full w-full p-4\"\n      isLoading={true} // [!code highlight]\n    >\n      <EChartsBarChart.Grid />\n      <EChartsBarChart.XAxis dataKey=\"month\" tickFormatter={(value) => value.substring(0, 3)} />\n      <EChartsBarChart.Legend />\n      <EChartsBarChart.Tooltip />\n      <EChartsBarChart.Bar dataKey=\"desktop\" variant=\"default\" />\n      <EChartsBarChart.Bar dataKey=\"mobile\" variant=\"default\" />\n    </EChartsBarChart>\n  );\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}