-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
模块“"echarts-stat"”没有导出的成员“transform”。 #56
Comments
你好,我也遇到了相同的问题,请问你解决了嘛? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用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);
The text was updated successfully, but these errors were encountered: