Added working snippets and placeholder pie chart

This commit is contained in:
piratefinn 2017-12-13 12:37:11 +00:00
parent a2ad5dc1a0
commit 846c21f967
9 changed files with 142 additions and 41 deletions

View file

@ -3,16 +3,13 @@ import { ApiService } from '../providers/api-service';
import { Router } from '@angular/router';
import { GraphWidget } from '../widgets/graph-widget.component';
import { CustBarSnippetComponent } from '../snippets/cust-snippet-bar.component';
import { PiePanel } from '../panels/pie-panel.component';
import { DataType } from '../shared/data-types.enum';
@Component({
templateUrl: 'dashboard-customer.component.html'
})
export class DashboardCustomerComponent implements OnInit {
customersThisMonth: any;
moneySpentThisMonth: any;
pointsTotal: any;
averageTransactionToday: any;
/* Setting up dashboard's main variables*/
name: any;
@ -22,6 +19,12 @@ export class DashboardCustomerComponent implements OnInit {
myRank: any;
username: any;
// PolarArea
public polarAreaChartLabels: string[] = ['Local', 'Not Local'];
public polarAreaChartData: number[] = [400, 100];
public polarAreaLegend = true;
public polarAreaChartType = 'polarArea';
public widgetList = [
{
type: 'graph',