|
@@ -71,7 +71,17 @@ function ColumnChartFCComponent(props: ColumnChartFCExampleProps) {
|
|
|
}
|
|
}
|
|
|
} as ChartsConfig);
|
|
} as ChartsConfig);
|
|
|
uChartsInstanceRef.current[id] = chart;
|
|
uChartsInstanceRef.current[id] = chart;
|
|
|
- console.log('[ColumnChartFCExample] 图表初始化完成:', id);
|
|
|
|
|
|
|
+ const categories = data.categories;
|
|
|
|
|
+ const series = data.series;
|
|
|
|
|
+ console.log('[ColumnChartFCExample] 图表初始化完成:', id, {
|
|
|
|
|
+ cWidth, cHeight,
|
|
|
|
|
+ canvasWidth: canvas.width,
|
|
|
|
|
+ canvasHeight: canvas.height,
|
|
|
|
|
+ categoriesLength: categories.length,
|
|
|
|
|
+ seriesLength: series.length,
|
|
|
|
|
+ categories,
|
|
|
|
|
+ series,
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
console.error("[ColumnChartFCExample]: 未获取到 context");
|
|
console.error("[ColumnChartFCExample]: 未获取到 context");
|
|
|
}
|
|
}
|