You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
使用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';
使用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: