Drag charts from the palette onto the canvas. Set widget IDs to bind real data at runtime.
Shows how ChartDashboard renders this layout. Widget IDs matching DEMO_DATA keys will use real data; others fall back to built-in samples.
ChartDashboard, passing your real data keyed by widget ID:import ChartDashboard from '@/lib/radiant-charts/ChartDashboard';
import myLayout from './my-dashboard-layout.json';
// Keys match the IDs you set in the designer
const dataSources = {
'revenue-bar': revenueRows, // [{ month, revenue }, ...]
'enrollment-line': enrollmentRows, // [{ year, students }, ...]
'attendance-gauge':[{ value: 94 }],
};
<ChartDashboard
layout={myLayout}
dataSources={dataSources}
theme="light"
/>Widgets whose IDs have no matching key in dataSources automatically fall back to built-in sample data so your layout is always visible during development.
Chart Types
Comparison
Distribution
Part-to-Whole
Specialized
Flow
Grid & Matrix
Statistical
Geospatial
3D
Layout & Text
Drag charts from the left panel to begin
Each widget gets a unique ID for data binding at runtime
Click a widget to edit its ID, data keys, and display options
Hold Ctrl/Cmd to select multiple