drizzle-cube
Version:
Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.
18 lines (17 loc) • 1.27 kB
TypeScript
/**
* Drizzle Cube Chart Components
*
* Chart components only - optimized for applications that only need charts
* without the full dashboard or query builder functionality.
*
* For code splitting, use LazyChart instead of direct chart imports:
* import { LazyChart, preloadCharts } from 'drizzle-cube/client/charts'
*/
export { RechartsBarChart, RechartsLineChart, RechartsAreaChart, RechartsPieChart, RechartsScatterChart, RechartsRadarChart, RechartsRadialBarChart, RechartsTreeMapChart, DataTable } from './components/charts';
export { LazyChart, preloadChart, preloadCharts, isValidChartType, getAvailableChartTypes } from './charts/ChartLoader';
export type { LazyChartProps } from './charts/ChartLoader';
export { getChartConfigAsync, getChartConfigSync, useChartConfig, isChartConfigLoaded, preloadChartConfig, preloadChartConfigs, loadAllChartConfigs, clearChartConfigCache } from './charts/lazyChartConfigRegistry';
export { formatChartData } from './utils/index';
export { CHART_COLORS, POSITIVE_COLOR, NEGATIVE_COLOR, CHART_MARGINS } from './utils/chartConstants';
export type { ChartType, ChartAxisConfig, ChartDisplayConfig } from './types';
export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs';