From ee70bc3724923a8b401531bc09e331f16acf3259 Mon Sep 17 00:00:00 2001 From: Smart Date: Mon, 17 Apr 2023 16:05:50 +0530 Subject: [PATCH] dashboard --- .../app/dashboard/dashboard.component.html | 65 ++++++++++++++++++- .../src/app/dashboard/dashboard.component.ts | 22 ++++++- 2 files changed, 84 insertions(+), 3 deletions(-) diff --git a/ng-seed/src/app/dashboard/dashboard.component.html b/ng-seed/src/app/dashboard/dashboard.component.html index 1a03b16..e074976 100644 --- a/ng-seed/src/app/dashboard/dashboard.component.html +++ b/ng-seed/src/app/dashboard/dashboard.component.html @@ -1 +1,64 @@ -

welcome

\ No newline at end of file +
+
+ +
+
New Orders
+
This Week
+
+
+ +
190
+
+
+
+
+
+
+ +
+
Total Profit
+
This Week
+
+
+ +
987
+
+
+
+
+
+
+ +
+
Email
+
This Week
+
+
+ +
236
+
+
+
+
+
+
+
+
+ + + Total Sales   + + + +
+ +
+ + +
+
+
+
+
\ No newline at end of file diff --git a/ng-seed/src/app/dashboard/dashboard.component.ts b/ng-seed/src/app/dashboard/dashboard.component.ts index 7622415..c4e8131 100644 --- a/ng-seed/src/app/dashboard/dashboard.component.ts +++ b/ng-seed/src/app/dashboard/dashboard.component.ts @@ -1,12 +1,30 @@ import { Component } from '@angular/core'; - +import { single, multi } from './charts.data'; @Component({ selector: 'app-dashboard', templateUrl: './dashboard.component.html', styleUrls: ['./dashboard.component.scss'] }) export class DashboardComponent { - + public single: any[]; + public multi: any[]; + public showXAxis = true; + public showYAxis = true; + public gradient = false; + public showLegend = false; + public showXAxisLabel = false; + public xAxisLabel = 'Year'; + public showYAxisLabel = false; + public yAxisLabel = 'Population'; + public colorScheme = { + domain: ['#673ab7', '#f44336', '#009688 ', '#2196f3'] + }; + public autoScale = true; constructor() { + // this.fetch((data) => { this.rows = data; }); + Object.assign(this, {single, multi}) + } + onSelect(event) { + console.log(event); } }