@@ -114,7 +82,6 @@
double last30DaysProfitFiat = Math.Round(last30DaysProfit * Model.Summary.MainMarketPrice, 2);
double last30DaysPercentGain = Math.Round(last30DaysProfit / last30DaysStartBalance * 100, 2);
}
-
@@ -166,6 +133,38 @@
+
+
+
+ @if (!Model.TrendChartDataJSON.Equals("")) {
+
+
+
+ } else {
+
Unable to load graph, no market trend data found.
+ }
+
+
+
+
+
+ @if (!Model.ProfitChartDataJSON.Equals("")) {
+
+
+
+ } else {
+
Unable to load graph, no sales data found.
+ }
+
+
+
diff --git a/Monitor/Pages/_get/DashboardBottom.cshtml.cs b/Monitor/Pages/_get/DashboardBottom.cshtml.cs
index 46173a3..428e19c 100644
--- a/Monitor/Pages/_get/DashboardBottom.cshtml.cs
+++ b/Monitor/Pages/_get/DashboardBottom.cshtml.cs
@@ -115,7 +115,7 @@ namespace Monitor.Pages {
string profitPerDayJSON = "";
if (PTData.SellLog.Count > 0) {
DateTime minSellLogDate = PTData.SellLog.OrderBy(sl => sl.SoldDate).First().SoldDate.Date;
- DateTime graphStartDate = DateTime.UtcNow.Date.AddDays(-10);
+ DateTime graphStartDate = DateTime.UtcNow.Date.AddDays(-30);
if (minSellLogDate > graphStartDate) graphStartDate = minSellLogDate;
for (DateTime salesDate = graphStartDate; salesDate <= DateTime.UtcNow.Date; salesDate = salesDate.AddDays(1)) {
if (tradeDayIndex > 0) {