Skip to content

Commit

Permalink
responsive graph
Browse files Browse the repository at this point in the history
  • Loading branch information
kdevanath committed Feb 6, 2021
1 parent b6c1e86 commit 584d4ca
Show file tree
Hide file tree
Showing 11 changed files with 366 additions and 331 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Byte-compiled / optimized / DLL files
config.py
__pycache__/
*.py[cod]
*$py.class
Expand Down
184 changes: 92 additions & 92 deletions Resources/col_rankings_db.csv

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions Resources/crime_rankings_db.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ city_id,city_name,ranking,crime_index,safety_index
3476,"Saint Louis, MO",23,70.33971170543452,29.660288294565472
3387,"Albuquerque, NM",24,70.1142718594404,29.88572814055962
3449,"Milwaukee, WI",29,68.54929680496866,31.450703195031352
3405,"Chicago, IL",41,64.96483204786925,35.035167952130735
3454,"New Orleans, LA",43,64.8573593948684,35.142640605131604
3405,"Chicago, IL",40,64.96483204786925,35.035167952130735
3454,"New Orleans, LA",42,64.8573593948684,35.142640605131604
3407,"Cleveland, OH",46,64.66550194738528,35.33449805261471
3428,"Houston, TX",52,63.893690638241,36.10630936175902
3459,"Oakland, CA",53,63.81607321325614,36.18392678674386
Expand All @@ -17,22 +17,22 @@ city_id,city_name,ranking,crime_index,safety_index
3497,"Washington, DC",84,57.66801480776386,42.33198519223614
3431,"Indianapolis, IN",86,57.563898397963364,42.436101602036636
3435,"Jacksonville, FL",91,56.6364781022318,43.36352189776821
3483,"San Francisco, CA",93,56.24836045681008,43.75163954318991
3483,"San Francisco, CA",92,56.24836045681008,43.75163954318991
3438,"Las Vegas, NV",97,55.720857766248464,44.27914223375154
3489,"Spokane, WA",104,54.47342341191796,45.526576588082044
3448,"Miami, FL",120,53.148279374757514,46.851720625242486
3443,"Louisville, KY",123,52.79568456426042,47.20431543573958
3450,"Minneapolis, MN",127,52.423057776759514,47.57694222324048
3466,"Phoenix, AZ",129,52.0961022485167,47.9038977514833
3462,"Orlando, FL",133,51.92870873320501,48.07129126679499
3494,"Tucson, AZ",140,50.52176091871778,49.47823908128222
3411,"Dallas, TX",143,50.19940933904118,49.80059066095881
3494,"Tucson, AZ",141,50.52176091871778,49.47823908128222
3411,"Dallas, TX",144,50.19940933904118,49.80059066095881
3492,"Tampa, FL",150,49.23026518889329,50.769734811106716
3406,"Cincinnati, OH",151,49.139127228056196,50.860872771943804
3487,"Seattle, WA",152,49.10875760961242,50.89124239038758
3475,"Sacramento, CA",153,49.05901161072131,50.940988389278694
3469,"Portland, OR",155,48.966604718312695,51.033395281687305
3442,"Los Angeles, CA",159,48.27960545006249,51.72039454993751
3442,"Los Angeles, CA",160,48.27960545006249,51.72039454993751
3480,"San Antonio, TX",161,48.193039179144016,51.806960820855984
8029,"Nashville, TN",166,47.77645546607613,52.22354453392387
3455,"New York, NY",180,46.85391562964994,53.14608437035007
Expand All @@ -42,18 +42,18 @@ city_id,city_name,ranking,crime_index,safety_index
3402,"Buffalo, NY",198,44.99345016961246,55.006549830387534
3403,"Charlotte, NC",203,44.186506572237306,55.813493427762694
3427,"Honolulu, HI",205,43.91478711309779,56.08521288690221
3409,"Columbus, OH",212,43.43155619190465,56.56844380809536
3409,"Columbus, OH",211,43.43155619190465,56.56844380809536
3412,"Denver, CO",216,43.152011554676214,56.847988445323786
3473,"Riverside, CA",254,39.31993931422758,60.680060685772425
3473,"Riverside, CA",255,39.31993931422758,60.680060685772425
9925,"Brooklyn, NY",264,38.727799827856785,61.27220017214322
3467,"Pittsburgh, PA",273,37.76841670398489,62.2315832960151
3399,"Boise, ID",281,36.79233018981377,63.207669810186246
3482,"San Diego, CA",285,36.509958008935975,63.490041991064025
3393,"Austin, TX",292,35.87408039978227,64.12591960021774
3400,"Boston, MA",297,35.298037173966264,64.70196282603374
3470,"Raleigh, NC",304,34.452299008308565,65.54770099169143
3445,"Madison, WI",314,33.3004082397801,66.69959176021993
3479,"Salt Lake City, UT",315,33.16282990415988,66.83717009584011
3416,"El Paso, TX",321,32.03628579966242,67.96371420033756
9269,"Amarillo, TX",403,22.744976888287898,77.2550231117121
8366,"Irvine, CA",419,20.10703483367843,79.89296516632157
3467,"Pittsburgh, PA",274,37.76841670398489,62.2315832960151
3399,"Boise, ID",282,36.79233018981377,63.207669810186246
3482,"San Diego, CA",286,36.509958008935975,63.490041991064025
3393,"Austin, TX",293,35.87408039978227,64.12591960021774
3400,"Boston, MA",298,35.298037173966264,64.70196282603374
3470,"Raleigh, NC",305,34.452299008308565,65.54770099169143
3445,"Madison, WI",315,33.3004082397801,66.69959176021993
3479,"Salt Lake City, UT",316,33.16282990415988,66.83717009584011
3416,"El Paso, TX",322,32.03628579966242,67.96371420033756
9269,"Amarillo, TX",404,22.744976888287898,77.2550231117121
8366,"Irvine, CA",420,20.10703483367843,79.89296516632157
14 changes: 7 additions & 7 deletions Resources/pollution_rankings_db.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ city_id,city_name,ranking,pollution_index,exp_pollution_index
3466,"Phoenix, AZ",179,56.507308345956396,97.68139193737929
3428,"Houston, TX",182,56.076246660389174,96.76943103701586
3438,"Las Vegas, NV",190,53.43888343240027,89.78136989835902
3465,"Philadelphia, PA",195,52.1475267401656,90.71824262843066
3454,"New Orleans, LA",205,49.788535539042634,92.54544256682678
3465,"Philadelphia, PA",196,52.1475267401656,90.71824262843066
3454,"New Orleans, LA",207,49.788535539042634,92.54544256682678
3483,"San Francisco, CA",212,47.5400746004118,81.86641679504866
3484,"San Jose, CA",218,46.005528636886254,77.06496693322327
3467,"Pittsburgh, PA",222,45.297591743268555,78.23737397885851
Expand All @@ -18,17 +18,17 @@ city_id,city_name,ranking,pollution_index,exp_pollution_index
3406,"Cincinnati, OH",234,43.283579661583474,73.70298268662286
3412,"Denver, CO",236,43.058142287568394,74.6536220269527
3443,"Louisville, KY",237,42.523775314723586,72.7335328114478
3411,"Dallas, TX",240,41.91665595857071,69.50293564172195
3431,"Indianapolis, IN",241,41.780574883951104,70.10480705741604
3411,"Dallas, TX",241,41.91665595857071,69.50293564172195
3431,"Indianapolis, IN",242,41.780574883951104,70.10480705741604
3448,"Miami, FL",248,39.41048297072279,66.08153515600382
3497,"Washington, DC",250,39.184053905406934,66.480623878025
3435,"Jacksonville, FL",252,38.58181203515889,73.5605657647228
3476,"Saint Louis, MO",254,37.99864705123422,64.67197931062422
3427,"Honolulu, HI",260,36.66418855916888,61.47839501724225
3393,"Austin, TX",261,36.36684958341621,62.06449441810778
8029,"Nashville, TN",262,35.7135860664329,59.51334157277991
3462,"Orlando, FL",263,35.577294424085295,61.301411610608945
3459,"Oakland, CA",265,35.39434263598424,61.219867686458656
3459,"Oakland, CA",262,36.224930056965654,62.697108082043464
8029,"Nashville, TN",263,35.7135860664329,59.51334157277991
3462,"Orlando, FL",264,35.577294424085295,61.301411610608945
3482,"San Diego, CA",269,34.83538491485311,61.31025813614292
3471,"Reno, NV",277,32.35670268116817,52.6063249158108
3437,"Kansas City, MO",278,32.026762308069024,54.391398480741074
Expand Down
Loading

0 comments on commit 584d4ca

Please sign in to comment.