mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
fix: transform is undefined (#5905)
This commit is contained in:
parent
a03677616a
commit
cecb3430ba
@ -378,14 +378,13 @@ export class Chart extends React.Component<ChartProps> {
|
||||
if (onChartWillMount) {
|
||||
await onChartWillMount(echarts);
|
||||
}
|
||||
|
||||
(echarts as any).registerTransform(
|
||||
(ecStat as any).transform.regression
|
||||
);
|
||||
(echarts as any).registerTransform((ecStat as any).transform.histogram);
|
||||
(echarts as any).registerTransform(
|
||||
(ecStat as any).transform.clustering
|
||||
);
|
||||
|
||||
if((ecStat as any).transform){
|
||||
(echarts as any).registerTransform((ecStat as any).transform.regression);
|
||||
(echarts as any).registerTransform((ecStat as any).transform.histogram);
|
||||
(echarts as any).registerTransform((ecStat as any).transform.clustering);
|
||||
}
|
||||
|
||||
|
||||
if (env.loadChartExtends) {
|
||||
await env.loadChartExtends();
|
||||
|
Loading…
Reference in New Issue
Block a user