Answers for "pie chart typescript code in angular"

0

pie chart typescript code in angular

import {Component} from '@angular/core';

@Component({
    templateUrl: './piechart.html'
})
export class PieChart {
    data: any;

    constructor() {
        this.data = {
            labels: ['Jan','Feb','March'],
            datasets: [
                {
                    data: [305, 51, 111],                    
                    hoverBackgroundColor: [
                        "#FF6371",
                        "#36A2EB",
                        "#FFCE45"
                    ],
                    backgroundColor: [
                        "#FF6371",
                        "#36A2EB",
                        "#FFCE45"
                    ]
                }]    
            };
    }
}
Posted by: Guest on November-24-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language