Skip to content

Instantly share code, notes, and snippets.

@dhoboy
Last active November 28, 2015 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhoboy/ceb621dd5e7a4ba2620c to your computer and use it in GitHub Desktop.
Save dhoboy/ceb621dd5e7a4ba2620c to your computer and use it in GitHub Desktop.
Hawaii Elections 1

d3 v4 pack layout of Hawaii 2010 Election Data. Based on this.

Contest ID Contest Title Contest Seq Nbr Contest Type Contest Party Absentee Mail Blank Votes Absentee Walk-in Blank Votes Election Blank Votes Absentee Mail Over Votes Absentee Walk-in Over Votes Election Over Votes Registered Voters Total Precincts Counted Precincts Candidate ID Candidate Name Candidate Seq Nbr Candidate Party Absentee Mail Votes Absentee Walk-in Votes Election Votes Total Votes
1 US Senator 2 OF 5504 1154 8031 60 7 125 690748 351 242 3 (D) INOUYE, Daniel K. 3 DEM 90373 28458 158397 277228
1 US Senator 2 OF 5504 1154 8031 60 7 125 690748 351 242 2 (R) CAVASSO, Cam 2 REP 24876 8300 46763 79939
1 US Senator 2 OF 5504 1154 8031 60 7 125 690748 351 242 1 (G) BREWER, Jim 1 GRE 1934 695 5133 7762
1 US Senator 2 OF 5504 1154 8031 60 7 125 690748 351 242 5 (L) MALLAN, Lloyd Jeffrey 6 LIB 681 258 2018 2957
1 US Senator 2 OF 5504 1154 8031 60 7 125 690748 351 242 4 (N) JARRETT, Jeff 5 NPP 725 252 1720 2697
2 US Representative, Dist 1 3 OF 4353 584 8109 18 0 21 690748 156 98 7 (D) HANABUSA, Colleen 2 DEM 37956 6689 49495 94140
2 US Representative, Dist 1 3 OF 4353 584 8109 18 0 21 690748 156 98 6 (R) DJOU, Charles 1 REP 32572 5709 44442 82723
3 US Representative, Dist 2 4 OF 3010 1157 7946 38 12 95 690748 195 144 9 (D) HIRONO, Mazie 2 DEM 33867 18190 80233 132290
3 US Representative, Dist 2 4 OF 3010 1157 7946 38 12 95 690748 195 144 11 (R) WILLOUGHBY, John W. 4 REP 11525 6247 28632 46404
3 US Representative, Dist 2 4 OF 3010 1157 7946 38 12 95 690748 195 144 8 (L) BROCK, Pat 1 LIB 583 388 2283 3254
3 US Representative, Dist 2 4 OF 3010 1157 7946 38 12 95 690748 195 144 10 (N) VON SONN, Andrew Vsevolod 3 NPP 231 148 931 1310
4 Governor and Lieutenant Governor 7 OF 1181 219 1187 97 8 130 690748 349 242 12 (D) ABERCROMBIE / SCHATZ 1 DEM 71974 22676 128074 222724
4 Governor and Lieutenant Governor 7 OF 1181 219 1187 97 8 130 690748 349 242 13 (R) AIONA / FINNEGAN 2 REP 50199 16033 91079 157311
4 Governor and Lieutenant Governor 7 OF 1181 219 1187 97 8 130 690748 349 242 14 (F) CUNNINGHAM / SPENCE 3 FRE 295 95 875 1265
4 Governor and Lieutenant Governor 7 OF 1181 219 1187 97 8 130 690748 349 242 15 (N) POLLARD / KAMA 4 NPP 328 93 842 1263
5 State Senator, Dist 2 9 OF 267 185 1033 2 0 16 690748 25 17 17 (D) KOKUBUN, Russell S. 2 DEM 2525 2249 8658 13432
5 State Senator, Dist 2 9 OF 267 185 1033 2 0 16 690748 25 17 16 (R) HALE, Michael W. 1 REP 700 676 3005 4381
6 State Senator, Dist 4 10 OF 246 63 463 2 0 6 690748 15 13 19 (D) TSUTSUI, Shan S. 2 DEM 3426 1207 6298 10931
6 State Senator, Dist 4 10 OF 246 63 463 2 0 6 690748 15 13 18 (R) SEIBERT, Eric 1 REP 842 330 1941 3113
7 State Senator, Dist 7 11 OF 832 259 1221 4 1 9 690748 20 17 21 (D) KOUCHI, Ronald D. 2 DEM 5068 1935 7435 14438
7 State Senator, Dist 7 11 OF 832 259 1221 4 1 9 690748 20 17 20 (R) HAMMAN, David R. 1 REP 1948 733 3564 6245
8 State Senator, Dist 8 12 OF 964 109 1105 3 0 5 690748 11 8 23 (R) SLOM, Sam 2 REP 5628 754 5936 12318
8 State Senator, Dist 8 12 OF 964 109 1105 3 0 5 690748 11 8 22 (D) PRICE, Larry 1 DEM 3282 522 3907 7711
9 State Senator, Dist 9 13 OF 579 89 908 1 0 0 690748 15 9 24 (D) IHARA, Les S., Jr. 1 DEM 4650 742 5666 11058
9 State Senator, Dist 9 13 OF 579 89 908 1 0 0 690748 15 9 25 (R) SHORBA, Lisa Leialoha 2 REP 1748 309 2404 4461
10 State Senator, Dist 10 14 OF 465 87 685 3 1 1 690748 14 9 27 (D) TANIGUCHI, Brian T. 2 DEM 4332 660 5406 10398
10 State Senator, Dist 10 14 OF 465 87 685 3 1 1 690748 14 9 26 (R) MARSHALL, Eric B. 1 REP 1349 268 1822 3439
11 State Senator, Dist 13 15 OF 280 45 495 2 1 2 690748 10 6 28 (D) CHUN OAKLAND, Suzanne N.J. 1 DEM 4114 823 5387 10324
11 State Senator, Dist 13 15 OF 280 45 495 2 1 2 690748 10 6 29 (R) FRANKLIN, Judy C. 2 REP 1331 292 1736 3359
12 State Senator, Dist 14 16 OF 250 41 459 1 0 3 690748 13 7 31 (D) KIM, Donna Mercado 2 DEM 3081 523 4877 8481
12 State Senator, Dist 14 16 OF 250 41 459 1 0 3 690748 13 7 30 (R) DUDEK, Peter 1 REP 639 150 1063 1852
13 State Senator, Dist 15 17 OF 294 49 567 2 1 4 690748 10 7 33 (D) WAKAI, Glenn 2 DEM 2993 411 4349 7753
13 State Senator, Dist 15 17 OF 294 49 567 2 1 4 690748 10 7 32 (R) PASCUA, Ben 1 REP 1268 202 2294 3764
14 State Senator, Dist 19 18 OF 280 80 566 1 1 7 690748 13 9 35 (D) GABBARD, Mike 2 DEM 2937 1080 6619 10636
14 State Senator, Dist 19 18 OF 280 80 566 1 1 7 690748 13 9 34 (R) BONAR, Aaron Toa 1 REP 938 457 2272 3667
15 State Senator, Dist 20 19 OF 148 34 341 2 0 8 690748 9 7 36 (D) ESPERO, Will 1 DEM 2442 596 4825 7863
15 State Senator, Dist 20 19 OF 148 34 341 2 0 8 690748 9 7 37 (R) MONTES, Anel A. (Tito) 2 REP 1330 477 3007 4814
16 State Senator, Dist 22 20 OF 206 22 425 3 0 7 690748 10 7 39 (D) DELA CRUZ, Donovan 2 DEM 2738 278 5722 8738
16 State Senator, Dist 22 20 OF 206 22 425 3 0 7 690748 10 7 38 (R) AKI, Charles (Bo) 1 REP 1064 134 2378 3576
17 State Senator, Dist 24 21 OF 204 55 343 2 0 2 690748 13 9 41 (D) TOKUDA, Jill N. 2 DEM 3409 1694 4907 10010
17 State Senator, Dist 24 21 OF 204 55 343 2 0 2 690748 13 9 40 (R) BEAN, Tracy Nakano 1 REP 1911 1076 4153 7140
18 State Senator, Dist 25 22 OF 644 87 952 4 1 3 690748 13 9 43 (D) RYAN, Pohai 2 DEM 2725 821 5231 8777
18 State Senator, Dist 25 22 OF 644 87 952 4 1 3 690748 13 9 42 (R) ENOS, Virginia 1 REP 2321 604 4136 7061
19 State Representative, Dist 1 23 OF 109 71 373 1 0 6 690748 12 9 45 (D) NAKASHIMA, Mark M. 2 DEM 1101 849 3166 5116
19 State Representative, Dist 1 23 OF 109 71 373 1 0 6 690748 12 9 44 (R) D'ALMEIDA, Eric Paul 1 REP 293 222 1004 1519
20 State Representative, Dist 2 24 OF 125 108 287 0 1 1 690748 7 5 46 (D) CHANG, Jerry Leslie 1 DEM 1175 1151 2823 5149
20 State Representative, Dist 2 24 OF 125 108 287 0 1 1 690748 7 5 47 (R) VANNATTA, Sharon (DeMello) 2 REP 284 353 872 1509
21 State Representative, Dist 3 25 OF 141 100 280 0 0 2 690748 12 7 49 (D) TSUJI, Clifton K. (Clift) 2 DEM 1759 1531 3627 6917
21 State Representative, Dist 3 25 OF 141 100 280 0 0 2 690748 12 7 48 (R) CORTEZ-CAMERO, Tania Kehau 1 REP 283 286 777 1346
22 State Representative, Dist 4 26 OF 64 45 319 1 0 12 690748 9 6 50 (D) HANOHANO, Faye P. 1 DEM 571 519 3348 4438
22 State Representative, Dist 4 26 OF 64 45 319 1 0 12 690748 9 6 51 (R) HAPAI, Marlene (Nachbar) 2 REP 504 463 2365 3332
23 State Representative, Dist 5 27 OF 164 119 541 2 0 3 690748 15 11 53 (D) HERKES, Robert (Bob) 2 DEM 958 699 3610 5267
23 State Representative, Dist 5 27 OF 164 119 541 2 0 3 690748 15 11 52 (L) FOGEL, Fred 1 LIB 275 227 1197 1699
24 State Representative, Dist 6 28 OF 54 52 174 0 1 7 690748 7 5 54 (D) COFFMAN, Denny 1 DEM 520 949 2069 3538
24 State Representative, Dist 6 28 OF 54 52 174 0 1 7 690748 7 5 55 (R) LEAU, Rebecca N. (Becky) 2 REP 496 728 2057 3281
25 State Representative, Dist 7 29 OF 70 78 217 1 0 6 690748 8 5 56 (D) EVANS, Cindy 1 DEM 609 1086 2666 4361
25 State Representative, Dist 7 29 OF 70 78 217 1 0 6 690748 8 5 57 (R) HENDERSON, Scott W. (Hendo) 2 REP 409 611 1840 2860
26 State Representative, Dist 8 30 OF 167 62 313 0 0 0 690748 8 7 59 (D) SOUKI, Joe 2 DEM 1766 723 3197 5686
26 State Representative, Dist 8 30 OF 167 62 313 0 0 0 690748 8 7 58 (R) SCHMUCKER, Dean 1 REP 482 243 969 1694
27 State Representative, Dist 9 31 OF 245 50 413 0 1 2 690748 7 6 61 (D) KEITH-AGARAN, Gil S. Coloma 2 DEM 1540 401 2943 4884
27 State Representative, Dist 9 31 OF 245 50 413 0 1 2 690748 7 6 60 (R) HOYLMAN, Jeff 1 REP 316 120 871 1307
28 State Representative, Dist 10 32 OF 37 6 221 0 0 0 690748 7 6 63 (D) MCKELVEY, Angus L.K. 2 DEM 593 116 2482 3191
28 State Representative, Dist 10 32 OF 37 6 221 0 0 0 690748 7 6 62 (R) MADDEN, Ramon Kitaichi 1 REP 300 62 1411 1773
29 State Representative, Dist 11 33 OF 55 18 236 0 0 0 690748 5 4 65 (R) FONTAINE, George R. 2 REP 678 195 2178 3051
29 State Representative, Dist 11 33 OF 55 18 236 0 0 0 690748 5 4 64 (D) BERTRAM, Joseph III 1 DEM 582 158 2139 2879
30 State Representative, Dist 12 34 OF 127 40 376 1 0 4 690748 7 6 67 (D) YAMASHITA, Kyle 2 DEM 1712 494 4036 6242
30 State Representative, Dist 12 34 OF 127 40 376 1 0 4 690748 7 6 66 (R) RINALDI, Laurie 1 REP 581 167 1386 2134
31 State Representative, Dist 13 35 OF 115 53 385 1 0 4 690748 13 11 69 (D) CARROLL, Mele 2 DEM 908 597 3553 5058
31 State Representative, Dist 13 35 OF 115 53 385 1 0 4 690748 13 11 68 (R) AKUNA, Meiling K. 1 REP 281 185 1025 1491
32 State Representative, Dist 14 36 OF 184 78 408 0 0 0 690748 6 5 70 (D) MORITA, Hermina (Mina) 1 DEM 1653 530 2879 5062
32 State Representative, Dist 14 36 OF 184 78 408 0 0 0 690748 6 5 71 (R) WILLIAMS, Harry E. 2 REP 503 169 928 1600
33 State Representative, Dist 15 37 OF 335 145 437 0 0 0 690748 6 5 73 (D) TOKIOKA, James Kunane 2 DEM 2173 1066 2616 5855
33 State Representative, Dist 15 37 OF 335 145 437 0 0 0 690748 6 5 72 (R) FILLHART, Larry 1 REP 486 246 739 1471
34 State Representative, Dist 16 38 OF 214 48 385 1 1 2 690748 8 7 74 (D) MORIKAWA, Daynette (Dee) 1 DEM 1881 526 3043 5450
34 State Representative, Dist 16 38 OF 214 48 385 1 1 2 690748 8 7 75 (R) STERKER, Phil 2 REP 422 119 792 1333
35 State Representative, Dist 18 39 OF 360 35 386 3 1 0 690748 7 5 77 (D) HASHEM, Mark Jun 2 DEM 2138 306 2432 4876
35 State Representative, Dist 18 39 OF 360 35 386 3 1 0 690748 7 5 76 (R) BARON, Chris (Pei-Ji) 1 REP 1854 252 2307 4413
36 State Representative, Dist 20 40 OF 170 15 229 0 0 1 690748 6 4 79 (D) SAY, Calvin K.Y. 2 DEM 2453 351 3103 5907
36 State Representative, Dist 20 40 OF 170 15 229 0 0 1 690748 6 4 78 (R) ALLEN, Julia E. 1 REP 847 167 1072 2086
37 State Representative, Dist 21 41 OF 152 34 314 1 0 3 690748 9 5 81 (D) NISHIMOTO, Scott Y. 2 DEM 2136 369 2936 5441
37 State Representative, Dist 21 41 OF 152 34 314 1 0 3 690748 9 5 80 (R) LEMBECK, Jay 1 REP 555 120 880 1555
38 State Representative, Dist 22 42 OF 128 34 231 1 1 1 690748 5 3 83 (D) SAIKI, Scott K. 2 DEM 1748 312 1956 4016
38 State Representative, Dist 22 42 OF 128 34 231 1 1 1 690748 5 3 82 (R) CUADRA, Gregory (Greg) 1 REP 430 117 615 1162
39 State Representative, Dist 23 43 OF 262 63 262 3 1 4 690748 5 3 84 (D) BROWER, Tom 1 DEM 1577 446 1502 3525
39 State Representative, Dist 23 43 OF 262 63 262 3 1 4 690748 5 3 85 (R) WHITE, Thomas E. 2 REP 793 216 838 1847
40 State Representative, Dist 24 44 OF 342 47 466 0 0 1 690748 5 4 86 (D) CHOY, Isaac W. 1 DEM 2723 408 3414 6545
40 State Representative, Dist 24 44 OF 342 47 466 0 0 1 690748 5 4 87 (R) THOMSON, Zach 2 REP 750 141 1005 1896
41 State Representative, Dist 25 45 OF 242 60 280 0 0 2 690748 9 5 88 (D) BELATTI, Della Au 1 DEM 1858 433 2011 4302
41 State Representative, Dist 25 45 OF 242 60 280 0 0 2 690748 9 5 89 (R) SABEY, Isaiah Kauka 2 REP 924 231 1196 2351
42 State Representative, Dist 26 46 OF 230 57 290 0 2 2 690748 6 4 91 (D) LUKE, Sylvia 2 DEM 2452 604 3133 6189
42 State Representative, Dist 26 46 OF 230 57 290 0 2 2 690748 6 4 90 (R) KATZ, Norm 1 REP 831 216 1085 2132
43 State Representative, Dist 27 47 OF 176 24 304 3 1 5 690748 5 3 92 (R) CHING, Corinne Wei Lan 1 REP 1872 367 2407 4646
43 State Representative, Dist 27 47 OF 176 24 304 3 1 5 690748 5 3 93 (D) VASQUEZ, Lynn 2 DEM 782 137 1026 1945
44 State Representative, Dist 28 48 OF 128 40 119 0 1 1 690748 9 5 95 (D) RHOADS, Karl 2 DEM 1312 365 1526 3203
44 State Representative, Dist 28 48 OF 128 40 119 0 1 1 690748 9 5 94 (R) CHANG, David S.Y. 1 REP 1114 294 1228 2636
45 State Representative, Dist 29 49 OF 67 9 146 0 0 3 690748 4 2 97 (D) MANAHAN, Joey 2 DEM 1131 203 1874 3208
45 State Representative, Dist 29 49 OF 67 9 146 0 0 3 690748 4 2 96 (R) HARDING, Ken 1 REP 275 61 425 761
46 State Representative, Dist 30 50 OF 82 24 137 0 0 0 690748 7 4 99 (D) MIZUNO, John 2 DEM 1233 227 2485 3945
46 State Representative, Dist 30 50 OF 82 24 137 0 0 0 690748 7 4 98 (R) KAAPU, Carole Kauhiwai 1 REP 371 84 612 1067
47 State Representative, Dist 31 51 OF 68 18 142 0 0 3 690748 5 3 100 (D) ICHIYAMA, Linda E. 1 DEM 2023 259 2597 4879
47 State Representative, Dist 31 51 OF 68 18 142 0 0 3 690748 5 3 101 (R) SHIMIZU, Garner Musashi 2 REP 921 153 1345 2419
48 State Representative, Dist 32 52 OF 181 23 266 2 0 2 690748 7 5 102 (R) JOHANSON, Aaron Ling 1 REP 1127 154 2023 3304
48 State Representative, Dist 32 52 OF 181 23 266 2 0 2 690748 7 5 103 (D) SHARSH, ?Lei 2 DEM 879 142 1532 2553
49 State Representative, Dist 33 53 OF 97 11 159 3 0 0 690748 5 3 105 (D) OSHIRO, Blake K. 2 DEM 1718 233 2137 4088
49 State Representative, Dist 33 53 OF 97 11 159 3 0 0 690748 5 3 104 (R) KONG, Sam 1 REP 1401 216 1801 3418
50 State Representative, Dist 34 54 OF 246 28 231 0 0 0 690748 5 4 106 (D) TAKAI, K. Mark 1 DEM 2972 314 2927 6213
50 State Representative, Dist 34 54 OF 246 28 231 0 0 0 690748 5 4 107 (R) WONG, William G.K. 2 REP 612 77 764 1453
51 State Representative, Dist 35 55 OF 73 11 129 0 0 1 690748 6 4 108 (D) AQUINO, Henry J.C. ? 1 DEM 1441 198 3164 4803
51 State Representative, Dist 35 55 OF 73 11 129 0 0 1 690748 6 4 109 (R) YAGO, Reginald A. 2 REP 273 74 601 948
52 State Representative, Dist 36 56 OF 127 10 194 0 0 3 690748 6 4 111 (D) TAKUMI, Roy M. 2 DEM 2113 222 2471 4806
52 State Representative, Dist 36 56 OF 127 10 194 0 0 3 690748 6 4 110 (R) SHIRAKI, Reed S. 1 REP 1069 161 1668 2898
53 State Representative, Dist 37 57 OF 116 13 196 2 0 3 690748 6 4 113 (D) YAMANE, Ryan I. 2 DEM 2058 267 2767 5092
53 State Representative, Dist 37 57 OF 116 13 196 2 0 3 690748 6 4 112 (R) FUKUMOTO, Beth 1 REP 1234 208 2423 3865
54 State Representative, Dist 38 58 OF 153 9 230 2 0 2 690748 7 4 115 (D) LEE, Marilyn B. 2 DEM 2325 274 2979 5578
54 State Representative, Dist 38 58 OF 153 9 230 2 0 2 690748 7 4 114 (R) KAWAKAMI, Shaun Hayato 1 REP 1957 277 3328 5562
55 State Representative, Dist 39 59 OF 109 11 155 1 0 1 690748 6 4 117 (D) OSHIRO, Marcus R. 2 DEM 1231 134 2404 3769
55 State Representative, Dist 39 59 OF 109 11 155 1 0 1 690748 6 4 116 (R) CURTIS, Sam 1 REP 553 86 1346 1985
56 State Representative, Dist 40 60 OF 82 28 208 0 0 1 690748 6 5 119 (D) HAR, Sharon E. 2 DEM 1626 801 3743 6170
56 State Representative, Dist 40 60 OF 82 28 208 0 0 1 690748 6 5 118 (R) CAPELOUTO, Marissa 1 REP 640 418 1936 2994
57 State Representative, Dist 41 61 OF 127 14 187 1 0 2 690748 7 4 120 (D) CULLEN, Ty 1 DEM 1401 254 2855 4510
57 State Representative, Dist 41 61 OF 127 14 187 1 0 2 690748 7 4 121 (R) WONG, Carl J. 2 REP 506 111 1022 1639
58 State Representative, Dist 42 62 OF 47 6 118 1 0 3 690748 6 4 123 (D) CABANILLA ARAKAWA, Rida 2 DEM 1000 179 1611 2790
58 State Representative, Dist 42 62 OF 47 6 118 1 0 3 690748 6 4 122 (R) BERG, Tom 1 REP 710 169 1298 2177
59 State Representative, Dist 43 63 OF 51 13 134 0 0 3 690748 5 4 125 (R) PINE, Kymberly (Marcos) 2 REP 1511 508 3785 5804
59 State Representative, Dist 43 63 OF 51 13 134 0 0 3 690748 5 4 124 (D) BRADSHAW, Jason W. 1 DEM 837 257 1696 2790
60 State Representative, Dist 45 64 OF 17 2 62 0 0 1 690748 3 2 127 (D) SHIMABUKURO, Maile S.L. 2 DEM 707 195 1758 2660
60 State Representative, Dist 45 64 OF 17 2 62 0 0 1 690748 3 2 126 (R) MEYERS, Jadeen 1 REP 521 134 1257 1912
61 State Representative, Dist 46 65 OF 81 8 193 1 0 10 690748 6 4 128 (R) RIVIERE, Gil 1 REP 644 153 2312 3109
61 State Representative, Dist 46 65 OF 81 8 193 1 0 10 690748 6 4 129 (D) SAGAYSAY, Larry 2 DEM 565 56 1711 2332
62 State Representative, Dist 47 66 OF 90 28 141 1 0 1 690748 6 4 131 (D) WOOLEY, Jessica E. 2 DEM 1367 884 2510 4761
62 State Representative, Dist 47 66 OF 90 28 141 1 0 1 690748 6 4 130 (R) FALE, Richard 1 REP 700 561 2007 3268
63 State Representative, Dist 48 67 OF 115 57 225 0 0 1 690748 6 4 132 (D) ITO, Ken 1 DEM 2153 1382 3104 6639
63 State Representative, Dist 48 67 OF 115 57 225 0 0 1 690748 6 4 133 (R) RADKE, Mo 2 REP 719 439 1195 2353
64 State Representative, Dist 49 68 OF 187 51 274 1 0 2 690748 6 4 135 (D) CHONG, Pono 2 DEM 1709 937 2808 5454
64 State Representative, Dist 49 68 OF 187 51 274 1 0 2 690748 6 4 134 (R) AIONA, Joseph 1 REP 897 532 1772 3201
65 State Representative, Dist 51 69 OF 70 8 177 0 0 3 690748 7 5 136 (D) LEE, ?Chris 1 DEM 1614 548 3464 5626
65 State Representative, Dist 51 69 OF 70 8 177 0 0 3 690748 7 5 137 (R) WOLFGRAMM, Maka 2 REP 501 236 1313 2050
66 Special 5th Departmental School District Seat Vacancy (Leeward) 71 OF 45825 8692 54801 38 1 41 690748 212 137 139 KURSHALS, Maralyn A. 2 22411 5329 33369 61109
66 Special 5th Departmental School District Seat Vacancy (Leeward) 71 OF 45825 8692 54801 38 1 41 690748 212 137 140 O'NEAL, David 3 15458 4896 34597 54951
66 Special 5th Departmental School District Seat Vacancy (Leeward) 71 OF 45825 8692 54801 38 1 41 690748 212 137 138 AROLA, James 1 12034 3338 25357 40729
67 6th Departmental School District Seat (Windward) 72 OF 34115 6003 46194 16 1 23 690748 212 137 142 PENEBACKER, John R. 2 43027 11390 66073 120490
67 6th Departmental School District Seat (Windward) 72 OF 34115 6003 46194 16 1 23 690748 212 137 141 FREITAS, Valzey 1 18608 4862 35875 59345
68 No Departmental School District Residency 73 OF 102755 20631 167647 42 4 50 690748 212 137 148 YOUNG, Pamela 6 39802 10413 67274 117489
68 No Departmental School District Residency 73 OF 102755 20631 167647 42 4 50 690748 212 137 144 IWAMOTO, Kim Coco 2 38987 9612 54396 102995
68 No Departmental School District Residency 73 OF 102755 20631 167647 42 4 50 690748 212 137 147 YEE, Randall M.L. 5 29136 7159 40387 76682
68 No Departmental School District Residency 73 OF 102755 20631 167647 42 4 50 690748 212 137 146 YAMANE, Brian Y. 4 25722 7006 42078 74806
68 No Departmental School District Residency 73 OF 102755 20631 167647 42 4 50 690748 212 137 143 BAILEY, Melanie 1 24240 6632 42180 73052
68 No Departmental School District Residency 73 OF 102755 20631 167647 42 4 50 690748 212 137 145 TAKABAYASHI, Roger Kiyoshi 3 26530 5303 30383 62216
69 2nd Departmental School Board Seat (Maui) 75 OF 10669 5402 21560 7 2 24 690748 137 105 150 ROCHA-WILSON, Leona 2 11490 7222 31114 49826
69 2nd Departmental School Board Seat (Maui) 75 OF 10669 5402 21560 7 2 24 690748 137 105 149 HART, R. Ray 1 6142 4242 21324 31708
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 151 AKANA, Rowena M. N. 1 44796 15431 88189 148416
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 159 WAIHEE, John IV 9 39032 13601 75461 128094
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 158 STENDER, Oswald (Oz) 8 41004 12656 53061 106721
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 153 KALIMA, Leona Mapuana 3 19615 7115 41657 68387
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 155 MAKEKAU, Kealii J. 5 14046 5491 31740 51277
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 156 MEYERS, William (Willy) 6 11354 4623 30271 46248
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 152 HOPKINS, Kama 2 12558 4592 25469 42619
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 154 LEWIS, Joseph Kuhio 4 10838 4083 24556 39477
70 "At Large" Trustee 78 OF 172813 47722 285200 52 8 99 690748 349 242 157 ODEGAARD, Michael Malulani 7 6010 2034 10660 18704
71 Oahu Resident Trustee 79 OF 50859 14345 83870 72 10 91 690748 349 242 160 APO, Peter 1 27571 10403 63333 101307
71 Oahu Resident Trustee 79 OF 50859 14345 83870 72 10 91 690748 349 242 162 HEEN, Walter Meheula 3 30912 8583 37304 76799
71 Oahu Resident Trustee 79 OF 50859 14345 83870 72 10 91 690748 349 242 161 BURKE, Jackie Kahookele 2 14660 5783 37589 58032
72 Maui Resident Trustee 80 OF 76963 20398 124785 0 0 0 690748 349 242 163 MOSSMAN, Boyd Poki 1 47111 18726 97402 163239
73 Councilmember, Dist 5 83 OF 27 18 126 0 1 6 690748 5 4 164 BLAS, Fred 1 565 478 2635 3678
73 Councilmember, Dist 5 83 OF 27 18 126 0 1 6 690748 5 4 165 NAEOLE-BEASON, Emily I. 2 292 243 1998 2533
74 Councilmember, Dist 6 84 OF 40 25 110 0 0 1 690748 12 9 167 SMART, Brittany 2 558 456 2675 3689
74 Councilmember, Dist 6 84 OF 40 25 110 0 0 1 690748 12 9 166 ENRIQUES, Guy 1 421 385 1530 2336
75 Mayor, County of Maui 86 OF 363 88 692 10 0 5 690748 45 39 168 ARAKAWA, Alan M. 1 5347 1979 16869 24195
75 Mayor, County of Maui 86 OF 363 88 692 10 0 5 690748 45 39 169 TAVARES, Charmaine 2 4742 1624 10578 16944
76 Councilmember (East Maui) 88 OF 1789 522 5528 3 0 8 690748 45 39 170 CARROLL, Robert (Bob) 1 4161 1613 11479 17253
76 Councilmember (East Maui) 88 OF 1789 522 5528 3 0 8 690748 45 39 171 MEDEIROS, Bill (Kauakea) 2 4509 1556 11129 17194
77 Councilmember (West Maui) 89 OF 1380 391 4073 4 0 5 690748 45 39 172 COCHRAN, Elle 1 4582 1695 13988 20265
77 Councilmember (West Maui) 89 OF 1380 391 4073 4 0 5 690748 45 39 173 FUKUYAMA, Alan 2 4496 1605 10078 16179
78 Councilmember (Wailuku-Waihee-Waikapu) 90 OF 1280 377 3958 5 0 6 690748 45 39 175 VICTORINO, Michael (Mike) 2 6841 2415 17631 26887
78 Councilmember (Wailuku-Waihee-Waikapu) 90 OF 1280 377 3958 5 0 6 690748 45 39 174 GAPERO, Lisa 1 2336 899 6549 9784
79 Councilmember (Kahului) 91 OF 3418 1014 9556 0 0 0 690748 45 39 176 PONTANILLA, Joe 1 7044 2677 18588 28309
80 Councilmember (South Maui) 92 OF 894 291 2957 7 0 18 690748 45 39 177 COUCH, Don 1 5616 1873 13335 20824
80 Councilmember (South Maui) 92 OF 894 291 2957 7 0 18 690748 45 39 178 NISHIKI, Wayne K. 2 3945 1527 11834 17306
81 Councilmember (Makawao-Haiku-Paia) 93 OF 1042 302 3215 7 0 22 690748 45 39 180 WHITE, Mike 2 6008 2083 13610 21701
81 Councilmember (Makawao-Haiku-Paia) 93 OF 1042 302 3215 7 0 22 690748 45 39 179 NISHIKI, Kai 1 3405 1306 11297 16008
82 Councilmember (Upcountry) 94 OF 3261 1060 8909 0 0 0 690748 45 39 181 BAISA, Gladys Coelho 1 7201 2631 19235 29067
83 Councilmember (Lanai) 95 OF 1802 606 6679 5 0 7 690748 45 39 182 HOKAMA, Riki 1 5734 2028 13080 20842
83 Councilmember (Lanai) 95 OF 1802 606 6679 5 0 7 690748 45 39 183 MANO, Matthew J. K. (Matt) 2 2921 1057 8378 12356
84 Councilmember (Molokai) 96 OF 3504 1080 9430 0 0 0 690748 45 39 184 MATEO, Danny A. 1 6958 2611 18714 28283
85 Councilmember, Dist II 97 OF 1150 242 2548 2 0 4 690748 20 13 185 MARTIN, Ernie Yorihiko 1 3190 940 6926 11056
85 Councilmember, Dist II 97 OF 1150 242 2548 2 0 4 690748 20 13 186 WHITE, John D 2 3317 936 6756 11009
86 Councilmember, Dist IV 98 OF 1618 180 1814 5 1 0 690748 27 17 187 CHANG, Stanley 1 8367 1278 9281 18926
86 Councilmember, Dist IV 98 OF 1618 180 1814 5 1 0 690748 27 17 188 TURBIN, Rich 2 7121 1178 8514 16813
87 Councilmember, Dist VI 99 OF 1966 405 2279 2 0 5 690748 24 15 190 TAMAYO, Tulsi Gabbard 2 5495 1433 8132 15060
87 Councilmember, Dist VI 99 OF 1966 405 2279 2 0 5 690748 24 15 189 MOEPONO, Sesnita Der-Ling 1 4593 1172 4917 10682
88 Mayor, County of Kauai 101 OF 612 177 792 2 1 3 690748 20 17 191 CARVALHO, Bernard P., Jr. 1 6116 2332 9296 17744
88 Mayor, County of Kauai 101 OF 612 177 792 2 1 3 690748 20 17 192 LaBEDZ, Diana 2 1122 418 2138 3678
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 201 KAWAKAMI, Derek S.K. 9 5102 1881 6951 13934
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 203 NAKAMURA, Nadine K. 11 5036 1843 6367 13246
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 206 YUKIMURA, JoAnn A. 14 4038 1503 6892 12433
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 199 FURFARO, Jay 7 4062 1557 6117 11736
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 195 BYNUM, Tim 3 3642 1365 6541 11548
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 204 RAPOZO, Mel 12 3613 1401 5430 10444
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 196 CHANG, Dickie (Walaau) 4 3191 1233 5418 9842
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 202 KUALII, KipuKai Les P. 10 2480 1034 4475 7989
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 193 ASING, Bill (Kaipo) 1 2573 987 4239 7799
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 197 DALIGDIG, Ted III 5 1963 779 3462 6204
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 200 JUSTUS, Ed 8 1465 623 3269 5357
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 205 TAYLOR, Ken 13 782 277 1398 2457
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 194 BIEBER, Rolf H. 2 758 257 1261 2276
89 Councilmember, County of Kauai 102 OF 15693 5574 22817 7 0 6 690748 20 17 198 FOWLER, Dennis M. 6 517 182 924 1623
90 CON AMEND: Relating to the Board of Education 105 MS 6345 1404 10204 77 20 127 690748 349 242 208 YES 1 75357 24234 121799 221390
90 CON AMEND: Relating to the Board of Education 105 MS 6345 1404 10204 77 20 127 690748 349 242 207 NO 2 42295 13466 90057 145818
91 CON AMEND: Relating to the Tax Rebate Requirement 107 MS 12005 2762 20240 79 15 155 690748 349 242 210 YES 1 71226 24104 132127 227457
91 CON AMEND: Relating to the Tax Rebate Requirement 107 MS 12005 2762 20240 79 15 155 690748 349 242 209 NO 2 40764 12243 69665 122672
92 HAWAII: Establishment of an Open Space Fund 109 MS 1497 1141 3891 8 3 22 690748 70 48 212 YES 1 5030 5960 20008 30998
92 HAWAII: Establishment of an Open Space Fund 109 MS 1497 1141 3891 8 3 22 690748 70 48 211 NO 2 3434 3145 9728 16307
93 HAWAII: Recall 111 MS 1809 1372 5208 6 6 20 690748 70 48 214 YES 1 4326 5219 15369 24914
93 HAWAII: Recall 111 MS 1809 1372 5208 6 6 20 690748 70 48 213 NO 2 3828 3652 13052 20532
94 HAWAII: Charter Amendment Petitions 112 MS 1833 1548 5718 4 4 28 690748 70 48 216 YES 1 4126 5190 14783 24099
94 HAWAII: Charter Amendment Petitions 112 MS 1833 1548 5718 4 4 28 690748 70 48 215 NO 2 4006 3507 13120 20633
95 HAWAII: Civil Service Laws 114 MS 2507 2117 7696 2 3 22 690748 70 48 218 YES 1 3677 4302 12748 20727
95 HAWAII: Civil Service Laws 114 MS 2507 2117 7696 2 3 22 690748 70 48 217 NO 2 3783 3827 13183 20793
96 HAWAII: Reapportionment Commission 116 MS 2095 1853 6683 2 4 12 690748 70 48 220 YES 1 5893 6176 18911 30980
96 HAWAII: Reapportionment Commission 116 MS 2095 1853 6683 2 4 12 690748 70 48 219 NO 2 1979 2216 8043 12238
97 HAWAII: Preservation of Natural and Cultural Resources 117 MS 1499 1143 3917 2 4 23 690748 70 48 222 YES 1 6157 7064 23439 36660
97 HAWAII: Preservation of Natural and Cultural Resources 117 MS 1499 1143 3917 2 4 23 690748 70 48 221 NO 2 2311 2038 6270 10619
98 HAWAII: Grammar, Spelling, and Formatting of the Charter 119 MS 1500 1233 4415 3 5 28 690748 70 48 224 YES 1 7091 7578 23975 38644
98 HAWAII: Grammar, Spelling, and Formatting of the Charter 119 MS 1500 1233 4415 3 5 28 690748 70 48 223 NO 2 1375 1433 5231 8039
99 HAWAII: Department of Water Supply 121 MS 1720 1350 5164 2 7 30 690748 70 48 226 YES 1 5578 6251 19399 31228
99 HAWAII: Department of Water Supply 121 MS 1720 1350 5164 2 7 30 690748 70 48 225 NO 2 2669 2641 9056 14366
100 HAWAII: Data Systems 123 MS 1857 1687 5946 4 4 26 690748 70 48 228 YES 1 5752 6049 18587 30388
100 HAWAII: Data Systems 123 MS 1857 1687 5946 4 4 26 690748 70 48 227 NO 2 2356 2509 9090 13955
101 HAWAII: Fire Department 125 MS 1738 1444 5203 3 7 33 690748 70 48 230 YES 1 6198 6589 21332 34119
101 HAWAII: Fire Department 125 MS 1738 1444 5203 3 7 33 690748 70 48 229 NO 2 2030 2209 7081 11320
102 HAWAII: Duties of the Director of Environmental Management 126 MS 1517 1215 4356 11 2 52 690748 70 48 232 YES 1 5378 5971 18105 29454
102 HAWAII: Duties of the Director of Environmental Management 126 MS 1517 1215 4356 11 2 52 690748 70 48 231 NO 2 3063 3061 11136 17260
103 HAWAII: Qualifications of the Director of Environmental Management 128 MS 1367 1189 4204 5 5 47 690748 70 48 234 YES 1 6912 6946 22755 36613
103 HAWAII: Qualifications of the Director of Environmental Management 128 MS 1367 1189 4204 5 5 47 690748 70 48 233 NO 2 1685 2109 6643 10437
104 HAWAII: Duties of the Prosecuting Attorney 130 MS 1424 1267 4646 5 6 32 690748 70 48 236 YES 1 6528 6842 20864 34234
104 HAWAII: Duties of the Prosecuting Attorney 130 MS 1424 1267 4646 5 6 32 690748 70 48 235 NO 2 2012 2134 8107 12253
105 HAWAII: Terms of Merit Appeals Board Membership 132 MS 1724 1604 5997 2 6 50 690748 70 48 238 YES 1 6682 6806 20258 33746
105 HAWAII: Terms of Merit Appeals Board Membership 132 MS 1724 1604 5997 2 6 50 690748 70 48 237 NO 2 1561 1833 7344 10738
106 HAWAII: Removal of Directors Serving under Commissions 133 MS 1609 1461 5395 3 4 33 690748 70 48 240 YES 1 6847 7076 21882 35805
106 HAWAII: Removal of Directors Serving under Commissions 133 MS 1609 1461 5395 3 4 33 690748 70 48 239 NO 2 1510 1708 6339 9557
107 HAWAII: Appointment of Charter Commission Members 135 MS 1987 1847 6668 3 2 38 690748 70 48 242 YES 1 5888 6420 18905 31213
107 HAWAII: Appointment of Charter Commission Members 135 MS 1987 1847 6668 3 2 38 690748 70 48 241 NO 2 2091 1980 8038 12109
108 HAWAII: Membership on Boards and Commissions 137 MS 1697 1608 5677 3 9 54 690748 70 48 244 YES 1 4373 5058 15413 24844
108 HAWAII: Membership on Boards and Commissions 137 MS 1697 1608 5677 3 9 54 690748 70 48 243 NO 2 3896 3574 12505 19975
109 HAWAII: Electronic Posting of Special Meeting Notices 139 MS 1442 1298 4507 4 2 39 690748 70 48 246 YES 1 7091 7445 24173 38709
109 HAWAII: Electronic Posting of Special Meeting Notices 139 MS 1442 1298 4507 4 2 39 690748 70 48 245 NO 2 1432 1504 4930 7866
110 HAWAII: Publication of Notices via an Electronic Medium 140 MS 1661 1324 4993 3 4 31 690748 70 48 248 YES 1 6453 7183 22212 35848
110 HAWAII: Publication of Notices via an Electronic Medium 140 MS 1661 1324 4993 3 4 31 690748 70 48 247 NO 2 1852 1738 6413 10003
111 MAUI: Affordable Housing Fund 142 MS 926 277 2349 7 2 13 690748 45 39 250 YES 1 5280 2145 17468 24893
111 MAUI: Affordable Housing Fund 142 MS 926 277 2349 7 2 13 690748 45 39 249 NO 2 4249 1267 8314 13830
112 MAUI: Financial Disclosure Statements of Candidates for Elective County Office 144 MS 842 265 2490 11 0 13 690748 45 39 252 YES 1 8519 3019 22415 33953
112 MAUI: Financial Disclosure Statements of Candidates for Elective County Office 144 MS 842 265 2490 11 0 13 690748 45 39 251 NO 2 1090 407 3226 4723
113 MAUI: Budget Ordinance and Capital Program Ordinance 146 MS 1558 513 4258 6 2 10 690748 45 39 254 YES 1 5495 2096 15807 23398
113 MAUI: Budget Ordinance and Capital Program Ordinance 146 MS 1558 513 4258 6 2 10 690748 45 39 253 NO 2 3403 1080 8069 12552
114 HONOLULU: Creation of a Public Transit Authority 148 MS 7986 1080 10282 40 4 59 690748 212 137 256 YES 1 60056 14642 94639 169337
114 HONOLULU: Creation of a Public Transit Authority 148 MS 7986 1080 10282 40 4 59 690748 212 137 255 NO 2 27684 6530 43185 77399
115 HONOLULU: Conflicts of Interests of City Officers 150 MS 10494 1570 16623 30 4 74 690748 212 137 258 YES 1 69749 16243 96640 182632
115 HONOLULU: Conflicts of Interests of City Officers 150 MS 10494 1570 16623 30 4 74 690748 212 137 257 NO 2 15493 4439 34828 54760
116 HONOLULU: Liquor Commission and Civil Service Exemptions 152 MS 11138 1583 15646 27 4 87 690748 212 137 260 YES 1 66379 16466 102660 185505
116 HONOLULU: Liquor Commission and Civil Service Exemptions 152 MS 11138 1583 15646 27 4 87 690748 212 137 259 NO 2 18222 4203 29772 52197
117 HONOLULU: Ordinances by Initiative Power and other Conforming Amendments 153 MS 17114 2708 24210 25 8 45 690748 212 137 262 YES 1 65048 15739 95946 176733
117 HONOLULU: Ordinances by Initiative Power and other Conforming Amendments 153 MS 17114 2708 24210 25 8 45 690748 212 137 261 NO 2 13579 3801 27964 45344
118 HONOLULU: Disposal of Personal Property and other Conforming Amendments 155 MS 16381 2511 22118 21 3 55 690748 212 137 264 YES 1 65639 15799 98971 180409
118 HONOLULU: Disposal of Personal Property and other Conforming Amendments 155 MS 16381 2511 22118 21 3 55 690748 212 137 263 NO 2 13725 3943 27021 44689
119 HONOLULU: Creation of an Office of Housing 157 MS 11845 1796 16721 26 5 72 690748 212 137 266 YES 1 47236 11738 72693 131667
119 HONOLULU: Creation of an Office of Housing 157 MS 11845 1796 16721 26 5 72 690748 212 137 265 NO 2 36659 8717 58679 104055
120 KAUAI: County Council Terms 159 MS 410 158 943 1 6 9 690748 20 17 268 YES 1 2810 1126 4572 8508
120 KAUAI: County Council Terms 159 MS 410 158 943 1 6 9 690748 20 17 267 NO 2 4631 1638 6705 12974
121 KAUAI: Qualifications for Managing Director 161 MS 533 226 1303 2 0 5 690748 20 17 270 YES 1 6095 2185 9274 17554
121 KAUAI: Qualifications for Managing Director 161 MS 533 226 1303 2 0 5 690748 20 17 269 NO 2 1222 517 1647 3386
122 KAUAI: Financial Procedures 163 MS 867 381 2212 0 1 7 690748 20 17 272 YES 1 5982 2057 7767 15806
122 KAUAI: Financial Procedures 163 MS 867 381 2212 0 1 7 690748 20 17 271 NO 2 1003 489 2243 3735
123 KAUAI: Bidding Requirements for County Contracts 165 MS 796 343 1894 3 0 9 690748 20 17 274 YES 1 3872 1436 5159 10467
123 KAUAI: Bidding Requirements for County Contracts 165 MS 796 343 1894 3 0 9 690748 20 17 273 NO 2 3181 1149 5167 9497
124 KAUAI: Post Employment Requirements for County Contracts 166 MS 835 336 1822 4 3 12 690748 20 17 276 YES 1 5323 1816 7288 14427
124 KAUAI: Post Employment Requirements for County Contracts 166 MS 835 336 1822 4 3 12 690748 20 17 275 NO 2 1690 773 3107 5570
125 KAUAI: Disclosures 168 MS 768 323 1736 1 1 4 690748 20 17 278 YES 1 6342 2300 9101 17743
125 KAUAI: Disclosures 168 MS 768 323 1736 1 1 4 690748 20 17 277 NO 2 741 304 1388 2433
126 KAUAI: Time Extension for Ethics Advisory Opinions 170 MS 899 389 2065 3 1 4 690748 20 17 280 YES 1 4269 1409 5385 11063
126 KAUAI: Time Extension for Ethics Advisory Opinions 170 MS 899 389 2065 3 1 4 690748 20 17 279 NO 2 2681 1129 4775 8585
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle {
fill: rgb(31, 119, 180);
fill-opacity: .25;
stroke: rgb(31, 119, 180);
stroke-width: 1px;
}
.leaf circle {
fill: #bcbddc;
fill-opacity: 1;
}
text {
font: 10px sans-serif;
}
.yes circle {
fill: #f0f0f0;
}
.no circle {
fill: #252525;
}
.republican circle {
fill: #b2182b;
}
.democrat circle {
fill: #2166ac;
}
.green circle {
fill: #1a9850;
}
.libertarian circle {
fill: #fee08b;
}
.independent circle {
fill: #878787;
}
pre {
background-color: #fee8c8;
padding: 5px;
}
</style>
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<script>
/* https://github.com/d3/d3-hierarchy Copyright 2015 Mike Bostock */
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.hierarchy={})}(this,function(n){"use strict";function r(n){var r=[];return n.forEach(function(n){n.children&&n.children.forEach(function(e){r.push({source:n,target:e})})}),r}function e(n,e){return n.sort=function(){var r=e.sort.apply(e,arguments);return r===e?n:r},n.children=function(){var r=e.children.apply(e,arguments);return r===e?n:r},n.value=function(){var r=e.value.apply(e,arguments);return r===e?n:r},n.nodes=n,n.links=r,n}function t(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function u(n,r){var e=n.x+r[3],t=n.y+r[0],u=n.dx-r[1]-r[3],a=n.dy-r[0]-r[2];return 0>u&&(e+=u/2,u=0),0>a&&(t+=a/2,a=0),{x:e,y:t,dx:u,dy:a}}function a(n,r){for(var e=[n],t=[];null!=(n=e.pop());)if(t.push(n),(a=n.children)&&(u=a.length))for(var u,a,l=-1;++l<u;)e.push(a[l]);for(;null!=(n=t.pop());)r(n)}function l(n,r){for(var e=[n];null!=(n=e.pop());)if(r(n),(u=n.children)&&(t=u.length))for(var t,u;--t>=0;)e.push(u[t])}function i(n){return n.value}function c(n){return n.children}function o(n,r){return r.value-n.value}function f(){function n(r){var l,i=[r],c=[];for(r.parent=null,r.depth=0;null!=(l=i.pop());)if(c.push(l),(f=t.call(n,l,l.depth))&&(o=f.length)){for(var o,f,h;--o>=0;)i.push(h=f[o]),h.parent=l,h.depth=l.depth+1;u&&(l.value=0),l.children=f}else u&&(l.value=+u.call(n,l,l.depth)||0),delete l.children;return a(r,function(n){var r,t;e&&(r=n.children)&&r.sort(e),u&&(t=n.parent)&&(t.value+=n.value)}),c}var e=o,t=c,u=i;return n.nodes=n,n.links=r,n.sort=function(r){return arguments.length?(e=r,n):e},n.children=function(r){return arguments.length?(t=r,n):t},n.value=function(r){return arguments.length?(u=r,n):u},n.revalue=function(r){return u&&(l(r,function(n){n.children&&(n.value=0)}),a(r,function(r){var e;r.children||(r.value=+u.call(n,r,r.depth)||0),(e=r.parent)&&(e.value+=r.value)})),r},n}function h(){function n(n){var r=x.call(h,n,n.depth);return null==r?t(n):u(n,"number"==typeof r?[r,r,r,r]:r)}function r(n){return u(n,x)}function a(n,r){for(var e,t,u=-1,a=n.length;++u<a;)t=(e=n[u]).value*(0>r?0:r),e.area=isNaN(t)||0>=t?0:t}function l(n){var r=n.children;if(r&&r.length){var e,t,u,i=y(n),f=[],h=r.slice(),d=1/0,p="slice"===m?i.dx:"dice"===m?i.dy:"slice-dice"===m?1&n.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(a(h,i.dx*i.dy/n.value),f.area=0;(u=h.length)>0;)f.push(e=h[u-1]),f.area+=e.area,"squarify"!==m||(t=c(f,p))<=d?(h.pop(),d=t):(f.area-=f.pop().area,o(f,p,i,!1),p=Math.min(i.dx,i.dy),f.length=f.area=0,d=1/0);f.length&&(o(f,p,i,!0),f.length=f.area=0),r.forEach(l)}}function i(n){var r=n.children;if(r&&r.length){var e,t=y(n),u=r.slice(),l=[];for(a(u,t.dx*t.dy/n.value),l.area=0;e=u.pop();)l.push(e),l.area+=e.area,null!=e.z&&(o(l,e.z?t.dx:t.dy,t,!u.length),l.length=l.area=0);r.forEach(i)}}function c(n,r){for(var e,t=n.area,u=0,a=1/0,l=-1,i=n.length;++l<i;)(e=n[l].area)&&(a>e&&(a=e),e>u&&(u=e));return t*=t,r*=r,t?Math.max(r*u*_/t,t/(r*a*_)):1/0}function o(n,r,e,t){var u,a=-1,l=n.length,i=e.x,c=e.y,o=r?v(n.area/r):0;if(r==e.dx){for((t||o>e.dy)&&(o=e.dy);++a<l;)u=n[a],u.x=i,u.y=c,u.dy=o,i+=u.dx=Math.min(e.x+e.dx-i,o?v(u.area/o):0);u.z=!0,u.dx+=e.x+e.dx-i,e.y+=o,e.dy-=o}else{for((t||o>e.dx)&&(o=e.dx);++a<l;)u=n[a],u.x=i,u.y=c,u.dx=o,c+=u.dy=Math.min(e.y+e.dy-c,o?v(u.area/o):0);u.z=!1,u.dy+=e.y+e.dy-c,e.x+=o,e.dx-=o}}function h(n){var r=d||p(n),e=r[0];return e.x=0,e.y=0,e.dx=s[0],e.dy=s[1],d&&p.revalue(e),a([e],e.dx*e.dy/e.value),(d?i:l)(e),g&&(d=r),r}var d,p=f(),v=Number,s=[1,1],x=null,y=t,g=!1,m="squarify",_=V;return h.size=function(n){return arguments.length?(s=[+n[0],+n[1]],h):s.slice()},h.padding=function(e){if(!arguments.length)return Array.isArray(x)?x.slice():x;var u;return y=null==e?(x=null,t):"function"==(u=typeof e)?(x=e,n):"number"===u?(x=[e,e,e,e],r):(x=[+e[0],+e[1],+e[2],+e[3]],r),h},h.round=function(n){return arguments.length?(v=n?Math.round:Number,h):v!==Number},h.sticky=function(n){return arguments.length?(g=!!n,d=null,h):g},h.ratio=function(n){return arguments.length?(_=+n,h):_},h.mode=function(n){return arguments.length?(m=U.hasOwnProperty(n)?n+"":"squarify",h):m},e(h,p)}function d(n){var r=n.children;return r.length?r[0]:n.t}function p(n){var r,e=n.children;return(r=e.length)?e[r-1]:n.t}function v(n,r,e){return n.a.parent===r.parent?n.a:e}function s(n,r,e){var t=e/(r.i-n.i);r.c-=t,r.s+=e,n.c+=t,r.z+=e,r.m+=e}function x(n){for(var r,e=0,t=0,u=n.children,a=u.length;--a>=0;)r=u[a],r.z+=e,r.m+=e,e+=r.s+(t+=r.c)}function y(n,r){return n.parent===r.parent?1:2}function g(){function n(n,e){var i=o.call(this,n,e),f=i[0],d=r(f);if(a(d,t),d.parent.m=-d.z,l(d,u),m)l(f,c);else{var p=f,v=f,s=f;l(f,function(n){n.x<p.x&&(p=n),n.x>v.x&&(v=n),n.depth>s.depth&&(s=n)});var x=h(p,v)/2-p.x,y=g[0]/(v.x+h(v,p)/2+x),_=g[1]/(s.depth||1);l(f,function(n){n.x=(n.x+x)*y,n.y=n.depth*_})}return i}function r(n){for(var r,e={A:null,children:[n]},t=[e];null!=(r=t.pop());)for(var u,a=r.children,l=0,i=a.length;i>l;++l)t.push((a[l]=u={_:a[l],parent:r,children:(u=a[l].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:l}).a=u);return e.children[0]}function t(n){var r=n.children,e=n.parent.children,t=n.i?e[n.i-1]:null;if(r.length){x(n);var u=(r[0].z+r[r.length-1].z)/2;t?(n.z=t.z+h(n._,t._),n.m=n.z-u):n.z=u}else t&&(n.z=t.z+h(n._,t._));n.parent.A=i(n,t,n.parent.A||e[0])}function u(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function i(n,r,e){if(r){for(var t,u=n,a=n,l=r,i=u.parent.children[0],c=u.m,o=a.m,f=l.m,x=i.m;l=p(l),u=d(u),l&&u;)i=d(i),a=p(a),a.a=n,t=l.z+f-u.z-c+h(l._,u._),t>0&&(s(v(l,n,e),n,t),c+=t,o+=t),f+=l.m,c+=u.m,x+=i.m,o+=a.m;l&&!p(a)&&(a.t=l,a.m+=f-o),u&&!d(i)&&(i.t=u,i.m+=c-x,e=n)}return e}function c(n){n.x*=g[0],n.y=n.depth*g[1]}var o=f().sort(null).value(null),h=y,g=[1,1],m=null;return n.separation=function(r){return arguments.length?(h=r,n):h},n.size=function(r){return arguments.length?(m=null==(g=r)?c:null,n):m?null:g},n.nodeSize=function(r){return arguments.length?(m=null==(g=r)?null:c,n):m?g:null},e(n,o)}function m(n){var r,e,t=n.children,u=0;if(t)for(r=0,e=t.length;e>r;++r)u=Math.max(u,m(t[r]));return 1+u}function _(n,r,e,t){var u=n.children;if(n.x=r,n.y=n.depth*t,n.dx=e,n.dy=t,u&&(a=u.length)){var a,l,i,c=-1;for(e=n.value?e/n.value:0;++c<a;)_(l=u[c],r,i=l.value*e,t),r+=i}}function k(){function n(n,e){var u=r.call(this,n,e);return _(u[0],0,t[0],t[1]/m(u[0])),u}var r=f(),t=[1,1];return n.size=function(r){return arguments.length?(t=[+r[0],+r[1]],n):t.slice()},e(n,r)}function z(n,r,e,t){var u=n.children;if(n.x=r+=t*n.x,n.y=e+=t*n.y,n.r*=t,u)for(var a=-1,l=u.length;++a<l;)z(u[a],r,e,t)}function M(n){delete n._pack_next,delete n._pack_prev}function b(n){for(var r,e=(n=n.slice()).length,t=null,u=t;e;){var a={id:n.length-e,value:n[e-1],next:null};u=u?u.next=a:t=a,n[r]=n[--e]}return{head:t,tail:u}}function q(n,r){var e=n.x-r.x,t=n.y-r.y;return Math.sqrt(e*e+t*t)<n.r-r.r+1e-6}function A(n,r,e){var t=n.x,u=n.y,a=n.r,l=r.x,i=r.y,c=r.r,o=e.x,f=e.y,h=e.r,d=2*(t-l),p=2*(u-i),v=2*(c-a),s=t*t+u*u-a*a-l*l-i*i+c*c,x=2*(t-o),y=2*(u-f),g=2*(h-a),m=t*t+u*u-a*a-o*o-f*f+h*h,_=x*p-d*y,k=(p*m-y*s)/_-t,z=(y*v-p*g)/_,M=(x*s-d*m)/_-u,b=(d*g-x*v)/_,q=z*z+b*b-1,A=2*(k*z+M*b+a),E=k*k+M*M-a*a,N=(-A-Math.sqrt(A*A-4*q*E))/(2*q);return{x:k+z*N+t,y:M+b*N+u,r:N}}function E(n,r){var e=n.x,t=n.y,u=n.r,a=r.x,l=r.y,i=r.r,c=a-e,o=l-t,f=i-u,h=Math.sqrt(c*c+o*o);return{x:(e+a+c/h*f)/2,y:(t+l+o/h*f)/2,r:(h+u+i)/2}}function N(n,r){var e,t,u,a=null,l=n.head;switch(r.length){case 1:e=r[0];break;case 2:e=E(r[0],r[1]);break;case 3:e=A(r[0],r[1],r[2])}for(;l;)u=l.value,t=l.next,e&&q(e,u)?a=l:(a?(n.tail=a,a.next=null):n.head=n.tail=null,r.push(u),e=N(n,r),r.pop(),n.head?(l.next=n.head,n.head=l):(l.next=null,n.head=n.tail=l),a=n.tail,a.next=t),l=t;return n.tail=a,e}function w(n){return N(b(n),[])}function S(n,r){var e=n._pack_next;n._pack_next=r,r._pack_prev=n,r._pack_next=e,e._pack_prev=r}function j(n,r){n._pack_next=r,r._pack_prev=n}function O(n,r){var e=r.x-n.x,t=r.y-n.y,u=n.r+r.r;return.999*u*u>e*e+t*t}function P(n,r,e){var t=n.r+e.r,u=r.x-n.x,a=r.y-n.y;if(t&&(u||a)){var l=r.r+e.r,i=u*u+a*a;l*=l,t*=t;var c=.5+(t-l)/(2*i),o=Math.sqrt(Math.max(0,2*l*(t+i)-(t-=i)*t-l*l))/(2*i);e.x=n.x+c*u+o*a,e.y=n.y+c*a-o*u}else e.x=n.x+t,e.y=n.y}function B(n){n._pack_next=n._pack_prev=n}function C(n){if((r=n.children)&&(c=r.length)){var r,e,t,u,a,l,i,c;if(r.forEach(B),e=r[0],e.x=-e.r,e.y=0,c>1&&(t=r[1],t.x=t.r,t.y=0,c>2))for(u=r[2],P(e,t,u),S(e,u),e._pack_prev=u,S(u,t),t=e._pack_next,a=3;c>a;a++){P(e,t,u=r[a]);var o=0,f=1,h=1;for(l=t._pack_next;l!==t;l=l._pack_next,f++)if(O(l,u)){o=1;break}if(1==o)for(i=e._pack_prev;i!==l._pack_prev&&!O(i,u);i=i._pack_prev,h++);o?(h>f||f==h&&t.r<e.r?j(e,t=l):j(e=i,t),a--):(S(e,u),t=u)}var u=w(r);for(a=0;c>a;++a)e=r[a],e.x-=u.x,e.y-=u.y;n.r=u.r,r.forEach(M)}}function D(n,r){return n.value-r.value}function F(){function n(n,e){var i=t.call(this,n,e),c=i[0],o=l[0],f=l[1],h=null==r?Math.sqrt:"function"==typeof r?r:function(){return r};if(c.x=c.y=0,a(c,function(n){n.r=+h(n.value)}),a(c,C),u){var d=u*(r?1:Math.max(2*c.r/o,2*c.r/f))/2;a(c,function(n){n.r+=d}),a(c,C),a(c,function(n){n.r-=d})}return z(c,o/2,f/2,r?1:1/Math.max(2*c.r/o,2*c.r/f)),i}var r,t=f().sort(D),u=0,l=[1,1];return n.size=function(r){return arguments.length?(l=[+r[0],+r[1]],n):l.slice()},n.radius=function(e){return arguments.length?(r=null==e||"function"==typeof e?e:+e,n):r},n.padding=function(r){return arguments.length?(u=+r,n):u},e(n,t)}function G(n){for(var r,e;(r=n.children)&&(e=r.length);)n=r[e-1];return n}function H(n){for(var r;(r=n.children)&&r.length;)n=r[0];return n}function I(n){return 1+n.reduce(function(n,r){return Math.max(n,r.y)},0)}function J(n){return n.reduce(function(n,r){return n+r.x},0)/n.length}function K(){function n(n,e){var i,c=r.call(this,n,e),o=c[0],f=0;a(o,function(n){var r=n.children;r&&r.length?(n.x=J(r),n.y=I(r)):(n.x=i?f+=t(n,i):0,n.y=0,i=n)});var h=H(o),d=G(o),p=h.x-t(h,d)/2,v=d.x+t(d,h)/2;return a(o,l?function(n){n.x=(n.x-o.x)*u[0],n.y=(o.y-n.y)*u[1]}:function(n){n.x=(n.x-p)/(v-p)*u[0],n.y=(1-(o.y?n.y/o.y:1))*u[1]}),c}var r=f().sort(null).value(null),t=y,u=[1,1],l=!1;return n.separation=function(r){return arguments.length?(t=r,n):t},n.size=function(r){return arguments.length?(l=null==(u=r),n):l?null:u},n.nodeSize=function(r){return arguments.length?(l=null!=(u=r),n):l?u:null},e(n,r)}function L(n){for(var r=[],e=n.parent;null!=e;)r.push(n),n=e,e=e.parent;return r.push(n),r}function Q(n,r){if(n===r)return n;var e=L(n),t=L(r),u=null;for(n=e.pop(),r=t.pop();n===r;)u=n,n=e.pop(),r=t.pop();return u}function R(n,r){for(var e=Q(n,r),t=[n];n!==e;)n=n.parent,t.push(n);for(var u=t.length;r!==e;)t.splice(u,0,r),r=r.parent;return t}function T(){return function(n){for(var r,e=-1,t=n.length,u=new Array(t);++e<t;)r=n[e],u[e]=R(r.source,r.end);return u}}var U={slice:1,dice:1,"slice-dice":1,squarify:1},V=(1+Math.sqrt(5))/2;n.bundle=T,n.cluster=K,n.links=r,n.pack=F,n.partition=k,n.tree=g,n.treemap=h});
var diameter = 960,
margin = 2;
var pack = hierarchy.pack()
.size([diameter - margin * 2, diameter - margin * 2])
.value(function(d) { return d.votes; })
.sort(function(a,b) {
return b.value - a.value;
})
var svg = d3.select("body")
.append("svg")
.attr("height", diameter)
.attr("width", diameter)
.append("g")
.attr("transform", "translate(" + margin + "," + margin + ")")
d3.csv("General_Election_2010_Summary_Results.csv", function(data) {
var nested_data = d3.nest()
.key(function(d) { return d["Contest Title"].replace(/[,\"]/g, "").replace(/[\s]/g, "_").replace(/:_/g, ":"); })
.entries(data);
var haiwaii_elections = { name: "haiwaii_elections", children: nested_data.map(function(d) {
return { "name": d.key, "children": d.values.map(function(v) {
return { name: v["Candidate Name"], party: v["Candidate Party"], votes: v["Total Votes"]}
})}
})};
var tooltip = d3.select("body")
.append("pre")
.style("position", "absolute")
.style("z-index", "10")
.style("visibility", "hidden");
var node = svg.selectAll(".node")
.data(pack.nodes(haiwaii_elections))
.enter()
.append("g")
.attr("class", function(d) {
var classes = "";
if (d.name == "YES") {
classes += " yes";
}
if (d.name == "NO") {
classes += " no";
}
if (/^\(R\)/.test(d.name)) {
classes += " republican";
}
if (/^\(D\)/.test(d.name)) {
classes += " democrat";
}
if (/^\(G\)/.test(d.name)) {
classes += " green";
}
if (/^\(L\)/.test(d.name)) {
classes += " libertarian";
}
if (/^\(N\)/.test(d.name)) {
classes += " independent";
}
if (d.children) {
classes += " node";
} else {
classes += " leaf node";
}
return classes;
})
.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"})
.append("circle")
.attr("r", function(d) { return d.r; })
.on("mouseover", function(d) {
var tooltip_text = "";
if (d.parent != null) { // top-most level's parent is null
if (d.children) {
tooltip_text = d.name.replace(/:(.)/, ":_$1").split("_").map(function(d) { return d.charAt(0).toUpperCase() + d.substr(1).toLowerCase(); }).join(" ");
} else {
tooltip_text = d.name + "\n" + d.votes + " votes";
}
if (d.parent.children && d.parent.children.length == 1) { // 1 candidate contest
tooltip_text = d.parent.name.split("_").map(function(d) { return d.charAt(0).toUpperCase() + d.substr(1).toLowerCase(); }).join(" ") + "\n" + d.name + "\n" + d.votes + " votes";
}
} else { // top-most level's tooltip is just its name
tooltip_text = d.name.split("_").map(function(d) { return d.charAt(0).toUpperCase() + d.substr(1).toLowerCase(); }).join(" ");
}
if (d3.event.pageX >= 500) {
var whitespaces = [];
if (tooltip_text.length >= 40) {
var regex = /\s/g, result;
while (result = regex.exec(tooltip_text)) {
whitespaces.push(result.index);
}
var l = whitespaces.length - 1,
b = [];
b.push(0);
b.push(Math.floor(l/2));
tooltip_text = tooltip_text.substr(0, whitespaces[b[0]]) + "\n" + tooltip_text.substr(whitespaces[b[0]], whitespaces[b[1]] - whitespaces[b[0]]) + "\n" + tooltip_text.substr(whitespaces[b[1]]);
}
}
tooltip.text(tooltip_text);
return tooltip.style("visibility", "visible");
})
.on("mousemove", function() {
var pageX = d3.event.pageX,
pageY = d3.event.pageY,
left, top, bottom, right;
if (pageX < 600) {
left = pageX + 10;
top = pageY - 10;
}
if (pageX >= 600) {
left = pageX - 250;
top = pageY - 80;
}
return tooltip.style("top", top + "px").style("left", left + "px");
})
.on("mouseout", function() {
return tooltip.style("visibility", "hidden");
});
});
d3.select(self.frameElement).style("height", (diameter + margin) + "px").style("width", (diameter + margin) + "px");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment