ng2-charts Questions

13

Solved

I am trying to use the basic example of NG2-Charts (http://valor-software.com/ng2-charts/) I copy pasted the HTML part <div style="display: block"> <canvas baseChart [datasets]="barCh...
Mackenzie asked 13/10, 2016 at 8:49

2

Solved

I have a problem on angular ( v5) with this plugin: ng2-charts ( from charts.js) chartjs-plugin-zoom hammer.js I have a simply chart and i'd like to zoom and pan on this, but it doesn't works. I...
Neoplasty asked 31/1, 2018 at 14:47

5

Solved

I am encountering the error: ERROR in ./node_modules/ng2-charts/fesm2015/ng2-charts.js Module not found: Error: Can't resolve 'chart.js' in /node_modules/ng2-charts/fesm2015' I did "npm instal...
Muncey asked 8/1, 2020 at 1:43

7

html: <canvas *ngIf="actionData" baseChart width=800 height=300 [datasets]="lineActionData" [labels]="lineActionLabels" [options]="lineChartOptions" [colors]="lineChartColors" [legend]="li...
Trusting asked 21/2, 2018 at 12:15

2

Solved

home.component.ts global: boolean = false; country!: string; data: GlobalData; dailyData: any[] = []; countries: any[] = []; lineChartData: any[] = [ { data: [65, 64, 33, 44], label: 'Temp label...
Hogg asked 4/7, 2021 at 12:43

4

I followed the instructions on the ng2-charts demo page to get set up. I'm using angular-cli so I also imported the packages using System.JS. Then I copied the demo code, but it won't display. The ...
Honor asked 28/6, 2016 at 19:15

2

Solved

How do I change the position of the legend (that by default appears on top of the chart)? I'm using ng-charts, and I'm trying to change the position according to the documentation, but it does not ...
Tintometer asked 23/11, 2016 at 13:46

3

Solved

I am using the chart js https://www.npmjs.com/package/chart.js and ng2-charts https://www.npmjs.com/package/ng2-charts , to render a doughnut chart. But, I want the label to appear on the right of...

6

Solved

I have added ng2-charts to my project and display 2 charts - donut & barchart. both are displayed in gray since I added <base-chart class="chart" [colors]="chartColors"...
Ellora asked 3/10, 2016 at 13:29

5

Solved

My chart is defined as: <canvas #chart baseChart [data]="_chartData" [labels]="_chartLabels" [chartType]="_chartType" [colors]="_backgroundColors"> </canvas> I have colors spec...
Connolly asked 7/2, 2017 at 16:57

7

Solved

Hello developers i have been literally the whole day trying to implement charts on my proyect , but following the official docs there is not way i could rid off this error : ERROR in ./node_modules...
Ergonomics asked 3/4, 2021 at 23:8

3

I am using Doughnut chart from ng2-charts (http://valor-software.com/ng2-charts/) in angular 2. I have been searching for an option to put a text in the middle without success. I already searched i...
Cornerwise asked 8/3, 2017 at 3:38

5

Solved

I am trying to implement ng2-charts in my Angular 2 project and I was wondering about creating custom onclick events. Meaning, I want to override the current onclick events on the carts to do some ...
Epithelium asked 14/7, 2016 at 16:1

16

Solved

I'm trying to create dynamically a chart using ng2-chart, I get information from an angular 2 service, when I change only labels of chart it works and when I change data only it works, but When I c...
Conservatoire asked 6/3, 2017 at 15:46

1

I am creating a stacked bar chart using ng2-chart which is the Angular-2 version of ChartJs . I am trying to create bar chart with border- radius as mentioned in the attached image, but unable to ...
Cathay asked 11/10, 2017 at 12:58

4

I'm not sure how exactly to import a plugin into ng2-charts, specifically the annotation plugin. I'm using Angular2 / Ionic2. There doesn't seem to be any documentation or answers on this.
Magnetite asked 25/1, 2017 at 23:4

2

Solved

Unable to figure out how to label y axis using ng2-charts. Documentation only seems to have info on labelling x axis and using charts.js method directly yields no result. Form component.ts: publ...
Cremate asked 11/7, 2019 at 1:19

6

Solved

Is it possible to update any chart from ng2-charts dynamically? I know there are other libraries like angular2-highcharts, but I would like to handle it using ng2-charts. Main question is how can I...
Rohn asked 22/8, 2016 at 11:12

2

Solved

Well, here I am again with my Angular and javascript woes feeling dumber for each question I ask. But let me try to explain my initial steps and how it lead to this problem. So, in my latest proj...
Scan asked 7/5, 2018 at 9:21

2

Solved

I am using ng2-charts in Angular 7 app and having warning WARNING in ./node_modules/ng2-charts/fesm5/ng2-charts.js 230:54-72 "export 'ɵɵdefineInjectable' was not found in '@angular/core' erro...
Limit asked 30/5, 2019 at 3:59

7

Solved

How do I set a chart's height using ng2-charts? I'm making a line chart, just like the demo on the ng2-charts site. I've searched the documentation for ng2-charts and chart.js. In chart.js it look...
Breathtaking asked 20/7, 2016 at 15:37

2

Solved

I have gone through the documents of ng2-charts but I couldn't find anything like Stacked Bar. Is there is any other way to achieve Stacked Bar chart in ng2-charts? Please help me out
Buxtehude asked 19/3, 2019 at 5:41

3

I have a chart.js chart using ng2-charts module. The chart shows Percentage on y axis and time on x axis. Is it possible to set y axis to show 0 to 100 instead of dynamic range based on data?
Mainspring asked 21/8, 2018 at 14:36

1

Solved

I have bar chart and I want to draw average line on this bar chart. My solution: In data sets, I add element with type as 'line': https://stackblitz.com/edit/ng2-charts-bar-template?file=src%2Fa...
Ensure asked 11/9, 2019 at 9:24

2

Solved

I am using ng2 doughnut chart to display some items, Its all working fine as per the doughnut chart documentation but the thing i need to change is, the display of label of each slices comes only o...
Bedard asked 10/10, 2017 at 6:32

© 2022 - 2024 — McMap. All rights reserved.