Added working snippets and placeholder pie chart
This commit is contained in:
parent
a2ad5dc1a0
commit
846c21f967
9 changed files with 142 additions and 41 deletions
|
@ -10,4 +10,10 @@
|
|||
</widget-graph>
|
||||
</div><!--/.col-->
|
||||
</div><!--/.row-->
|
||||
<!-- http://www.chartjs.org/docs/latest/charts/polar.html?h=polar -->
|
||||
<div class=row>
|
||||
<div class="col-12 col-md-4 no-gutters">
|
||||
<panel-pie></panel-pie>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -25,6 +25,7 @@ import { GraphWidget } from '../widgets/graph-widget.component';
|
|||
import { OrgBarSnippetComponent } from '../snippets/org-snippet-bar.component';
|
||||
import { CustBarSnippetComponent } from '../snippets/cust-snippet-bar.component';
|
||||
import { GraphPanel } from '../panels/graph-panel.component';
|
||||
import { PiePanel } from '../panels/pie-panel.component';
|
||||
|
||||
import { DashboardRoutingModule } from './dashboard.routing';
|
||||
import { OrgResultComponent } from '../shared/org-result.component';
|
||||
|
@ -72,6 +73,7 @@ import { environment } from '../../environments/environment';
|
|||
OrgBarSnippetComponent,
|
||||
CustBarSnippetComponent,
|
||||
GraphPanel,
|
||||
PiePanel,
|
||||
],
|
||||
providers: [
|
||||
CurrencyPipe,
|
||||
|
|
Reference in a new issue