From fa6ac51e85cf2aed4b694006ae5180cb8e339ef0 Mon Sep 17 00:00:00 2001 From: lxieyang Date: Wed, 22 Apr 2020 15:08:52 -0400 Subject: [PATCH] graph container styling --- src/App.svelte | 6 +++--- src/Graph.svelte | 27 ++++++++++++++++++--------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index d9dedc2d4..d60c57a83 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -306,12 +306,12 @@ z-index: 1001; bottom: 10px; right: 10px; - max-width: 400px; + /* max-width: 400px; max-height: 400px; - width: 400px; + width: 400px; */ background-color: rgba(255, 255, 255, 0.9); /* border-radius: 1rem; */ - padding: 6px 13px 0; + padding: 6px 5px; box-sizing: border-box; transition: opacity 0.3s ease-in-out; diff --git a/src/Graph.svelte b/src/Graph.svelte index cace7b3e9..59cf23b0b 100644 --- a/src/Graph.svelte +++ b/src/Graph.svelte @@ -510,7 +510,7 @@ .attr('cy', d => y(+d.value)) .style('stroke-width', 3) .style('fill', d => { - console.log(d.time_value); + // console.log(d.time_value); if (d.time_value === $currentDate) return 'white'; if (d.inDirection && $signalType === 'direction') return 'black'; return DIRECTION_THEME.gradientMiddle; @@ -573,6 +573,12 @@ -
-

- {$currentRegionName} {$currentRegionName && $currentLevel === 'county' ? 'County' : ''} - {$currentLevel === 'msa' ? 'Metro Area' : ''} -

+
+
+

+ {$currentRegionName} {$currentRegionName && $currentLevel === 'county' ? 'County' : ''} + {$currentLevel === 'msa' ? 'Metro Area' : ''} +

-
-
+
+
+