The ng-2 charts library wraps the Charts.js library to make it easily accessible in Angular 2+.
Questions tagged [ng2-charts]
530 questions
-1
votes
1 answer
How to get only values from a json to feed into ng-2 charts?
I have a nested json with different fields and its values and i want to get all the values of a particular field in an array to provide datasource to ng-2 charts in this format
chartData = [
{ design_names: [testname1,testname2,.....], label: 'xyz'…

Meghna Dhar
- 49
- 1
- 3
-1
votes
1 answer
ng2-charts Bitcoin live chart
I'm newbie and I'm trying to render the live Bitcoin chart using ng2-charts library, I fetched the data but somehow I did not know how to visualize the data to the chart due to the structure of data which something like this:
"bpi": {
…

Hoàng Nguyễn
- 1,121
- 3
- 33
- 57
-1
votes
2 answers
Get the value of bar in ng2-chart bar graph after clicking on bar
I have an ng2-chart bar graph displaying on my page but I'm looking to get the value of that bar e.g. 5, 7, 9 .
I can get the label name...but can't get the value.
Had anyone done this?
public chartClicked(e:any):void {
…

thegunner
- 6,883
- 30
- 94
- 143
-2
votes
1 answer
chart.js, radar diagram show straight line
My require diagram is spiral diagram which is slightly same as chart.js radar diagram.
So I tried to change the plugin code to fit into my requirement however I couldn't do that.
So is there any available solution that can match my requirement or…

rajnesh
- 1
- 3
-2
votes
1 answer
ng2 charts on Angular 9 not responsive
I created a dashboard application using Angular9 and ng2 charts. The application has ability to drag and drop charts on a Gridster layout and create Dashboards which loads in the Home page.
ng2 charts are set responsive true through chart options,…

Sree Ja
- 1
- 1