Bigous / ng2-highcharts

Angular2 library to use Highcharts out of the box
59 stars 23 forks source link

error with directive ng2-highstocks #52

Closed capcar closed 8 years ago

capcar commented 8 years ago

In my application I have highcharts and highstocks graphs. With highcharts I have not problem, while with highstocks I obtain this error: error

In html I use: <div [ng2-highstocks]="chartStock">

carcamano commented 8 years ago

Hi,

Have you included HighStock.js dependency in your project?

Best,

capcar commented 8 years ago

yes, I included it. I am trying to test the example that there is here, with v. 0.6.1: https://github.com/Bigous/angular2-seed-ng2-highcharts/blob/master/src/client/app/charts/charts.component.ts Where am I wrong?

Bigous commented 8 years ago

Hi @capcar, I've just done the following:

git clone https://github.com/Bigous/angular2-seed-ng2-highcharts
cd angular2-seed-ng2-highcharts
npm install
npm start

Everything has gone well. I've opened the browser and open the http://localhost:4200/ and clicked at CHARTS menu. All the 4 charts are running well too.

image

capcar commented 8 years ago

Is it possible create one graph like this: http://www.highcharts.com/demo/gauge-solid ? And combinations of graphs? http://www.highcharts.com/demo/combo Thanks

capcar commented 8 years ago

I have resolved: it is possible create gauge chart and combinations of graphs

Bigous commented 8 years ago

Hi @capcar ,

Yes, it's possible as you already noted :).

For documentation: You need to add the module highcharts-more from highcharts as a dependency and use it normally.

It's a highcharts question and not a ng2-highcharts thou.

[]'s