Skip to content

模块“"echarts-stat"”没有导出的成员“transform”。 #56

Description

@Gnasche4

使用vue-echarts组件输入代码echarts.registerTransform(ecStat.transform.regression)时
报错:类型“typeof EChartsStat”上不存在属性“transform”。
但是在输入import {transform} from 'echarts-stat' 之后又报错:模块“"echarts-stat"”没有导出的成员“transform”。
可以请您查看一下么

import { ref, provide } from 'vue';
// echarts 基础工具
import { use } from 'echarts/core';
import { CanvasRenderer } from 'echarts/renderers';
import ecStat from 'echarts-stat';
import * as echarts from 'echarts';
import {transform} from 'echarts-stat';

// echarts 图表工具
import { BarChart } from 'echarts/charts';
import {
GridComponent,
TooltipComponent,
TitleComponent,
} from 'echarts/components';
import VChart, { THEME_KEY } from 'vue-echarts';
// echarts 过渡效果
import { UniversalTransition } from 'echarts/features';
use([
TitleComponent,
GridComponent,
BarChart,
CanvasRenderer,
UniversalTransition,
TooltipComponent,
]);

provide(THEME_KEY, 'dark');

echarts.registerTransform(ecStat.transform.regression);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions