我想为我的angular 4项目设置highcharts,但我不断收到此错误:
highcharts has no exported member 'ChartObject'
我尝试过, 角高图, highcharts-angualr, ng2-highcharts,
import { chart } from 'highcharts';
import * as Highcharts from 'highcharts';
答案 0 :(得分:1)
使用Chart
类型而不是ChartObject
。
import * as highcharts from 'highcharts';
const myChart: highcharts.Chart;
myChart = hightcharts.chart(someElement, {
...
});