Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from '@angular/core';
- @Component({
- selector: 'app-my-bar-chart',
- templateUrl: './my-bar-chart.component.html',
- styleUrls: ['./my-bar-chart.component.css']
- })
- export class MyBarChartComponent implements OnInit {
- public barChartOptions = {
- scaleShowVerticalLines: false,
- responsive: true
- };
- public barChartLabels = ['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July'];
- public barChartType = 'bar';
- public barChartLegend = true;
- public barChartData = [
- {data: [65, 59, 80, 81, 56, 55, 40], label: 'female'},
- {data: [28, 48, 40, 19, 86, 27, 90], label: 'male'}
- ];
- constructor() { }
- ngOnInit() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement