From fe6964fb8d02952b04f2957e5a5b1409a8935651 Mon Sep 17 00:00:00 2001 From: Tom Slater Date: Wed, 14 Aug 2019 15:34:08 +0100 Subject: [PATCH] WIP event timepicker --- src/app/dashboard/more-graphs-and-tables.component.html | 2 +- src/app/dashboard/more-graphs-and-tables.component.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/dashboard/more-graphs-and-tables.component.html b/src/app/dashboard/more-graphs-and-tables.component.html index 37d43ed..b45487b 100644 --- a/src/app/dashboard/more-graphs-and-tables.component.html +++ b/src/app/dashboard/more-graphs-and-tables.component.html @@ -6,7 +6,7 @@

Spend amount and number of purchases by supplier name

- +
diff --git a/src/app/dashboard/more-graphs-and-tables.component.ts b/src/app/dashboard/more-graphs-and-tables.component.ts index 92a2e18..60465c3 100644 --- a/src/app/dashboard/more-graphs-and-tables.component.ts +++ b/src/app/dashboard/more-graphs-and-tables.component.ts @@ -13,7 +13,7 @@ export class MoreStuffComponent implements OnInit { @Input() public categories: any; bubbleChartBegin: any; bubbleChartEnd: any; - + constructor( private api: ApiService, private currencyPipe: CurrencyPipe, @@ -59,7 +59,7 @@ export class MoreStuffComponent implements OnInit { result.data.map(item => { graph_data.push({ t: item.date, - r: item.value > 1000000 ? (item.value / 1000000) + 10 : (item.value / 100000) + 5, + r: item.value > 1000000 ? (item.value / 100000) + 5 : (item.value / 100000) + 1, supplier: item.seller, y: item.count, value: item.value, @@ -71,7 +71,9 @@ export class MoreStuffComponent implements OnInit { } ) } - + private bubbleChartUpdate() { + console.log("test change"); + } public supplierBubbleChartType: ChartType = 'bubble'; public supplierBubbleChartData: any[] = [ {