updated realTimeViz componet sturucture and data

This commit is contained in:
Nalvazhuthi
2025-03-18 17:00:20 +05:30
parent 92676cd12c
commit b818a00c64
13 changed files with 1079 additions and 592 deletions

View File

@@ -4,7 +4,7 @@ import { useWidgetStore } from "../../../../store/store";
import ChartComponent from "./chartComponent";
// Define Props Interface
interface DesignProps {}
interface Widget {
id: string;
type: string; // Chart type (e.g., "bar", "line")
@@ -78,13 +78,13 @@ const Design = () => {
{/* Chart Component */}
<div className="reviewChart">
{/* {selectedChartId && (
{selectedChartId && (
<ChartComponent
type={selectedChartId.type}
title={selectedChartId.title}
data={selectedChartId.data || defaultChartData} // Use widget data or default
/>
)} */}
)}
</div>
{/* Options Container */}