Skip to content

Commit 5062ee5

Browse files
committed
Enhance DataGrid and ChartCanvas with KX Dashboards-style features
DataGrid: - Column filtering with inline inputs - Pagination with page size selector - Column visibility toggle - CSV export - Row selection ChartCanvas: - New chart types: candlestick, radar, gauge, treemap - Theme-aware colors (light/dark) - Toolbox with zoom, pan, save image - Legend support - Data zoom controls
1 parent 2270637 commit 5062ee5

3 files changed

Lines changed: 618 additions & 99 deletions

File tree

src/components/canvas/DashboardCanvas.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ function WidgetContainer({
4242
onSelect: () => void;
4343
onRemove: () => void;
4444
}) {
45-
const getChartType = () => {
45+
const getChartType = (): 'bar' | 'line' | 'area' | 'scatter' | 'pie' | 'heatmap' | 'candlestick' | 'radar' | 'gauge' | 'treemap' => {
4646
const id = widget.component.id;
4747
if (id === 'bar-chart') return 'bar';
4848
if (id === 'line-chart') return 'line';
4949
if (id === 'area-chart') return 'area';
5050
if (id === 'scatter-chart') return 'scatter';
5151
if (id === 'pie-chart') return 'pie';
5252
if (id === 'heatmap') return 'heatmap';
53+
if (id === 'candlestick') return 'candlestick';
54+
if (id === 'treemap') return 'treemap';
5355
return 'bar';
5456
};
5557

0 commit comments

Comments
 (0)