2018-03-26 14:47:21 +00:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-block">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<h4 class="card-title mb-0">All Purchases</h4>
|
2018-04-09 18:19:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-26 14:47:21 +00:00
|
|
|
<div class="chart-wrapper">
|
|
|
|
<canvas baseChart class="chart"
|
|
|
|
[data]="doughnutChartDataLocal"
|
|
|
|
[labels]="doughnutChartLabelsLocal"
|
|
|
|
[legend]="chartLegend"
|
|
|
|
[chartType]="chartType"
|
|
|
|
(chartHover)="chartHovered($event)"
|
|
|
|
(chartClick)="chartClicked($event)"></canvas>
|
2017-12-13 12:37:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-26 14:47:21 +00:00
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-block">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<h4 class="card-title mb-0">Weekly Spend</h4>
|
2018-04-09 18:19:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-26 14:47:21 +00:00
|
|
|
<div class="chart-wrapper">
|
|
|
|
<canvas baseChart class="chart"
|
|
|
|
[data]="doughnutChartDataCategory"
|
|
|
|
[labels]="doughnutChartLabelsCategory"
|
|
|
|
[legend]="chartLegend"
|
|
|
|
[chartType]="chartType"
|
|
|
|
(chartHover)="chartHovered($event)"
|
|
|
|
(chartClick)="chartClicked($event)"></canvas>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-11 18:10:03 +00:00
|
|
|
<div *ngIf="showEssentialBarChart" class="card">
|
2018-04-09 18:19:06 +00:00
|
|
|
<div class="card-block">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<h4 class="card-title mb-0">Essential Purchases</h4>
|
2018-04-11 18:10:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-09 18:19:06 +00:00
|
|
|
<div class="chart-wrapper">
|
2018-04-11 18:10:03 +00:00
|
|
|
<canvas baseChart class="chart"
|
2018-04-09 18:19:06 +00:00
|
|
|
[datasets]="barChartDataEssential"
|
|
|
|
[labels]="barChartLabelsEssential"
|
|
|
|
[options]="barChartOptionsEssential"
|
|
|
|
[chartType]="barChartTypeEssential"
|
|
|
|
(chartHover)="chartHovered($event)"
|
|
|
|
(chartClick)="chartClicked($event)"></canvas>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-11 18:10:03 +00:00
|
|
|
<div *ngIf="showCategoryBarChart" class="card">
|
|
|
|
<div class="card-block">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<h4 class="card-title mb-0">Month Purchases by Category</h4>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="chart-wrapper">
|
|
|
|
<canvas baseChart
|
|
|
|
[datasets]="barChartDataCategory"
|
|
|
|
[labels]="barChartLabelsCategory"
|
|
|
|
[options]="barChartOptionsCategory"
|
|
|
|
[legend]="barChartLegendCategory"
|
|
|
|
[chartType]="barChartTypeCategory"
|
|
|
|
(chartHover)="chartHovered($event)"
|
|
|
|
(chartClick)="chartClicked($event)"></canvas>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|