Skip to content

Commit

Permalink
Support multiple statsVars in the same UI node (#223)
Browse files Browse the repository at this point in the history
* keep all the human readble nodes in the same node

* revise the statsvar menu to support multiple sv in the node

* lint

* clean up the logic of update statsVar in url

* regenerate the tree
  • Loading branch information
qlj-lijuan authored Jul 31, 2020
1 parent 84e401b commit 4d6f622
Show file tree
Hide file tree
Showing 9 changed files with 46,025 additions and 15,404 deletions.
60,748 changes: 45,559 additions & 15,189 deletions static/data/hierarchy_statsvar.json

Large diffs are not rendered by default.

123 changes: 89 additions & 34 deletions static/data/hierarchy_top.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
{
"Demographics": {
"sv": "top",
"sv": [
"top"
],
"l": "Demographics",
"t": "p",
"c": 1785,
"c": 1787,
"cd": [
{
"sv": "Count_Person",
"sv": [
"Count_Person"
],
"l": "Population",
"t": "v",
"c": 1
},
{
"sv": "Median_Age_Person",
"sv": [
"Median_Age_Person"
],
"l": "Median age",
"t": "v",
"c": 1
},
{
"sv": "Median_Income_Person",
"sv": [
"Median_Income_Person"
],
"l": "Median income",
"t": "v",
"c": 1
Expand Down Expand Up @@ -86,7 +94,9 @@
]
},
"Crime": {
"sv": "top",
"sv": [
"top"
],
"l": "Crime",
"t": "p",
"c": 11,
Expand All @@ -99,7 +109,9 @@
]
},
"Education": {
"sv": "top",
"sv": [
"top"
],
"l": "Education",
"t": "p",
"c": 215,
Expand Down Expand Up @@ -127,31 +139,41 @@
]
},
"Employment": {
"sv": "top",
"sv": [
"top"
],
"l": "Employment",
"t": "p",
"c": 193,
"c": 196,
"cd": [
{
"sv": "UnemploymentRate_Person",
"sv": [
"UnemploymentRate_Person"
],
"l": "Unemployment Rate",
"t": "v",
"c": 1
},
{
"sv": "Count_Person_InLaborForce",
"sv": [
"Count_Person_InLaborForce"
],
"l": "Labor Force",
"t": "v",
"c": 1
},
{
"sv": "Count_Person_Employed",
"sv": [
"Count_Person_Employed"
],
"l": "Employed",
"t": "v",
"c": 1
},
{
"sv": "Count_Person_Unemployed",
"sv": [
"Count_Person_Unemployed"
],
"l": "Unemployed",
"t": "v",
"c": 1
Expand All @@ -174,16 +196,21 @@
]
},
"Health": {
"sv": "top",
"sv": [
"top"
],
"l": "Health",
"t": "p",
"c": 1212,
"c": 1214,
"cd": [
{
"sv": "Count_MortalityEvent",
"sv": [
"Count_MortalityEvent",
"Count_Death"
],
"l": "Mortality",
"t": "v",
"c": 1101
"c": 1102
},
{
"l": "Health Outcomes",
Expand Down Expand Up @@ -213,13 +240,17 @@
]
},
"Housing": {
"sv": "top",
"sv": [
"top"
],
"l": "Housing",
"t": "p",
"c": 96,
"c": 97,
"cd": [
{
"sv": "Count_HousingUnit",
"sv": [
"Count_HousingUnit"
],
"l": "Housing Units",
"t": "v",
"c": 1
Expand Down Expand Up @@ -262,13 +293,17 @@
]
},
"Household": {
"sv": "top",
"sv": [
"top"
],
"l": "Household",
"t": "p",
"c": 679,
"c": 680,
"cd": [
{
"sv": "Count_Household",
"sv": [
"Count_Household"
],
"l": "Household",
"t": "v",
"c": 1
Expand All @@ -291,64 +326,84 @@
]
},
"Disasters": {
"sv": "top",
"sv": [
"top"
],
"l": "Disasters",
"t": "p",
"c": 17,
"c": 24,
"cd": [
{
"sv": "Count_CycloneEvent",
"sv": [
"Count_CycloneEvent"
],
"l": "Cyclones",
"t": "v",
"c": 5
},
{
"sv": "Count_DroughtEvent",
"sv": [
"Count_DroughtEvent"
],
"l": "Droughts",
"t": "v",
"c": 1
},
{
"sv": "Count_EarthquakeEvent",
"sv": [
"Count_EarthquakeEvent"
],
"l": "Earthquakes",
"t": "v",
"c": 14
},
{
"sv": "Count_FloodEvent",
"sv": [
"Count_FloodEvent"
],
"l": "Floods",
"t": "v",
"c": 1
},
{
"sv": "Count_ThunderstormWindEvent",
"sv": [
"Count_ThunderstormWindEvent"
],
"l": "Thunderstorm Wind Gusts",
"t": "v",
"c": 1
},
{
"sv": "Count_TornadoEvent",
"sv": [
"Count_TornadoEvent"
],
"l": "Tornadoes",
"t": "v",
"c": 1
},
{
"sv": "Count_WildlandFireEvent",
"sv": [
"Count_WildlandFireEvent"
],
"l": "Wildland Fires",
"t": "v",
"c": 1
}
]
},
"Environment": {
"sv": "top",
"sv": [
"top"
],
"l": "Environment",
"t": "p",
"c": 0,
"cd": []
},
"Economic": {
"sv": "top",
"sv": [
"top"
],
"l": "Economic",
"t": "p",
"c": 0,
Expand Down
37 changes: 37 additions & 0 deletions static/data/statsvar_path.json
Original file line number Diff line number Diff line change
Expand Up @@ -8679,13 +8679,27 @@
6,
2
],
"Count_Person_3OrMoreYears_Female_EnrolledInPrivateSchool": [
0,
5,
0,
6,
2
],
"Count_Person_3OrMoreYears_Female_EnrolledInPublicSchool": [
0,
5,
0,
6,
3
],
"Count_Person_EnrolledInPublicSchool": [
0,
5,
0,
6,
3
],
"dc/9yqjetxt86ml1": [
0,
12,
Expand Down Expand Up @@ -17978,20 +17992,39 @@
6,
0
],
"Count_UnemploymentInsuranceClaim_ShortTimeCompensation": [
3,
6,
0
],
"Count_UnemploymentInsuranceClaim_ShortTimeCompensation_ContinuedClaim_ScaledForPartTimeUnemploymentBenefits": [
3,
6,
0,
0,
0
],
"Count_UnemploymentInsuranceClaim_ShortTimeCompensation_ContinuedClaim": [
3,
6,
0,
0,
0
],
"Count_UnemploymentInsuranceClaim_ShortTimeCompensation_InitialClaim_ScaledForPartTimeUnemploymentBenefits": [
3,
6,
0,
0,
1
],
"Count_UnemploymentInsuranceClaim_ShortTimeCompensation_InitialClaim": [
3,
6,
0,
0,
1
],
"Count_UnemploymentInsuranceClaim_StateUnemploymentInsurance": [
3,
6,
Expand Down Expand Up @@ -18053,6 +18086,10 @@
4,
0
],
"Count_Death": [
4,
0
],
"Count_Death_Upto1Years": [
4,
0,
Expand Down
Loading

0 comments on commit 4d6f622

Please sign in to comment.