0
В настоящее время я пытаюсь реализовать Highcharts в своем проекте Angular2. К несчастью, я получаю эту ошибку: не могу найти имя «HighchartsOptions» Учебник-ссылка, которую я использовал. www.npmjs.com/package/angular2-highcharts#installationУгловая 2 - реализация HighCharts: не удается найти имя «HighchartsOptions»
import { Component } from '@angular/core';
@Component({
selector: 'simple-chart-example',
template: `
<chart [options]="options"></chart>
`
})
export class MyChart {
constructor() {
this.options = {
title : { text : 'simple chart' },
series: [{
data: [29.9, 71.5, 106.4, 129.2],
}]
};
}
options: HighchartsOptions; //That's the line where I get the error
enter code here
}