Skip to content

Commit 764c717

Browse files
committed
updated stores
1 parent e78dc01 commit 764c717

File tree

3 files changed

+35
-28
lines changed

3 files changed

+35
-28
lines changed

src/Legend.svelte

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
valueMinMax[0] = Math.max(0, valueMinMax[0]);
5353
valueMinMax[1] = Math.min(100, valueMinMax[1]);
5454
}
55-
console.log(valueMinMax);
5655
const colorScaleLinear = d3.scaleSequential(d3.interpolateYlOrRd).domain([valueMinMax[0], valueMinMax[1]]);
5756
var arr = split_domain(valueMinMax[0], valueMinMax[1], 7);
5857
linColorArr = [];
@@ -220,7 +219,7 @@
220219
background-color: rgba(255, 255, 255, 0.9);
221220
transition: all 0.1s ease-in;
222221
height: 100%;
223-
width: 360px;
222+
width: 366px;
224223
flex-direction: column;
225224
}
226225
@@ -242,10 +241,13 @@
242241
float: left;
243242
width: 110px;
244243
margin-bottom: 6px;
244+
margin-left: 0px;
245+
padding-top: 0px;
245246
text-align: center;
246247
font-size: 80%;
247248
list-style: none;
248249
}
250+
249251
.trend-legend-grouping ul.legend-labels li span {
250252
display: block;
251253
float: left;
@@ -259,6 +261,8 @@
259261
width: 43px;
260262
margin-bottom: 6px;
261263
margin-right: 1px;
264+
margin-left: 0px;
265+
padding-top: 0px;
262266
text-align: left;
263267
font-size: 80%;
264268
list-style: none;
@@ -274,9 +278,11 @@
274278
.legend-grouping ul li.ends {
275279
display: block;
276280
float: left;
277-
width: 20px;
281+
width: 37px;
278282
margin-bottom: 6px;
279283
margin-right: 1px;
284+
margin-left: 0px;
285+
padding-top: 0px;
280286
text-align: left;
281287
font-size: 80%;
282288
list-style: none;
@@ -286,7 +292,7 @@
286292
display: block;
287293
float: left;
288294
height: 15px;
289-
width: 20px;
295+
width: 37px;
290296
}
291297
</style>
292298

src/Options.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
4040
select.indicators {
4141
display: inline-block;
42-
width: 200px;
42+
width: 230px;
4343
}
4444
4545
select.geo-level {

src/stores.js

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export const sensors = readable(
2020
[{
2121
name: 'Doctor Visits',
2222
id: 'doctor-visits',
23-
tooltipText: 'Percentage of doctor visits that are due to COVID-like symptoms',
24-
mapTitleText: 'Percentage of doctor visits that are due to COVID-like symptoms',
25-
chartTitleText: 'Percentage of doctor visits that are due to COVID-like symptoms',
23+
tooltipText: 'Percentage of daily doctor visits that are due to COVID-like symptoms',
24+
mapTitleText: 'Percentage of daily doctor visits that are due to COVID-like symptoms',
25+
chartTitleText: 'Percentage of daily doctor visits that are due to COVID-like symptoms',
2626
yAxis: 'Percentage',
2727
format: 'percent',
2828
signal: 'smoothed_adj_cli',
@@ -39,6 +39,7 @@ export const sensors = readable(
3939
format: "percent",
4040
signal: "smoothed_adj_covid19",
4141
levels: ["county", "msa", "state"],
42+
official: false,
4243
},
4344
{
4445
name: 'Symptoms (FB)',
@@ -65,7 +66,7 @@ export const sensors = readable(
6566
official: false,
6667
},
6768
{
68-
name: 'Away from home 6hr+ (SG)',
69+
name: 'Away from Home 6hr+ (SG)',
6970
id: 'safegraph',
7071
tooltipText: 'Proportion of people spending 6 hours or more away from home, based on SafeGraph mobility data',
7172
mapTitleText: 'Proportion of people spending 6 hours or more away from home, based on SafeGraph mobility data',
@@ -77,7 +78,7 @@ export const sensors = readable(
7778
official: false,
7879
},
7980
{
80-
name: 'Away from home 3-6hr (SG)',
81+
name: 'Away from Home 3-6hr (SG)',
8182
id: 'safegraph',
8283
tooltipText: 'Proportion of people spending 3-6 hours away from home, based on SafeGraph mobility data',
8384
mapTitleText: 'Proportion of people spending 3-6 hours away from home, based on SafeGraph mobility data',
@@ -114,22 +115,22 @@ export const sensors = readable(
114115
},
115116
{
116117
name: 'Cases',
117-
id: 'jhu-csse',
118-
tooltipText: 'Confirmed COVID-19 cases (7-day average), as reported by Johns Hopkins University',
119-
mapTitleText: 'Confirmed COVID-19 cases (7-day average)',
120-
chartTitleText: 'Confirmed COVID-19 cases (7-day average)',
118+
id: "indicator-combination",
119+
tooltipText: 'Daily new confirmed COVID-19 cases (7-day average), based on data reported by USAFacts and Johns Hopkins University',
120+
mapTitleText: 'Daily new confirmed COVID-19 cases (7-day average)',
121+
chartTitleText: 'Daily new confirmed COVID-19 cases (7-day average)',
121122
yAxis: 'Cases',
122123
format: 'raw',
123124
signal: 'confirmed_7dav_incidence_num',
124125
levels: ['msa', 'county', 'state'],
125126
official: true,
126127
},
127128
{
128-
name: 'Cases per 100,000 people',
129-
id: 'jhu-csse',
130-
tooltipText: 'Confirmed COVID-19 cases per 100,000 people (7-day average), based on data reported by Johns Hopkins University',
131-
mapTitleText: 'Confirmed COVID-19 cases per 100,000 people (7-day average)',
132-
chartTitleText: 'Confirmed COVID-19 cases per 100,000 people (7-day average)',
129+
name: 'Cases per 100,000 People',
130+
id: "indicator-combination",
131+
tooltipText: 'Daily new confirmed COVID-19 cases per 100,000 people (7-day average), based on data reported by USAFacts and Johns Hopkins University',
132+
mapTitleText: 'Daily new confirmed COVID-19 cases per 100,000 people (7-day average)',
133+
chartTitleText: 'Daily new confirmed COVID-19 cases per 100,000 people (7-day average)',
133134
yAxis: 'Cases per 100,000 people',
134135
format: 'raw',
135136
signal: 'confirmed_7dav_incidence_prop',
@@ -138,22 +139,22 @@ export const sensors = readable(
138139
},
139140
{
140141
name: 'Deaths',
141-
id: 'jhu-csse',
142-
tooltipText: 'COVID-19 deaths (7-day average), as reported by Johns Hopkins University',
143-
mapTitleText: 'COVID-19 deaths (7-day average)',
144-
chartTitleText: 'COVID-19 deaths (7-day average)',
142+
id: "indicator-combination",
143+
tooltipText: 'Daily new COVID-19 deaths (7-day average), based on data reported by USAFacts and Johns Hopkins University',
144+
mapTitleText: 'Daily new COVID-19 deaths (7-day average)',
145+
chartTitleText: 'Daily new COVID-19 deaths (7-day average)',
145146
yAxis: 'Deaths',
146147
format: 'raw',
147148
signal: 'deaths_7dav_incidence_num',
148149
levels: ['msa', 'county', 'state'],
149150
official: true,
150151
},
151152
{
152-
name: 'Deaths per 100,000 people',
153-
id: 'jhu-csse',
154-
tooltipText: 'COVID-19 deaths per 100,000 people (7-day average), based on data reported by Johns Hopkins University',
155-
mapTitleText: 'COVID-19 deaths per 100,000 people (7-day average)',
156-
chartTitleText: 'COVID-19 deaths per 100,000 people (7-day average)',
153+
name: 'Deaths per 100,000 People',
154+
id: "indicator-combination",
155+
tooltipText: 'Daily new COVID-19 deaths per 100,000 people (7-day average), based on data reported by USAFacts and Johns Hopkins University',
156+
mapTitleText: 'Daily new COVID-19 deaths per 100,000 people (7-day average)',
157+
chartTitleText: 'Daily new COVID-19 deaths per 100,000 people (7-day average)',
157158
yAxis: 'Deaths per 100,000 people',
158159
format: 'raw',
159160
signal: 'deaths_7dav_incidence_prop',

0 commit comments

Comments
 (0)