The ng-2 charts library wraps the Charts.js library to make it easily accessible in Angular 2+.
Questions tagged [ng2-charts]
530 questions
0
votes
1 answer
how to use ng2-chart.js directive in angular 2?
I've installed ng2-charts using npm
npm install ng2-charts --save and npm install chart.js --save
then added below into index.html
and then added below to app.module.ts
import {…

rajnikanthsabnekar
- 41
- 1
- 10
0
votes
1 answer
changing ng2-charts label text on imported chart data
I am importing data into graph chart (ng2-charts in angular 2) and i am loading data from a json file. I wanted to know how can i override the label text on the graph?
Here is a plunker of what i have:…

bluePearl
- 1,237
- 4
- 24
- 42
0
votes
2 answers
how to load data from server with highchart inAngular 2?
this is my chartcomponent and i want to display a chart with values from server,
but it 's not working althought it works with static value
on the ngOnInit i call the webservice and i put the data in variable callled dataa and i call it in data
…

o.O
- 155
- 5
- 16
0
votes
2 answers
How to do Group Stacking available in ng2-charts?
In the original Chart.js the Dataset Structure has a property called stack which can be used to stack group of data sets separately.
"stack: String The ID of the group to which this dataset belongs to (when stacked, each group will be a separate…

abann sunny
- 928
- 12
- 15
0
votes
1 answer
How to embed chart.js in angular-seed
I'm trying to use ng2-charts in an SB-Admin-BS4-Angular-2 project and I get the following error
Error: ng2-charts configuration issue: Embedding Chart.js lib is mandatory
Now I embedded chart.js in tools/config/project.config.ts
{ src:…

praveen kumar
- 1,474
- 4
- 13
- 19
0
votes
1 answer
ng-charts not updating labels when chart data is updated at same time
My ng2-charts component is not updating its labels when I update the charts data at the same time in ngOnChanges().
If i comment out the data var update in ngOnChanges()the labels update in the UI successfully. How can i get both my data and labels…

Fearghal
- 10,569
- 17
- 55
- 97
0
votes
0 answers
Cannnot get ng2-charts to work. [ng2-charts (Not Found) zone.js]
I have followed everything from the website : http://valor-software.com/ng2-charts/
npm install ng2-charts --save
npm install chart.js --save
Then I added this script link in my HTML :
I'm using Angular CLI. As far as I understood, the…

BBaysinger
- 6,614
- 13
- 63
- 132
0
votes
1 answer
How do I return an array instead of a FirebaseListObservable
I have ng2-charts working on my Angular-cli built application. I'm pretty new, so any help is appreciated. I have data setup on Firebase. I create a method in a service to access that data and when I use this code…

DauvO
- 71
- 9
0
votes
1 answer
ng2-Charts is not filled with information first load
I have a ng2-charts implementation in which I just display some information. I have two tabs one with a table and one with graphs. When I initially enter the first tab the line chart is empty but after I switch back to the tab the information is…

Danny Hoeve
- 692
- 13
- 30
0
votes
0 answers
Angular 2 - (SystemJS) Can't resolve all parameters for AppComponent: (?, ?).(…)
I'm attempting to build an application and I'm hitting snag after snag, and just when I think I break through I don't. Now, an application which once accepted AppComponent, once I introduced ng2-charts.js, now does not. I receive this error:
I'm…

Les Paul
- 1,260
- 5
- 22
- 46
0
votes
2 answers
Angular 2 & ng2-charts: (SystemJS) Unexpected directive 'BaseChartComponent' imported
I am trying to get the ng2-charts module to work with my Angular 2 application using a Node.js back-end. This is my app.module.ts file
import {NgModule} from "@angular/core";
import {BrowserModule} from "@angular/platform-browser";
import…

Les Paul
- 1,260
- 5
- 22
- 46