2017-01-24 5 views
0

現在Angular2プロジェクトでハイチャートを実装しようとしています。 Unluckily私はこのエラーが表示されます:名前 'HighchartsOptions'を見つけることができません 私が使用したチュートリアルリンク。 www.npmjs.com/package/angular2-highcharts#installationAngular 2 - HighCharts実装:名前 'HighchartsOptions'を見つけることができません

Browser log: Module.ts

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 
} 

答えて

1

変更...

options:HighchartsOptions 

に...

options:Object; 
関連する問題