File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 99import React , { Suspense } from 'react' ;
1010import { ComponentRegistry } from '@object-ui/core' ;
1111import { Skeleton } from '@object-ui/components' ;
12+ import type { ChartConfig } from './ChartContainerImpl' ;
1213
1314// Export types for external use
1415export type { BarChartSchema } from './types' ;
@@ -124,7 +125,7 @@ export const ChartRenderer: React.FC<ChartRendererProps> = ({ schema }) => {
124125 // 3. Auto-generate config/colors if missing
125126 if ( ! config && series ) {
126127 const colors = ( schema as any ) . colors || [ 'hsl(var(--chart-1))' , 'hsl(var(--chart-2))' , 'hsl(var(--chart-3))' ] ;
127- const newConfig : Record < string , any > = { } ;
128+ const newConfig : ChartConfig = { } ;
128129 series . forEach ( ( s : any , idx : number ) => {
129130 newConfig [ s . dataKey ] = { label : s . dataKey , color : colors [ idx % colors . length ] } ;
130131 } ) ;
Original file line number Diff line number Diff line change 77 "paths" : {
88 "@/*" : [" src/*" ]
99 },
10- // Removed rootDir to prevent file not under rootDir errors when importing from workspace dependencies
10+ // Removed explicit rootDir to prevent file not under rootDir errors when importing from workspace dependencies
1111 "noEmit" : false ,
1212 "declaration" : true ,
1313 "composite" : true ,
You can’t perform that action at this time.
0 commit comments