From 9070a33e9bfe626f445dab5df1275384c966710c Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Mon, 29 Apr 2019 18:11:24 +0900 Subject: [PATCH 1/9] Chart title edit --- Monitor/Pages/SalesAnalyzer.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Monitor/Pages/SalesAnalyzer.cshtml b/Monitor/Pages/SalesAnalyzer.cshtml index 3b256d9..7905010 100644 --- a/Monitor/Pages/SalesAnalyzer.cshtml +++ b/Monitor/Pages/SalesAnalyzer.cshtml @@ -364,7 +364,7 @@ /**/ lineChart.useInteractiveGuideline(true); lineChart.xAxis.tickFormat(function (d) { return d3.time.format('%Y/%m/%d')(new Date(d)); }); - lineChart.yAxis.axisLabel('Sales').tickFormat(d3.format(',')); + lineChart.yAxis.axisLabel('Daily Sales').tickFormat(d3.format(',')); d3.select('.trades-chart svg').attr('perserveAspectRatio', 'xMinYMid').datum(chartData).transition().duration(500).call(lineChart); nv.utils.windowResize(lineChart.update); @@ -379,7 +379,7 @@ /**/ lineChart.useInteractiveGuideline(true); lineChart.xAxis.tickFormat(function (d) { return d3.time.format('%Y/%m/%d')(new Date(d)); }); - lineChart.yAxis.axisLabel('Profit').tickFormat(d3.format(',.2f')); + lineChart.yAxis.axisLabel('Daily Profit').tickFormat(d3.format(',.2f')); d3.select('.profit-chart svg').attr('perserveAspectRatio', 'xMinYMid').datum(chartData).transition().duration(500).call(lineChart); nv.utils.windowResize(lineChart.update); From 885bb796e27853ca607d7ed535a960fee520d581 Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Wed, 1 May 2019 00:36:27 +0900 Subject: [PATCH 2/9] Asset Distribution Chart --- Core/DataObjects/ProfitTrailerData.cs | 22 +++ Monitor/Pages/SalesAnalyzer.cshtml | 2 - Monitor/Pages/_get/DashboardBottom.cshtml | 173 ++++++++++++------- Monitor/Pages/_get/DashboardBottom.cshtml.cs | 26 ++- 4 files changed, 148 insertions(+), 75 deletions(-) diff --git a/Core/DataObjects/ProfitTrailerData.cs b/Core/DataObjects/ProfitTrailerData.cs index 813545a..e4c6e9d 100644 --- a/Core/DataObjects/ProfitTrailerData.cs +++ b/Core/DataObjects/ProfitTrailerData.cs @@ -161,6 +161,28 @@ namespace Core.Main.DataObjects this.Summary.PendingValue + this.Summary.DustValue); } + public double GetPairsBalance() + { + return + (this.Summary.PairsValue); + } + public double GetDCABalance() + { + return + (this.Summary.DCAValue); + } + public double GetPendingBalance() + { + return + (this.Summary.PendingValue); + } + public double GetDustBalance() + { + return + (this.Summary.DustValue); + } + + public double GetSnapshotBalance(DateTime snapshotDateTime) { diff --git a/Monitor/Pages/SalesAnalyzer.cshtml b/Monitor/Pages/SalesAnalyzer.cshtml index 7905010..26a8476 100644 --- a/Monitor/Pages/SalesAnalyzer.cshtml +++ b/Monitor/Pages/SalesAnalyzer.cshtml @@ -15,8 +15,6 @@
Unable to load graph, no sales data found.
+ } +Unable to load graph, no market trend data found.
+ } +Not able to load graph, no market trend data found.
If you still do not see a graph after more than hour, report an issue.
Not able to load graph, no sales data found.
If you still do not see a graph after you made your first sale, report an issue.
Unable to load graph, no market trend data found.
From a49b0e3868eb9bbf81832fd1cde40c9082dd1dbf Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Wed, 1 May 2019 12:16:37 +0900 Subject: [PATCH 4/9] Layout changes --- Monitor/Pages/_get/DashboardBottom.cshtml | 67 ++++++++++---------- Monitor/Pages/_get/DashboardBottom.cshtml.cs | 2 +- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/Monitor/Pages/_get/DashboardBottom.cshtml b/Monitor/Pages/_get/DashboardBottom.cshtml index 860366a..f621df8 100644 --- a/Monitor/Pages/_get/DashboardBottom.cshtml +++ b/Monitor/Pages/_get/DashboardBottom.cshtml @@ -49,39 +49,7 @@Unable to load graph, no sales data found.
- } -Unable to load graph, no market trend data found.
- } -Estimated Account Value: |
- Starting Account Value: |
+ Account Value: |
+ Starting Value: |
---|