I am very beginner in Angular 8, I am adding smoothie chart in my Angular 8, there no tutorial in google smoothie chart added to angular 8 help me to solve this or give me examples
- npm install smoothie added my angular 8 project
- import {SmoothieChart} from "smoothie"; added to app.component.ts
Code:
import {SmoothieChart} from "smoothie";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
title = 'dashboard';
constructor(){}
ngOnInit()
{
var smoothie = new SmoothieChart();
}
}
App.component.html
<div>
<canvas id="mycanvas" width="800" height="200"></canvas>
</div>
In Javascript smoothie .streamTo(document.getElementById("chart"), 500); In angular 8 how to add above code