From a0112046f7d515b8b2916bda87e2305943f80476 Mon Sep 17 00:00:00 2001 From: Joshua Shaffer Date: Wed, 2 May 2018 18:33:06 -0400 Subject: [PATCH] Dark theme --- Website/SwlMarket/Views/Home/Item.cshtml | 9 ++++++++- Website/SwlMarket/Views/Shared/_Layout.cshtml | 6 ++---- Website/SwlMarket/wwwroot/css/site.css | 9 +++++++-- Website/SwlMarket/wwwroot/css/site.min.css | 2 +- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/Website/SwlMarket/Views/Home/Item.cshtml b/Website/SwlMarket/Views/Home/Item.cshtml index e3ec277..69d177e 100644 --- a/Website/SwlMarket/Views/Home/Item.cshtml +++ b/Website/SwlMarket/Views/Home/Item.cshtml @@ -30,7 +30,14 @@ document.getElementById('priceChart').innerHTML = ""; priceData.x = result.dates; priceData.y = result.prices; - Plotly.plot('priceChart', [priceData]); + var layout = { + font: { + color: '#ffffff' + }, + paper_bgcolor: '#222222', + plot_bgcolor: '#222222', + }; + Plotly.plot('priceChart', [priceData], layout); }, error: function () { $('#priceChart').html("Unable to retrieve pricing data"); diff --git a/Website/SwlMarket/Views/Shared/_Layout.cshtml b/Website/SwlMarket/Views/Shared/_Layout.cshtml index 68df426..12efda3 100644 --- a/Website/SwlMarket/Views/Shared/_Layout.cshtml +++ b/Website/SwlMarket/Views/Shared/_Layout.cshtml @@ -12,15 +12,13 @@ - + @Html.Raw(JavaScriptSnippet.FullScript) -