Questions tagged [angular-chartist.js]
32 questions
4
votes
3 answers
Angular 6 Chartist Donut Chart not getting load on first time when getting data from api
"I am using Angular 6. I have a donut chart on dashboard its data doesn't get load on first time , when i go to some other page and come back donut chart displays. On refresh also data disappears. I am getting api data with help of resolver. Graph…

Ruchita Ajmera
- 413
- 1
- 6
- 17
4
votes
1 answer
How to update data Chart in async way in Angular Chart.js?
I've project based on ngx-admin starter empty (without all libraries). I imported angular2-chartjs lib in package.json.
The Chart is drawn correctly.
I need to update data of chart when I receive response from server, in async way.
I read the…

sawyer
- 325
- 1
- 3
- 13
4
votes
1 answer
Chartist not defined error
I am trying to use the Chartist.js framework to create charts and graphs for my site. But for some reason I keep getting the error "Chartist is not defined"
I can't figure out how to fix this error. Please see the code below:

Skywalker
- 4,984
- 16
- 57
- 122
3
votes
1 answer
Chart disappears, but it shows when I press f12 (?)
I use chart.js and I load data with service from db.
After reloading it's not shown, but when I press f12 to open the console it appears like nothing happened.
component ts:
import { Component } from '@angular/core';
import { ChartData } from…

DeadWinner
- 31
- 3
3
votes
2 answers
How to set single color on each bar in angular chart js
Here is my html code:
Here is the js code:
var setGraphDate =…

Md. Masudur Rahman
- 1,028
- 12
- 30
3
votes
3 answers
Horizontal Bar-Chart in angular-chart.js
I have successfully created a bar chart in angular-chart.js but now I want to change it into a horizontal bar chart. Also, I would like the fields to be placed inside of the horizontal bar itself:
code
angular.module("app", ["chart.js"])
…

user2402107
- 913
- 5
- 22
- 43
2
votes
0 answers
How to append info data next the bar in chartist.js used in angular component?
I want to add info data next to the selected line bar in the chartist.js library that is used inside an angular component in the highlighted yellow portion in the attached picture.
enter image description here

Samar Ahmed
- 21
- 1
1
vote
0 answers
Angular.merge is not a function shows in angularjs chart integration
I am using angularjs chartjs. There is no problem. But when I am using chart-dataset-override="datasetOverride" it shows the problem that angular.merge is not a function. I am using angularjs version 1.3.3. I have no option to upgrade angularjs…

Abhijit Mondal Abhi
- 1,364
- 4
- 15
- 34
1
vote
0 answers
Angularjs karma giving error when trying to use chart.js
I am using chart.js in my angularjs web app and for karma testing when running karma start, it cannot find chart.js module

Ali Rashidian
- 11
- 2
1
vote
1 answer
Drawing a bar chart by passing values from a json array through angularjs
I have a JSON array as follows
{
"id": "00000005",
"Name": "Test5",
"hours": 7.5,
"day": 1
},
{
"id": "00000005",
"Name": "Test5",
"hours": 2,
"day": 2
},
{
"id": "00000005",
…

tharindu
- 513
- 6
- 26
1
vote
0 answers
Error: [$injector:nomod] Module 'chart.js' is not available! Rails application.js
I am trying to get angular-chart.js to work in a rails project.
Following the install instructions on https://github.com/jtblin/angular-chart.js
1) npm install --save angular-chart.js
so far so good.…

Ivan
- 65
- 1
- 8
1
vote
0 answers
Multiple pie chart in one page using angular-chartjs
I am creating a admin dashboard so i need to give two pie chart in the same page. i am using angular-chartjs to create pie charts.
Both pie charts are displaying correctly when another pie chart code is commented(ie. both are working fine…

Precision
- 61
- 1
- 2
- 8
1
vote
2 answers
Create a chart on a dynamically created canvas in Angular-chart.js
I have a div that will need to host a chart or table depending on an XHR response. In the chart case, I need the div contents to be replaced by a canvas element that chart.js uses to display a graph.
If I add the canvas element to the HTML code,…

Lmwangi
- 2,486
- 1
- 19
- 26
1
vote
1 answer
Angular Chartjs How to make it reactive to data change?
I'm trying to write an app that will show some data from API and during the work I will be able to change time and date range that I would like to show on the chart.
Right now I am fighting with basic data change.
I have a simple chart…

wiwo
- 721
- 1
- 13
- 18
1
vote
0 answers
Adding text in a doughnut angular-chart
I have a doughnut chart in angularJS using angular-chart.js.
HTML file: