Skip to content

Instantly share code, notes, and snippets.

@jalague
Last active May 2, 2017 19:27
Show Gist options
  • Save jalague/0c61140d16660c0c4e16ff7600999c71 to your computer and use it in GitHub Desktop.
Save jalague/0c61140d16660c0c4e16ff7600999c71 to your computer and use it in GitHub Desktop.
Brushable Horizontal Bar Chart - IV
height: 540

Although there visually seems no difference between this brushable horizontal bar chart and versions I, II, and III, this one is actually build on a different principle. And it is much, much better than the previous 3 versions in terms of UX, so just ignore those others :) (and as a bonus, there is way less code needed)

In this version, when you scroll your mouse, the bars in the big chart slide across the screen without any transitions.

As a note, there is no x scale adjustment in this version. Check out version V for x scale adjustment

The idea for this came from a tweet by Robert Monfera and an answer on stackOverflow by AmeliaBR helped me figure out the first part.

You have the option to adjust how many bars you're seeing by adjusting the size of the little box on the right mini chart. You can also move the box and see the bars that you've selected appear in a bigger form on the left. Moving can be done either by grabbing and moving the box or scrolling.

For a bit more background, you can read my mini-blog about it Brushable & interactive bar chart in d3.js

forked from nbremer's block: Brushable Horizontal Bar Chart - IV

Actor Gross
William Kircher 728
Darryl Hunt 1111
Trish Basinger 1711
Kate Maberly 2436
Tatyana Ali 2468
Michael Derek 3330
Jim Carter 3607
Nataniel S�nchez 3830
Saad Siddiqui 4063
Kyle Hebert 4091
Kerry Bish� 4584
Naderev Sano 4914
Rapulana Seiphemo 4958
Stephen McHattie 4999
Tom Everett Scott 5005
Don Wallace 5199
Frances Bay 5494
Drew Fuller 5561
Benno F�rmann 5725
Ariel Hsing 5858
Rita Hayworth 7927
Don Brooks 8231
Michael Nyqvist 9910
Louise Brooks 9950
Jordana Spiro 10018
Irene Bedard 10508
Glenn Plummer 10696
Ximena Ayala 11278
Tony Doupe 11798
Ingvar Eggert Sigur�sson 11835
America Olivo 12843
Paul Sheehan 13220
Jacqueline McKenzie 13751
Gavin MacLeod 15278
Elaine Hendrix 15593
Richard Coyle 17149
Merritt Wever 17580
James Urbaniak 18195
Karl E. Landler 18435
Connor Paolo 18469
Alice Olivia Clarke 19959
Justin Kirk 20186
Elizabeth Streb 21199
Harvey Fierstein 21210
Yul Vazquez 22434
Lindsay Kay Hayward 22770
John Karyus 23000
Kendyl Joi 23616
Noam Chomsky 23807
R. Brandon Johnson 25918
Brigitte Helm 26435
Jonathan D. Mellor 27024
Jane Goodall 29233
Tori Spelling 31937
Vera Ngassa 32631
Jack McGee 33598
Amos Oz 34151
Shane Dawson 35688
Zak Penn 36830
Karra Elejalde 38108
Wagner Moura 38552
Sarah Murphy-Dyson 39659
Robert John Burke 40542
Bj�rn Sundquist 41709
Michael Abbott Jr. 45661
Samantha Futerman 47111
Raymond J. Barry 47329
Tatsuo Matsumura 48856
Emraan Hashmi 49000
Simon Yam 49413
Nolan Gerard Funk 49494
Leehom Wang 50000
Monique Gabriela Curnen 52850
Ian Tracey 52961
Chris Gauthier 56129
Noah Emmerich 58214
Lemmy 58936
Brighton Sharbino 59379
Devid Striesow 59774
Nora Zehetner 62480
Rachel Griffiths 64359
Mike Figueroa 65087
Ian Gamazon 70071
Si Won Choi 72413
Johnny Pacar 73678
Leonor Varela 75727
Zoe Lister-Jones 76382
Carole Bouquet 81525
Carol Block 84689
John August 85222
Sarah Butler 92401
Stephanie Szostak 92900
K�ji Yakusho 94596
Alicja Bachleda 95016
Lauren Gottlieb 95236
Matthew Ziff 96734
Haley Ramm 98017
Dustin Lance Black 99851
G.W. Krauss 100240
Hector Kotsifakis 100412
Adrian Martinez 100503
Greg Crowe 100675
Nirut Sirichanya 102055
Jay Mohr 105943
Danny Aiello 110000
Deborah Mailman 110029
Angeliki Papoulia 110197
Fay Masterson 110536
Marilyn Rising 110720
Brendan Doogie Milewski 111300
Jizelle Jade 113155
Ye Liu 119922
Paul Kaye 120620
Diahann Carroll 123777
Jeffrey Falcon 124494
Catriona MacColl 126387
Kang-ho Song 128486
Siu-Wong Fan 129115
Annabelle Wallis 129319
Tommy Sheppard 133778
Maggie Cheung 136007
Madison Pettis 140987
Matt Cohen 143000
Pel� 144431
Lars Mikkelsen 145109
Edgar Ram�rez 145118
James Duval 145540
Luis Tosar 146402
David Mamet 151389
Ohad Knoller 155972
Temple Grandin 155984
Paulette Goddard 163245
Jorge Luis Moreno 169379
Trey Loney 169719
Riccardo Scamarcio 171320
Stacy Keach 171988
William Joseph Elk III 174682
Ally Sheedy 177840
Jossara Jinaro 178739
Divine 180483
Oksana Akinshina 181655
Beno�t Magimel 181798
Brian Lee Franklin 183490
Fran�ois Cluzet 183662
Fabian Bolin 188870
Amir Talai 191309
Jessy Schram 194568
Marcell Nagy 195888
Brad William Henke 198407
Vidya Balan 199228
Michael Gross 200803
Charis Michelsen 203134
Sandrine Kiberlain 206400
Jiao Xu 206678
Ricky Schroder 207908
Matisyahu 215185
Anna Friel 221161
Laura Morante 223878
Kumar Gaurav 227241
Kip Pardue 228524
Jeffrey Frost 228830
Akshaye Khanna 240425
Danny Dyer 240689
Paul Schneider 241816
Monica Calhoun 243347
Joseph Campanella 243768
Otto Jespersen 252652
William Morgan Sheppard 252726
Daniel London 255352
Lauren Ambrose 265107
Takashi Shimura 269061
Udo Kier 274385
Alex Gibney 274661
Derick Martini 277233
Rich Pecci 278821
Shiri Appleby 279282
Josh Swanson 287761
291661
Alexia Fast 298110
Jelena Jovanova 301305
Peter McNamara 302204
Eva Amurri Martino 303439
Kayvan Novak 304137
J�rgen Langhelle 313436
Dreama Walker 318622
Ringo Starr 321952
Kirk Fox 325491
Edie Falco 334041
Steven Yeun 334658
Paz de la Huerta 336467
Jess Weixler 347578
Asin 352684
Phyllida Law 352786
Rupert Grint 355964
Vincent Gallo 365734
Paul Guilfoyle 373967
Alex Huszar 375723
The Dalai Lama 381225
Honglei Sun 381332
John Howard 399879
Christopher Denham 405614
William Hootkins 410388
Shane Carruth 424760
Bill Farmer 425899
Anthony 'Citric' Campos 438653
Mitsuo Iwata 439162
Sarah Kazemy 439958
John Enos III 442638
Logan Browning 444044
Lynn Cohen 453782
Sarunyu Wongkrachang 454255
Isabelle Huppert 456794
Samantha Morton 472022
Steve Howey 480314
Anwar Congo 484221
Wei Zhao 488872
David Hewlett 489220
Christo Jivkov 499263
Konstantin Lavronenko 502028
Tshewang Dendup 505295
Bruce Dern 508867
Sara Forestier 513836
Paul McCartney 515005
Nandita Das 528972
Kayla Jackson 531806
Matt Bennett 535249
Yorick van Wageningen 542860
Lena Dunham 567964
Bashar Rahal 578527
Trey Parker 582024
Shirley Henderson 586597
Greg Ayres 592014
Jason Marsden 594904
Thomas Bo Larsen 610968
Karisma Kapoor 610991
Jean-Pierre L�aud 611709
Qi Shu 613556
Tom Cullen 613600
Walter Koenig 617172
Julia Jentsch 617228
Shahir Kabaha 621240
Jeremy W. Auman 630779
Mathieu Amalric 634835
Long Nguyen 638951
Abhishek Bachchan 664057
Dong-gun Jang 668171
Celia Imrie 671240
Fereshteh Sadre Orafaiy 673780
Sean Lennon 686383
Nicolas Giraud 706622
Beau Bridges 712294
Jan Decleir 713413
Philippe Nahon 753501
Jung-min Hwang 770629
Phoebe Legere 792966
Stephen Graham 797857
Donna Murphy 841206
Christian Clavier 846072
John Robinson 856942
Eamonn Walker 860002
Stephanie Leonidas 864959
Sam Riley 871577
James Brolin 876671
Q'orianka Kilcher 883887
Elpidia Carrillo 886410
Krystyna Janda 894186
Purva Bedi 902835
Rachel Dratch 906666
Bahare Seddiqi 925402
Heike Makatsch 927107
Saif Ali Khan 927845
Megan Park 952620
Sonja Sohn 982214
Sasha Alexander 985341
Allison Dean 1001437
Odessa Rae 1007962
John Boyega 1024175
Dan Futterman 1027119
Andrew Wilson 1040879
Gary Lewis 1050445
Scott Mechlowicz 1055654
Alexis Dziena 1056102
Yasmine Al Massri 1060591
Jon Gries 1066555
Satish Kaushik 1094998
Noah Danby 1098224
Dana Delany 1100000
Rachel True 1114943
Marina Golbahari 1127331
John F. Kennedy 1134049
Adam LeFevre 1141829
Arjun Rampal 1165104
Marco St. John 1183354
Anamaria Marinca 1185783
Joan Chen 1186323
Aksel Hennie 1196752
David Belle 1197786
Burt Young 1200000
Katrina Kaif 1207007
Zoe Kazan 1211662
Tommy Pallotta 1227508
James Wolk 1243961
Omar Sy 1260917
Kimberly J. Brown 1281176
Tony Alva 1293295
Corbin Allred 1310270
Robin Lord Taylor 1316074
Mem Ferda 1357042
Jaime Camil 1391770
Terry Kiser 1400000
Geoff Stults 1425993
Kevin Corrigan 1431334
Konstantin Khabenskiy 1487477
David Richmond-Peck 1506998
Mark Zupan 1523883
David Alpay 1554566
Brenda Fricker 1569918
B�rbara Mori 1602466
Miranda Richardson 1641788
Damon Wayans 1646664
Ulrich Thomsen 1647780
Simon Abkarian 1652472
Michael Berryman 1669325
Emily Rios 1689999
Alex Rocco 1705139
Mark Duplass 1766179
Nathalie Fay 1768416
Padraic Delaney 1829142
Ally Walker 1943649
Nicole Ari Parker 1977544
Kim Dickens 1980338
Sook-Yin Lee 1984378
Ian McNeice 1987287
M�a Maestro 1991435
Mary Elizabeth Mastrantonio 1997807
Tippi Hedren 2000000
Emily Podleski 2024854
Chelcie Ross 2025238
Dameon Clarke 2035566
Carlos Gallardo 2040920
Terry Funk 2047570
Victor Rasuk 2073984
Bel�n Rueda 2086345
Katy Mixon 2111155
Darci Kistler 2119994
Mike Tyson 2126511
Sam Waterston 2154540
Gillian White 2185266
Anupam Kher 2197331
Doona Bae 2201412
Samantha Barks 2209479
Ulrich Tukur 2222647
Campbell Scott 2225311
Donny Boaz 2246000
Gerry Lopez 2276368
Ari Folman 2283276
Hill Harper 2301777
Isabelle Adjani 2353728
Kirby Heyborne 2362413
Ami Ayalon 2408553
Michael Joiner 2428241
Seth Gilliam 2474000
Danny Pino 2483955
Shawnee Smith 2507106
Collin Alfredo St. Dic 2601847
Tom Burke 2708188
Lawrence Gilliard Jr. 2712293
Anita Page 2808000
Toni Servillo 2835886
Robyn Lively 2848578
Stacy Edwards 2856622
Bebe Neuwirth 2882062
Chris Eigeman 2938208
Gladys Cooper 2956000
Paul McGill 2957978
Christopher Abbott 2981638
Stephen Carr 3000000
John Cameron Mitchell 3029081
Cliff Robertson 3060858
Don McKellar 3073392
Numan Acar 3093491
Melissa Sagemiller 3100650
Radivoje Bukvic 3108216
Ken Burns 3117666
Gaby Hoffmann 3122616
Dyan Cannon 3123749
Rupert Graves 3130592
Alia Shawkat 3219029
John Abraham 3222857
Kevin Pollak 3249852
Antoni Corone 3273588
Kevin Scott Richardson 3278611
Wanda Sykes 3293258
Alanna Ubach 3294617
Henry Silva 3300230
Jason Mewes 3314721
Robert Picardo 3333823
Eric Johnson 3347439
James Hetfield 3419967
Marie-Jos�e Croze 3432342
Donald Glover 3447339
Eric Stoltz 3460756
Min-sik Choi 3503143
Kristy Swanson 3559990
Vanessa Lengies 3590010
Jean-Baptiste Maunier 3629758
C�cile De France 3645438
Fran�ois B�gaudeau 3766595
Randy Wayne 3773863
Parry Shen 3799339
Joanna Kulig 3826455
Ranbir Kapoor 3827466
Najarra Townsend 3885134
Christopher Meloni 3889352
Lambert Wilson 3950029
Michael Dudikoff 4000000
Florian Lukas 4063859
Lesley Manville 4071435
Norbert Ferrer 4074023
Iko Uwais 4105123
Callie Thorne 4142507
Aunjanue Ellis 4186931
Cem Yilmaz 4190530
Nawazuddin Siddiqui 4231500
Dylan Authors 4234040
Molly Parker 4239767
Nicholas Rowe 4250320
Mariah Carey 4273372
Derek Luke 4291965
Michael Pollan 4417124
Romain Duris 4529941
Nicholas Aaron 4581222
Marcela Mar 4584886
Isabella Rossellini 4622380
Mia Wasikowska 4716818
Bridgette Wilson-Sampras 4777007
Louise Fletcher 4884663
Anika Noni Rose 4922166
Julianna Guill 4930798
Sheryl Crow 4946250
Rock Hudson 5000000
Kenneth Tobey 5000000
Flavio Parenti 5004648
Cameron Bright 5005883
Levon Helm 5023275
Melanie Griffith 5032496
Maricel �lvarez 5100937
Catherine Lough Haggquist 5132655
Hugh M. Hefner 5196396
Greta Gerwig 5210789
Matthew Settle 5217498
Robert Townsend 5228617
Joely Richardson 5231175
Ginger Rogers 5300000
Barry Bostwick 5333658
Mick Jagger 5355376
Rachel Hendrix 5355847
Adriana Barraza 5383834
Hanno P�schl 5400000
Michael J. Pollard 5430822
Larry David 5480230
Tenzin Thuthob Tsarong 5532301
Fernanda Montenegro 5595428
Todd Giebenhain 5660084
Tony Cox 5664251
Santiago Cabrera 5669081
Tadanobu Asano 5701643
Dami�n Alc�zar 5709616
Vernon Dobtcheff 5792822
Emmanuelle Seigner 5990075
W. Earl Brown 5997134
Dylan Moran 5998971
Ian McDiarmid 6000000
Claude Rains 6000000
Kristin Lehman 6047856
Cheech Marin 6083312
Ted Raimi 6096110
Jeremy Davies 6107690
Alessandro Nivola 6109075
Fran Drescher 6157157
Roy Billing 6165429
Denis Lavant 6167817
Merab Ninidze 6173485
Robert Redford 6262942
Aidan Quinn 6273553
Clive Russell 6462576
Gregory Scott Cummins 6482195
Tamannaah Bhatia 6498000
Catalina Sandino Moreno 6517198
Kevin Alejandro 6563357
Emir Kusturica 6576177
Tony Chiu Wai Leung 6594136
David Masterson 6615578
Del Zamora 6712451
Michael Greyeyes 6719300
David Margulies 6734844
Jill Clayburgh 6754898
Brendan Fehr 6755271
Daniel Sharman 6842058
Lubna Azabal 6857096
Dominic Flores 6998324
M. Emmet Walsh 7000000
Chriss Anglin 7001720
Michel Robin 7002255
Wesley Jonathan 7009668
Jennifer Hudson 7017178
Scott Cohen 7022940
DeRay Davis 7070459
Shahab Hosseini 7098492
Barry Corbin 7121697
S. Epatha Merkerson 7137502
Geraldine Chaplin 7159147
Joel McHale 7204138
Angus Scrimm 7282851
Jonathan Brandis 7292175
William Baldwin 7362100
Kathleen Wilhoite 7369373
Thomas Kretschmann 7705581
Isaac C. Singleton Jr. 7705974
James Cagney 7707563
Moritz Bleibtreu 7743594
Elizabeth Berrington 7757130
Dustin Milligan 7774730
William Gates 7830611
John Astin 7888703
Keenan Wynn 8000000
Jason Robards 8000000
Bill Johnson 8025872
Heather Berman 8044906
Debbie Reynolds 8054280
Martin Dew 8093318
Sophie Okonedo 8111360
Seamus Davey-Fitzpatrick 8114507
Daniel Kaluuya 8129455
Eddie Griffin 8250898
Eddie Izzard 8301740
Irvin Kershner 8373585
Ezra Miller 8409404
Jasper Cole 8460995
Katrina Bowden 8620557
Meat Loaf 8708209
Chris Klein 8742261
John Heard 8780002
Scott Grimes 8888143
Vernon Wells 9003011
Richard Johnson 9030581
Scott Baio 9109322
Michael Stuhlbarg 9190525
Brian Bosworth 9286314
Ian Whyte 9353573
Thomas McDonell 9402410
Glen Hansard 9437933
John Mahoney 9449219
Johannes Silberschneider 9473382
Aisha Tyler 9525276
Lara Jill Miller 9628751
Don Rickles 9975684
Hiroshi Abe 10037390
Bunta Sugawara 10049886
Angell Conwell 10097096
Cameron Monaghan 10106233
John Doe 10114315
Ian Ziering 10137232
Leon 10149779
Brian Blessed 10161099
Shari Albert 10246600
Joe Estevez 10305534
Monica Potter 10397365
Oliver James 10411980
Rebecca Budig 10494494
Mia Kirshner 10556196
Charles Napier 10686429
Indira Varma 10710174
Jacques Perrin 10762178
Matt Smith 10907291
Marlee Matlin 10941801
Ryan Kruger 10955425
Tyler Labine 10965209
Tom Berenger 10999271
Christopher Masterson 11000000
Trevor Morgan 11144518
Quinton Aaron 11169531
Terry Pheto 11237111
J�rgen Prochnow 11433134
Patricia Tallman 11501093
Tasha Smith 11508423
Chemeeka Walker 11529368
Alicia Goranson 11533945
Andy Lau 11546543
Sebastian Koch 11558956
Saffron Burrows 11576087
Takeshi Kaneshiro 11668037
Fred Willard 11675178
Danny Strong 11702090
Chase Ellison 11703287
Jon Foo 11905519
Marco Trevi�o 12188642
Taylor Cole 12232937
Peter Fonda 12247838
Blair Underwood 12339633
Dallas Barnett 12495865
Eric Sheffer Stevens 12555230
George Coe 12610552
Peter Mensah 12610731
Sammo Kam-Bo Hung 12674183
Yuri Lowenthal 12701880
Billy Campbell 12870569
Carmen Maura 12899702
Bill Maher 12995673
Lena Horne 13000000
Meg Foster 13008928
Daniel Stern 13034417
Aasif Mandvi 13214030
Shah Rukh Khan 13263415
Joe Cocker 13300000
Jessica Lowndes 13350177
Greg Germann 13367101
James Callis 13391174
Peter Serafinowicz 13464388
Jacinda Barrett 13569248
Ron Howard 13596911
Maribel Verd� 13622333
Yuki Matsuzaki 13753931
Naseeruddin Shah 13876974
Lee Majors 13903262
Gabriel Millman 14060950
Paul Brooke 14131298
Talisa Soto 14294842
Richard Epcar 14358033
Ronald Reagan 14359793
Carol Kane 14375181
Tom Atkins 14400000
Tisha Campbell-Martin 14545844
Andrew Robinson 14564027
Craig T. Nelson 14570602
Rosanna Arquette 14587732
Chris Marquette 14589444
Maika Monroe 14673301
Alan Ruck 14804347
Heather Matarazzo 14969766
Mark Valley 14983572
Rumi Hiiragi 15081783
Mia Farrow 15131330
Yaya DaCosta 15155772
Byron Mann 15156200
Tom Hughes 15294553
Stephen Dillane 15331289
Claudia Christian 15361537
Thomas Lennon 15408822
Andy Dick 15464026
Gretchen Mol 15539852
Cole Hauser 15712072
Mustafa Haidari 15797907
Pam Ferris 16005978
Ed Skrein 16027866
Steve Oedekerk 16033556
Ursula Andress 16067035
Mary-Kate Olsen 16095410
Ahna O'Reilly 16097842
Romola Garai 16210949
Paul Sorvino 16315694
Mike Howard 16377274
Reba McEntire 16667084
Ornella Muti 16684352
Oliver Reed 16800000
Woody Strode 17000000
Jamie Kennedy 17010646
Alexander Skarsg�rd 17099609
Shengyi Huang 17104669
Amanda Schull 17174870
Ashley Rickards 17314483
Samaire Armstrong 17324744
Bob Neill 17473245
Kimberly Elise 17474107
Phil Davis 17508670
Christopher Nicholas Smith 17536788
Warren Christie 17683670
Jason London 17757087
Olivia Williams 17789458
Stephen Collins 17843379
Lochlyn Munro 17969502
Grace Phipps 18298649
Tim Meadows 18317151
Luke Newberry 18381787
John Gatins 18438149
Geoffrey Arend 18488314
Tammin Sursok 18595716
Robert Clohessy 18600911
Roxanne McKee 18821279
Kelly Carlson 18843314
Chris Zylka 18860403
David Gant 18947630
Jason Priestley 19001268
Caitlin Stasey 19059018
Lew Temple 19067631
Betsy Palmer 19100000
Christina Milian 19118247
Chris Moss 19179969
Nancy O'Dell 19184015
Philip Baker Hall 19206487
William Schallert 19281235
Amanda Detmer 19351569
Pedro Armend�riz Jr. 19406406
Alden Ehrenreich 19445217
Fergie 19673424
Alona Tal 19692608
Ted Danson 20113965
John de Lancie 20210523
Sheryl Lee 20241395
Bobbie Phillips 20302961
Lea Michele 20321829
Wendi McLendon-Covey 20339754
Tony Nappo 20433940
Michael McKean 20543117
John Beasley 20733485
Benjamin A. Onyango 20773070
Jeff Kober 20801344
Erick Avari 20819129
Mitch Pileggi 20981633
Mireille Enos 20999936
Alex Kendrick 21154002
T.I. 21160089
Tiffany Helm 21300000
Steven Bauer 21370057
David Zayas 21371425
Elisabeth Harnois 21379315
Ricardo Dar�n 21388685
Aimee Garcia 21835784
Julian Morris 22016851
Max Minghella 22044645
Lisa Wilcox 22168359
Isaac Hayes 22201636
Margaret Hamilton 22202612
Gary Weeks 22331028
Kelsey Grammer 22452209
Joan Allen 22515286
Rainn Wilson 22526144
Kevin Grevioux 22734486
Pfeifer Brown 22757819
Telly Savalas 22800000
Hayden Christensen 22936528
Sasha Roiz 23219748
Kasia Smutniak 23324666
Bill Bailey 23618786
Myrna Loy 23650000
Alice Braga 23671374
Billy West 23808111
Alison Lohman 23847851
Collette Wolfe 23993605
Mara Wilson 24030538
Sonia Braga 24044532
Frank Whaley 24276500
Annabella Sciorra 24379028
Connie Ray 24381334
Judith Chapman 24430272
Beth Grant 24755929
Robert Shaw 24800000
Christine Taylor 24881000
Nehemiah Persoff 25000000
Kevin Sussman 25077977
Malese Jow 25200412
Julian Richings 25239347
Lexie Contursi 25240988
Ellar Coltrane 25359200
David Paymer 25436324
Elina Alminas 25440971
Dougray Scott 25472967
Mike Epps 25482931
Phil Vischer 25571351
Kay Panabaker 25584685
Jere Burns 25590119
James Nesbitt 25611458
Jessica Par� 25662242
Justin Chon 25677097
Tyler James Williams 25771218
James Kyson 25926543
MyAnna Buring 26032205
Mackenzie Davis 26049082
Sunny Mabrey 26082914
Elden Henson 26096584
Sierra McCormick 26161406
Richard Wilson 26400000
Kim Director 26421314
Warren Beatty 26525834
Eoin Macken 26583369
J.D. Evermore 26616999
Wood Harris 26803366
Marley Shelton 26832953
Craig Ferguson 26872749
Johnny Lewis 26876529
Hulk Hogan 26906039
Peter Gallagher 27019096
William Holden 27200000
Steven Mackintosh 27281507
Sterling Jerins 27285953
Khandi Alexander 27332035
Janet Jackson 27515786
Ruby Dee 27545445
Michael Raymond-James 27550735
James Lafferty 27689474
Laila Haley 27736779
Caroline Dhavernas 27758465
Jaime King 27834732
Zach Gilford 27845637
Martin Starr 27947064
Ken Arnold 28064226
Michael Smiley 28221697
Carlos Ponce 28390724
Steve Irwin 28399192
Jenny Agutter 28501605
Kurtwood Smith 28589693
Thomas F. Wilson 28603428
Justin Theroux 28622533
Rip Torn 28718433
Harry Styles 28873374
Samira Wiley 28876924
Daniel Mays 28995450
Sela Ward 29062561
Josh Wingate 29136626
David Keith 29200721
Lily Tomlin 29239123
Rosie Perez 29781453
Jay Laga'aia 29975979
Rick Yune 29986898
Clu Gulager 30000000
Fanny Ardant 30012990
Isaiah Washington 30079316
Cheryl Hines 30105968
Jessie T. Usher 30127963
Shelley Conn 30212620
Christian Monzon 30222640
Aaliyah 30307804
Austin Pendleton 30400000
Blanchard Ryan 30500882
Tika Sumpter 30513940
Sid Haig 30648144
Jack Reynor 30659817
Sean Pertwee 30966749
50 Cent 30981850
Noah Bean 30993544
Joseph Gilgun 31056480
Augustus Prew 31136950
Robert Baker 31199215
Willie Garson 31286130
Kieran Culkin 31293515
Frances Fisher 31320776
Clifton Collins Jr. 31393188
Gerry Bednob 31452765
Christian Clemenson 31471430
Shelley Hennig 31537320
Jack Davenport 31585300
Nicholas Gonzalez 31605436
Angie Dickinson 31899000
Sam Shepard 31904068
Nat Wolff 31990064
Janet Leigh 32000000
Richard Burgi 32003620
Marisa Saks 32014289
William McNamara 32051917
Brittany Daniel 32079854
Jeff Fahey 32101000
Sullivan Stapleton 32131483
Jurnee Smollett-Bell 32200508
David Jason Perez 32230907
Fran�oise Yip 32333860
Alexis Arquette 32368960
Richard Cabral 32453345
Marc Blucas 32474855
Emilia Fox 32519322
Lily Atkinson 32553210
Pamela Reed 32598931
Judie Aronson 32600000
Jeremy Shada 32774834
Tina Desai 33071558
Mathieu Kassovitz 33201661
Common 33215247
Catherine Hicks 33244684
Melina Kanakaredes 33328051
Barack Obama 33349949
Sally Hawkins 33409427
Kirk Cameron 33451479
Callum Rennie 33734415
Jennifer Jason Leigh 33856141
John Kapelos 33927476
Sarah Polley 34236941
Ben Davies 34522221
Jim Gaffigan 34546579
Tony Curran 34548559
Matt Price 34580635
Robert Davi 34667015
Armando Riesco 34889970
Mako 34900000
Joseph Cotten 34900000
Kathleen Turner 35023294
Nicki Aycox 35143332
Debra Messing 35228696
Jon Seda 35422828
Taylor Negron 35541044
Violante Placido 35596227
Stephen Rea 35777645
Lauren Cohan 35794166
Noah Taylor 35811509
Brian Thompson 35927406
Richard Burton 36000000
Gloria Grahame 36000000
Denis O'Hare 36020063
Adam Arkin 36037909
Charlie Rowe 36073232
Tina Turner 36200000
Richard Brooker 36200000
Blair Brown 36279230
Farrah Fawcett 36540112
Steven Anthony Lawrence 36830057
Peter Firth 36874745
Wilford Brimley 36875520
Lisa Edelstein 37036404
Bianca Kajlich 37053924
Hunter Parrish 37150328
Bobby Lee 37371385
Tiago Riani 37432299
Ben Feldman 37445090
Amber Valletta 37486138
Ivana Baquero 37623143
Richard Lawson 37672350
Emily Watson 37730566
Jordi Moll� 37734246
Sh� Kosugi 38105077
Joan Rivers 38119483
Talulah Riley 38372662
James Martin Kelly 38509342
James Wilcox 38543473
William Hurt 38589726
Teo Halm 38916903
Lois Smith 39025000
Ashley Williams 39026186
Rae'Ven Kelly 39100956
Bai Ling 39251128
Vinessa Shaw 39514713
Frances Bavier 39552600
Danny Huston 39568996
Catherine Deneuve 39760901
Fisher Stevens 39849547
Raymond Cruz 40048332
Jennifer Freeman 40066497
Jordana Brewster 40161748
Jim Meskimen 40218903
Jessica Barden 40247512
Ben Gazzara 40250028
Gregory Smith 40507309
Laura Harring 40534417
Sharon Small 40566655
Jeffrey Combs 40846082
Caleb Landry Jones 40990055
Lauren German 41227069
Armin Mueller-Stahl 41256277
Kevin McNally 41309709
Sam Trammell 41797066
Bolo Yeung 41908836
Ian Somerhalder 42346686
Shelley Duvall 42365600
Alyson Stoner 42385520
Essence Atkins 42634491
Colin Ferguson 42640890
Mehcad Brooks 42643187
Paige Turco 42660000
Clayton Snyder 42672630
Cedric the Entertainer 43230407
Rami Malek 43568507
Raoul Bova 43601508
Rita Moreno 43650000
Henry Ian Cusick 43755615
Hal Holbrook 43848100
Kate Upton 44328238
Laura Ramsey 44433033
Mia Sara 44450000
Eugenio Derbez 44456509
Morgan Saylor 44469602
B�r�nice Bejo 44667095
Jack Palance 44726644
Oliver Hudson 44771061
John Saxon 44793200
Curtis Armstrong 44868461
Peter Coyote 44989048
Noah Huntley 45063889
Lorraine Bracco 45500797
Emma Bell 45530757
Nate Parker 45684633
Craig Parker 45802315
Devin Ratray 46037455
Richard E. Grant 46074122
Barry Watson 46363118
Sarah Carter 46455802
Caroline Munro 46800000
Edgar Arreola 46875468
Tate Donovan 46975183
Johnny Cannizzaro 47034272
Ayelet Zurer 47379090
Andrew Fiscella 47680687
Gena Rowlands 47806295
Seymour Cassel 47812413
Billy Crudup 47838239
Elizabeth McGovern 48043505
Danielle Kotch 48056940
Dania Ramirez 48114556
Jim Sturgess 48772779
Demi�n Bichir 49061869
Scott Porter 49134684
Tuesday Knight 49369900
Zo� Kravitz 49447710
Kane Hodder 49449045
Jimmy Fallon 49454062
Lilli Lavine 49968653
Andrea Corr 49994804
Topol 50000000
Kathleen Quinlan 50129186
Jenna Fischer 50306511
Frances Conroy 50700529
Lane Smith 50752337
Ryan O'Neal 50800000
Isaac Hempstead Wright 50807639
Rudy Youngblood 50859889
Emma Watson 50873484
Honor Blackman 51100000
Joe Don Baker 51185897
Brenda Song 51432423
Jensen Ackles 51527787
Eric Mendenhall 51697449
Luke Bracey 51746151
Jennifer Esposito 52190831
Marshall Bell 52287414
Michael Moore 52481794
Charlie McDermott 52722460
Mark Rylance 52792307
Fernanda Andrade 53245055
Michiel Huisman 53267732
Matt Shively 53884821
Chelan Simmons 54098051
Craig Stark 54116191
Manish Dayal 54235441
Lou Taylor Pucci 54239856
�scar Jaenada 54257433
Esai Morales 54520486
Jake Busey 54700065
Dax Flame 54724272
Matt Walsh 55008959
Julia Ormond 55255636
Charles S. Dutton 55473600
Bernie Casey 55500000
Dave Chappelle 55509415
Taran Killam 56127162
Sam Claflin 56154094
Heather Locklear 56167398
Roger Allam 56437947
Corinna Harney 56607223
Keir Dullea 56715371
Kurt Fuller 56816662
Xander Berkeley 56932305
Jeffrey Jones 57294308
Patton Oswalt 57484734
John Cothran 57504069
Drake Bell 57842808
Robert Pine 57859105
Illeana Douglas 57866996
Cassie Ventura 58006147
Antony Starr 58156435
Keisha Castle-Hughes 58390743
Olivier Martinez 58399280
Alice Krige 58800000
James Babson 59035104
Sayed Badreya 59617068
Roma Downey 59696176
Shane Black 59735548
Joaquim de Almeida 59898996
Vanessa Redgrave 59973111
Chris Elliott 60008303
Blythe Danner 60443237
Fann Wong 60470220
Quincy Jones 60507228
Kevin Zegers 60692045
Mira Sorvino 60705180
Ivana Milicevic 60720953
Pink 60923325
Mark Gatiss 60988443
Alun Armstrong 61355436
Hector Elizondo 61504403
Corbin Bernsen 61595075
James Corden 61720593
Beverly D'Angelo 62236641
Julian Glover 62300000
Theo James 62321039
Amber Stevens West 62494975
Brandon T. Jackson 62620575
Paddy Considine 62642572
Arliss Howard 63411478
Kath Soucie 63624047
Robert Ri'chard 64097618
Eddie Cahill 64371181
Rhys Wakefield 64423650
Shawna Waldron 65000000
David Hyde Pierce 65060430
Ocean James 65069140
Ari Graynor 65120649
Michael Angarano 65794640
Eddie Cibrian 65987670
Scoot McNairy 66239305
Cory Hardrict 66359959
Krista Allen 66466372
Sydney Pollack 66790248
Vincent Pastore 66860511
Scout Taylor-Compton 66907160
Jamie Ren�e Smith 67155742
Eddie Redmayne 67183560
Charlyne Yi 67523385
Louis Jourdan 67900000
Carmen Electra 67956980
Patrick Macnee 68286000
Nicholas Lea 68473360
Judith Barsi 68855859
Doug E. Doug 68856263
Leonard Roberts 68912300
Eddie Marsan 68925666
Brian Dennehy 70000986
Alex Veadov 70011073
Bono 70346450
Sally Kirkland 70405498
Ryan Guzman 70442892
Jason Alexander 70836296
Jacob Tremblay 71017784
D.B. Woodside 71038190
Nathan Lane 71227464
David Lyons 71346930
Frank Langella 71645930
Misha Gabriel Hamilton 71844424
Drew Powell 71975611
Jeremy Brett 72000000
Hope Davis 72167039
Omari Hardwick 72214489
Sean Young 72217000
Wes Studi 72455275
Curtiss Cook 72515360
Rob Paulsen 72601713
Usher Raymond 73000942
Diedrich Bader 73354869
Liam Aiken 73431127
Yaphet Kotto 73534543
Natasha Henstridge 74149752
Noel Gugliemi 74352613
Britney Spears 74377334
Shannon Elizabeth 74721600
George Carlin 74787599
Faizon Love 74864529
Estella Warren 74978872
Abbie Cornish 75103149
William Smith 75148373
Jennifer Saunders 75280058
Miko Hughes 75559360
Danneel Ackles 75568608
Mhairi Calvey 75600000
Todd Stashwick 75604320
Seth MacFarlane 75754670
Marsha Thomason 75817994
Topher Grace 75889322
Leopold Stokowski 76400000
Harry Lennix 76837944
Ray Winstone 77026095
Archie Panjabi 77736010
Charlotte Rampling 78302761
Kevin Nash 78656813
Donald Faison 79313225
Emily Osment 79566871
Quentin Tarantino 79860492
Dylan Baker 80003296
Ana de la Reguera 80197993
Daryl Sabara 80245349
Alice Greczyn 80270227
Treat Williams 80276912
Leighton Meester 80698331
Dylan Walsh 81022333
John Amos 81152746
James Coburn 81165565
Stephen Amell 81638674
Katharine Isabelle 82163317
America Ferrera 82768383
Peter Graves 83400000
Ken Howard 83429088
Darcy Donavan 84136909
Mel Blanc 84300000
Jeremy Irvine 84504796
Sprague Grayden 84749884
Tony Goldwyn 84915327
Miranda Cosgrove 85586139
Leslie Bibb 86063348
Mike Starr 86383279
Will Patton 87704396
Snoop Dogg 88200225
Kelly Rutherford 89138076
Eartha Kitt 89296573
Michael Wincott 89345526
Adam Garcia 90104432
John Doman 90135191
Don Ameche 90400000
Vanessa Ferlito 90485233
Lucas Grabeel 90556401
Beau Mirchoff 90703745
Lisa Ann Walter 90741522
Josh Charles 90775144
Gary Dourdan 91158241
Jacob Vargas 91443253
Matthew Perry 91624165
Li Gong 91883196
Bradley Whitford 92115211
Bruno Kirby 92823600
Natasha Lyonne 92865098
Woody Allen 93142719
Dan Byrd 93208724
Dorian Missick 93307796
Carol Ann Susi 93375151
Lena Olin 93469845
Mary Lynn Rajskub 93816164
Carmen Perez 93952276
Michael Nouri 94900000
Julie Benz 95207488
Frankie Muniz 95622550
Gunnar Hansen 96052256
Fionnula Flanagan 96471845
Steve Guttenberg 97300000
Kyra Sedgwick 98386491
Mark Margolis 98757837
Jim Belushi 98867673
Virginia Madsen 98902303
Sean Hayes 100446895
Michael Emerson 100509789
Dolly Parton 100620167
Bailee Madison 101307416
Linda Cardellini 101411757
Ethan Suplee 101598405
Bill Duke 101774441
F. Murray Abraham 101785017
Jackson Nicoll 101978840
Eric Idle 102084758
Ed Wynn 102300000
Bokeem Woodbine 102358162
Katharine Ross 102380804
Daniel von Bargen 102678089
Sam Edwards 102797150
Kristin Scott Thomas 103138003
David Arquette 103465941
Charlie Korsmo 103738726
Dane Cook 103764221
Tom Skerritt 103933720
Johanna Braddy 104007828
Deborah Kara Unger 104131296
Victor Wong 105017620
Zachary Gordon 105213451
Art Hindle 105500000
Connie Nielsen 106030978
Izabella Scorupco 106635996
Candice Bergen 106807667
Andrew Garfield 107019400
Matt Frewer 107503316
Greg Grunberg 107518241
Jason Patric 107714483
Micah Sloat 107917283
Boris Kodjoe 107977218
Frank Grillo 108120110
Julian Sands 109206639
Christopher Lambert 109644966
Regina Hall 110000082
Amy Schumer 110008260
Louis Lombardi 110584646
Jon Heder 110636376
Harold Perrineau 110661318
Scatman Crothers 112000000
Richard Tyson 112929373
Raven-Symon� 112950721
Chris Noth 113280368
Norman Reedus 113393959
Donald Pleasence 113551178
Alison Brie 113635028
Imelda Staunton 114236922
Stephen Root 115232456
Rob Riggle 115289003
Romany Malco 115371361
Adam Baldwin 115457325
Sharlto Copley 115646235
Robert Forster 115742969
Sissy Spacek 116316653
Joe Lo Truglio 116378984
Olivia Wilde 117272203
Bojana Novakovic 118931492
Osama bin Laden 119078393
Sandra Ellis Lafferty 119518352
Julie Christie 120551070
Sophia Myles 120570879
Kelli Garner 121255417
Cicely Tyson 121441074
Taylor Lautner 121747073
David Carradine 122035783
A.J. Buckley 123070338
Jerry Stiller 123179834
Larry Miller 123423449
Daniel Roebuck 123830892
Michael O'Neill 124107476
Emmanuelle Vaugier 124964875
Suraj Sharma 124976634
Vincent Schiavelli 125332007
Jerry Ferrara 125468116
Colin Salmon 126930660
Joel Courtney 126975169
Jeff Bennett 127706877
Chen Chang 128067808
Bob Balaban 128300000
Luenell 128505958
David Oyelowo 129746073
Francesca Capaldi 130174897
Sofia Boutella 130468626
Olivia Munn 130997840
Seychelle Gabriel 131564731
Loretta Devine 131686875
Kevin Rankin 132122995
Angus T. Jones 132541238
Jeanne Tripplehorn 133994057
John Michael Higgins 134496011
James D'Arcy 135741249
Frank Welker 135781921
Bruce McGill 136408408
Lili Taylor 136448821
Julie Walters 136449951
Michael Kelly 137437329
Mackenzie Foy 137458714
Viggo Mortensen 138589059
Tom Welling 138614544
Natascha McElhone 138811383
Tzi Ma 140080850
Don Johnson 140092020
Heather Donahue 140530114
Anil Kapoor 141319195
Miriam Margolyes 141840060
Mahadeo Shivraj 142614158
Dominic Cooper 142907866
Miguel Ferrer 142926410
Matt Bomer 143097394
Jason Flemyng 143417634
Rene Russo 144731527
Roger Rees 145721356
Omar Epps 146107198
Jay Hernandez 146814878
Delroy Lindo 147905873
Phoebe Cates 148170000
Minnie Driver 148358137
Erika Christensen 148577195
Lauren Holly 148588856
Lupe Ontiveros 148688074
Harold Ramis 148734225
Charlie Hunnam 149166930
Sanaa Lathan 150282161
Laura-Leigh 150368971
Craig Roberts 150523207
Mike Vogel 150627765
Radha Mitchell 151418359
Charlize Theron 151498011
Heather O'Rourke 153200000
Stockard Channing 153322024
Dean Stockwell 154018779
Quvenzhan� Wallis 155363529
Toby Jones 156465418
LL Cool J 157505226
Madeline Carroll 158383657
Odeya Rush 160043480
Sarah Roemer 160100342
Billy Burke 160542036
Aldis Hodge 161029270
Chris Brown 161791781
Michael Imperioli 162062635
Tim Conway 162495848
Eleanor Parker 163214286
Rufus Sewell 165715334
Sean Patrick Thomas 166113226
Margot Kidder 168200000
Jill Hennessy 168213584
Giancarlo Giannini 168368427
Matt Lucas 169076745
Mark Addy 169405958
Michael Rapaport 169598973
Desmond Llewelyn 170100000
Ethan Embry 171343946
Marlon Brando 171482000
Javier Botet 173898395
Tim Blake Nelson 179671561
John Witherspoon 180160295
Olivia Newton-John 181360000
Bob Hoskins 181421290
Michael Jeter 181500091
Martin Kove 181600000
Zooey Deschanel 181844082
Karen Allen 182618434
Eric Dane 183201170
Ki Hong Lee 184101193
Mary McDonnell 184208848
Patrick Fugit 184491759
Adriana Caselotti 184925485
Nick Stahl 186735955
Clea DuVall 187495410
Essie Davis 188811421
Haley Joel Osment 189258098
Alicia Witt 193144041
Jon Lovitz 194077176
Vanessa Williams 194966877
John Belushi 195800000
Ming-Na Wen 197860083
Ioan Gruffudd 198655105
Hattie McDaniel 198655278
Mekhi Phifer 199062012
Peter Capaldi 202351611
Busy Philipps 202704313
Tina Fey 204132043
Jonathan Winters 208868163
Fred Gwynne 209574861
Albert Brooks 212632370
Bruce Spence 212743624
Adam Goldberg 212781988
Toby Stephens 213023524
Verne Troyer 213079163
Shailene Woodley 214345767
Scott Glenn 214912156
Elizabeth Daily 216392871
Alexa PenaVega 218452768
Logan Lerman 218787259
Mo'Nique 219015899
Heath Ledger 219335451
Maura Tierney 220361437
Oprah Winfrey 221393008
Colm Feore 221920693
George Kennedy 222865002
Alex Pettyfer 223625327
Sarah Silverman 223800512
Mei Melan�on 226138454
Rory Culkin 228619159
Goran Visnjic 228774923
Finn Wittrock 231207960
Kelly Preston 231391836
Michael Jai White 232423348
Jack McBrayer 232995036
Bella Thorne 233133659
Vivica A. Fox 233686038
Adam Scott 233746423
Joe Morton 234907155
Jesse McCartney 235439265
Costas Mandylor 236480800
LeVar Burton 237787466
Peter Greene 238171003
Ronny Cox 238825842
Ariana Richards 244444097
Bruce Greenwood 244533082
Janeane Garofalo 245006031
Bingbing Li 246902077
Damon Wayans Jr. 248103503
Kirsten Dunst 249876868
Brad Garrett 251369817
Dianne Wiest 251626700
Martin Short 253287547
Bam Margera 254247685
Catherine Dyer 255950375
Martin Landau 259561078
Ed Begley Jr. 264271546
Chazz Palminteri 266173098
Kathleen Freeman 267652016
Tia Carrere 268005644
Phaldut Sharma 274084951
Tom Selleck 278608014
Ellen Burstyn 279650344
Steve Bastoni 281492479
Madeline Kahn 282457000
Michael Fassbender 284929434
Anjelica Huston 291479761
Clint Howard 297630675
Jennifer Ehle 299262889
Paul Hogan 303988925
Robert Duvall 307246450
Lin Shaye 308616208
Catherine O'Hara 308697243
Nia Vardalos 309672830
Bill Cobbs 313203508
Will Forte 313364948
Eileen Brennan 315342230
Michael Biehn 317303341
Salma Hayek 317656447
Zack Ward 318974116
Brendan Fraser 327029920
Joe Mantegna 327617273
Djimon Hounsou 340541988
Kelly Macdonald 341260172
Nia Long 346221622
Wayne Knight 356784000
Roy Scheider 362922376
Muse Watson 363066972
Rosario Dawson 366553102
Jimmy Bennett 371124244
Anna Kendrick 377193775
Jet Li 384661024
Jon Hamm 390088345
Holly Hunter 390335427
Denis Leary 391903468
Alexander Gould 393532491
Hayley Atwell 402322663
Steve Coogan 402960178
Orlando Bloom 403857641
Don Cheadle 410198242
Ty Burrell 420257574
Cary-Hiroyuki Tagawa 423584156
Alfre Woodard 426264329
Lea Thompson 433072165
Henry Thomas 435329102
Rupert Everett 436471036
Eva Green 440383485
Jeremy Renner 444756424
Sarah Michelle Gellar 444965958
Josh Gad 445402563
Chris Evans 448265275
James Franco 454581775
Milla Jovovich 456824565
Dennis Quaid 466004673
Kate Winslet 467360946
Tim Holmes 469806152
Gary Cole 481420753
Noel Fisher 482587290
Josh Hutcherson 488596455
Alyson Hannigan 492148168
Bernie Mac 492658953
Ryan Gosling 497462608
Oliver Platt 510289933
Judge Reinhold 518819711
Benedict Cumberbatch 519245027
Tom Wilkinson 519615332
Vin Diesel 520882148
Anne Hathaway 529662340
Jennifer Garner 533995064
Jim Parsons 535619457
Demi Moore 535709297
Robin Wright 551033560
Christoph Waltz 561437511
Leonard Nimoy 561449216
Macaulay Culkin 566365137
Gary Oldman 571413481
Jon Favreau 590721315
Justin Timberlake 595274754
Mila Kunis 599231409
Chlo� Grace Moretz 605521625
Albert Finney 608720554
Jada Pinkett Smith 631342664
Judy Greer 634527957
Colin Firth 646373735
Meryl Streep 659117002
Jake Gyllenhaal 662482183
Jamie Lee Curtis 664397475
Kristen Stewart 671962945
Joseph Gordon-Levitt 675997319
Alan Rickman 699415604
Michael Gough 705336738
Al Pacino 714285258
Jim Broadbent 721390386
Tom Hardy 724499926
Peter Dinklage 749788005
Clint Eastwood 757241788
John Ratzenberger 760839216
Glenn Morshower 785546728
Christopher Lee 788008448
Jeff Bridges 802338697
Bryce Dallas Howard 808735398
Anthony Hopkins 834364807
Henry Cavill 846530799
Aidan Turner 847630374
CCH Pounder 859152693
Matthew McConaughey 915345373
Naomi Watts 921599374
Matthew Broderick 924089032
Daniel Radcliffe 978707075
Sylvester Stallone 1023650665
Philip Seymour Hoffman 1042537736
Amy Poehler 1051102844
Emma Stone 1062653907
Jason Statham 1111401945
Brad Pitt 1127464628
Will Ferrell 1132984634
Adam Sandler 1137069543
Angelina Jolie Pitt 1168666328
Keanu Reeves 1178922594
Paul Walker 1185926475
Ryan Reynolds 1194348128
Steve Carell 1234417944
Julia Roberts 1252223284
Kevin Spacey 1255364287
Gerard Butler 1320905460
Channing Tatum 1344428689
Bill Murray 1411131546
Dwayne Johnson 1412783917
Nicolas Cage 1482670876
Christian Bale 1581349852
Natalie Portman 1645479776
Bradley Cooper 1658315287
Liam Neeson 1680082173
Scarlett Johansson 1702026268
Hugh Jackman 1713313608
Morgan Freeman 1780514534
Robert Pattinson 1841497127
Matt Damon 1859179002
Denzel Washington 1896762381
Bruce Willis 2010942570
Robert De Niro 2100745158
Steve Buscemi 2118443103
Robin Williams 2297193027
Jennifer Lawrence 2367856024
Robert Downey Jr. 2456990061
Leonardo DiCaprio 2640581774
Chris Hemsworth 2729132988
Will Smith 2762617667
J.K. Simmons 2856407143
Tom Cruise 2987621999
Tom Hanks 3264559076
Harrison Ford 3391557163
Johnny Depp 3719618399
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Brushable bar chart - Horizontal - IV</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'>
<!-- <script src="d3.v3.js"></script> -->
<script src="//d3js.org/d3.v3.min.js"></script>
<style>
body {
font-size: 10px;
font-family: 'Open Sans', sans-serif;
font-weight: 400;
text-align: center;
}
#title {
font-size: 20px;
padding-bottom: 10px;
padding-top: 20px;
font-weight: 300;
}
#explanation {
font-size: 12px;
max-width: 620px;
margin: 0 auto;
padding-top: 10px;
color: #ababab;
font-weight: 300;
}
.y.axis line {
fill: none;
}
.x.axis line {
fill: none;
stroke: #e0e0e0;
shape-rendering: crispEdges;
}
.axis path {
display: none;
}
.brush .extent {
fill-opacity: .125;
shape-rendering: crispEdges;
}
.resize {
display: inline !important; /* show when empty */
fill: #7A7A7A;
fill-opacity: 1;
stroke: #7A7A7A;
stroke-width: 2px;
}
.bar {
/*shape-rendering: crispEdges;*/
}
</style>
</head>
<body>
<div id="title">Brushable horizontal bar chart - IV</div>
<div id="chart"></div>
<div id="explanation">You can see more or less of the total bar chart on the left by either dragging the box in the mini chart on the right or by scrolling your mouse. You can also click anywhere in the mini chart to center the box on that region. And you can increase and decrease the size of the box by dragging the top or bottom handle up or down.</div>
<script>
var data = [],
svg,
defs,
gBrush,
brush,
main_xScale,
mini_xScale,
main_yScale,
mini_yScale,
main_yZoom,
main_xAxis,
main_yAxis,
mini_width,
textScale;
d3.csv("actorsEX.csv", function(error, datas) {
console.log(datas);
if (error) throw error;
init();
function init() {
//Create the random data
for (var i = 0; i < 1621; i++) {
var my_object = {};
my_object.key = i;
my_object.country = datas[i].Actor.replace(/[\W_]+/g," ")//makeWord();
my_object.value = datas[i].Gross;
data.push(my_object);
}//for i
data.sort(function(a,b) { return b.value - a.value; });
/////////////////////////////////////////////////////////////
///////////////// Set-up SVG and wrappers ///////////////////
/////////////////////////////////////////////////////////////
//Added only for the mouse wheel
var zoomer = d3.behavior.zoom()
.on("zoom", null);
var main_margin = {top: 10, right: 10, bottom: 30, left: 110},
main_width = 500 - main_margin.left - main_margin.right,
main_height = 400 - main_margin.top - main_margin.bottom;
var mini_margin = {top: 10, right: 10, bottom: 30, left: 10},
mini_height = 400 - mini_margin.top - mini_margin.bottom;
mini_width = 100 - mini_margin.left - mini_margin.right;
svg = d3.select("#chart").append("svg")
.attr("class", "svgWrapper")
.attr("width", main_width + main_margin.left + main_margin.right + mini_width + mini_margin.left + mini_margin.right)
.attr("height", main_height + main_margin.top + main_margin.bottom)
.call(zoomer)
.on("wheel.zoom", scroll)
//.on("mousewheel.zoom", scroll)
//.on("DOMMouseScroll.zoom", scroll)
//.on("MozMousePixelScroll.zoom", scroll)
//Is this needed?
.on("mousedown.zoom", null)
.on("touchstart.zoom", null)
.on("touchmove.zoom", null)
.on("touchend.zoom", null);
var mainGroup = svg.append("g")
.attr("class","mainGroupWrapper")
.attr("transform","translate(" + main_margin.left + "," + main_margin.top + ")")
.append("g") //another one for the clip path - due to not wanting to clip the labels
.attr("clip-path", "url(#clip)")
.style("clip-path", "url(#clip)")
.attr("class","mainGroup")
var miniGroup = svg.append("g")
.attr("class","miniGroup")
.attr("transform","translate(" + (main_margin.left + main_width + main_margin.right + mini_margin.left) + "," + mini_margin.top + ")");
var brushGroup = svg.append("g")
.attr("class","brushGroup")
.attr("transform","translate(" + (main_margin.left + main_width + main_margin.right + mini_margin.left) + "," + mini_margin.top + ")");
/////////////////////////////////////////////////////////////
////////////////////// Initiate scales //////////////////////
/////////////////////////////////////////////////////////////
main_xScale = d3.scale.linear().range([0, main_width]);
mini_xScale = d3.scale.linear().range([0, mini_width]);
domain_xx= d3.scale.linear().domain([0,100000000])
main_yScale = d3.scale.ordinal().rangeBands([0, main_height], 0.4, 0);
mini_yScale = d3.scale.ordinal().rangeBands([0, mini_height], 0.4, 0);
//Based on the idea from: http://stackoverflow.com/questions/21485339/d3-brushing-on-grouped-bar-chart
main_yZoom = d3.scale.linear()
.range([0, main_height])
.domain([0, main_height]);
//Create x axis object
main_xAxis = d3.svg.axis()
.scale(main_xScale)
.orient("bottom")
//.tickValues(domain_xx)
.ticks(4)
//.tickSize(0)
.outerTickSize(0);
//Add group for the x axis
d3.select(".mainGroupWrapper").append("g")
.attr("class", "x axis")
.attr("transform", "translate(" + 0 + "," + (main_height + 5) + ")");
//Create y axis object
main_yAxis = d3.svg.axis()
.scale(main_yScale)
.orient("left")
.tickSize(0)
.outerTickSize(0);
//Add group for the y axis
mainGroup.append("g")
.attr("class", "y axis")
.attr("transform", "translate(-5,0)");
/////////////////////////////////////////////////////////////
/////////////////////// Update scales ///////////////////////
/////////////////////////////////////////////////////////////
//Update the scales
main_xScale.domain([0, 3500000000]);
mini_xScale.domain([0, 3500000000]);
main_yScale.domain(data.map(function(d) { return d.country; }));
mini_yScale.domain(data.map(function(d) { return d.country; }));
//Create the visual part of the y axis
d3.select(".mainGroup").select(".y.axis").call(main_yAxis);
d3.select(".mainGroupWrapper").select(".x.axis").call(main_xAxis);
/////////////////////////////////////////////////////////////
///////////////////// Label axis scales /////////////////////
/////////////////////////////////////////////////////////////
textScale = d3.scale.linear()
.domain([15,50])
.range([12,6])
.clamp(true);
/////////////////////////////////////////////////////////////
///////////////////////// Create brush //////////////////////
/////////////////////////////////////////////////////////////
//What should the first extent of the brush become - a bit arbitrary this
var brushExtent = Math.max( 1, Math.min( 20, Math.round(data.length*0.2) ) );
brush = d3.svg.brush()
.y(mini_yScale)
.extent([mini_yScale(data[0].country), mini_yScale(data[brushExtent].country)])
.on("brush", brushmove)
//.on("brushend", brushend);
//Set up the visual part of the brush
gBrush = d3.select(".brushGroup").append("g")
.attr("class", "brush")
.call(brush);
gBrush.selectAll(".resize")
.append("line")
.attr("x2", mini_width);
gBrush.selectAll(".resize")
.append("path")
.attr("d", d3.svg.symbol().type("triangle-up").size(20))
.attr("transform", function(d,i) {
return i ? "translate(" + (mini_width/2) + "," + 4 + ") rotate(180)" : "translate(" + (mini_width/2) + "," + -4 + ") rotate(0)";
});
gBrush.selectAll("rect")
.attr("width", mini_width);
//On a click recenter the brush window
gBrush.select(".background")
.on("mousedown.brush", brushcenter)
.on("touchstart.brush", brushcenter);
///////////////////////////////////////////////////////////////////////////
/////////////////// Create a rainbow gradient - for fun ///////////////////
///////////////////////////////////////////////////////////////////////////
defs = svg.append("defs")
//Create two separate gradients for the main and mini bar - just because it looks fun
createGradient("gradient-rainbow-main", "60%");
createGradient("gradient-rainbow-mini", "13%");
//Add the clip path for the main bar chart
defs.append("clipPath")
.attr("id", "clip")
.append("rect")
.attr("x", -main_margin.left)
.attr("width", main_width + main_margin.left)
.attr("height", main_height);
/////////////////////////////////////////////////////////////
/////////////// Set-up the mini bar chart ///////////////////
/////////////////////////////////////////////////////////////
//The mini brushable bar
//DATA JOIN
var mini_bar = d3.select(".miniGroup").selectAll(".bar")
.data(data, function(d) { return d.key; });
//UDPATE
mini_bar
.attr("width", function(d) { return mini_xScale(d.value); })
.attr("y", function(d,i) { return mini_yScale(d.country); })
.attr("height", mini_yScale.rangeBand());
//ENTER
mini_bar.enter().append("rect")
.attr("class", "bar")
.attr("x", 0)
.attr("width", function(d) { return mini_xScale(d.value); })
.attr("y", function(d,i) { return mini_yScale(d.country); })
.attr("height", mini_yScale.rangeBand())
.style("fill", "url(#gradient-rainbow-mini)");
//EXIT
mini_bar.exit()
.remove();
//Start the brush
gBrush.call(brush.event);
}//init
//Function runs on a brush move - to update the big bar chart
function update() {
/////////////////////////////////////////////////////////////
////////// Update the bars of the main bar chart ////////////
/////////////////////////////////////////////////////////////
//DATA JOIN
var bar = d3.select(".mainGroup").selectAll(".bar")
.data(data, function(d) { return d.key; });
//UPDATE
bar
.attr("x", 0)
.attr("width", function(d) { return main_xScale(d.value); })
.attr("y", function(d,i) { return main_yScale(d.country); })
.attr("height", main_yScale.rangeBand());
//ENTER
bar.enter().append("rect")
.attr("class", "bar")
.style("fill", "url(#gradient-rainbow-main)")
.attr("x", 0)
.attr("width", function(d) { return main_xScale(d.value); })
.attr("y", function(d,i) { return main_yScale(d.country); })
.attr("height", main_yScale.rangeBand());
// bar.enter().append("text")
// // .attr("class", "bar")
// // .style("fill", "url(#gradient-rainbow-main)")
// .attr("x", 0)
// // .attr("width", function(d) { return main_xScale(d.value); })
// .attr("y", function(d,i) { return main_yScale(d.country); })
// // .attr("height", main_yScale.rangeBand())
// .text(function(d){return d.country});
//EXIT
bar.exit()
.remove();
}//update
/////////////////////////////////////////////////////////////
////////////////////// Brush functions //////////////////////
/////////////////////////////////////////////////////////////
//First function that runs on a brush move
function brushmove() {
var extent = brush.extent();
//Reset the part that is visible on the big chart
var originalRange = main_yZoom.range();
main_yZoom.domain( extent );
/////////////////////////////////////////////////////////////
///////////////////// Update the axis ///////////////////////
/////////////////////////////////////////////////////////////
//Update the domain of the x & y scale of the big bar chart
main_yScale.domain(data.map(function(d) { return d.country; }));
main_yScale.rangeBands( [ main_yZoom(originalRange[0]), main_yZoom(originalRange[1]) ], 0.4, 0);
//Update the y axis of the big chart
d3.select(".mainGroup")
.select(".y.axis")
.call(main_yAxis);
/////////////////////////////////////////////////////////////
/////////////// Update the mini bar fills ///////////////////
/////////////////////////////////////////////////////////////
//Update the colors within the mini bar chart
var selected = mini_yScale.domain()
.filter(function(d) { return (extent[0] - mini_yScale.rangeBand() + 1e-2 <= mini_yScale(d)) && (mini_yScale(d) <= extent[1] - 1e-2); });
//Update the colors of the mini chart - Make everything outside the brush grey
d3.select(".miniGroup").selectAll(".bar")
.style("fill", function(d, i) { return selected.indexOf(d.country) > -1 ? "url(#gradient-rainbow-mini)" : "#e0e0e0"; });
//Update the label size
d3.selectAll(".y.axis text")
.style("font-size", textScale(selected.length));
//Update the big bar chart
update();
}//brushmove
/////////////////////////////////////////////////////////////
////////////////////// Click functions //////////////////////
/////////////////////////////////////////////////////////////
//Based on http://bl.ocks.org/mbostock/6498000
//What to do when the user clicks on another location along the brushable bar chart
function brushcenter() {
var target = d3.event.target,
extent = brush.extent(),
size = extent[1] - extent[0],
range = mini_yScale.range(),
y0 = d3.min(range) + size / 2,
y1 = d3.max(range) + mini_yScale.rangeBand() - size / 2,
center = Math.max( y0, Math.min( y1, d3.mouse(target)[1] ) );
d3.event.stopPropagation();
gBrush
.call(brush.extent([center - size / 2, center + size / 2]))
.call(brush.event);
}//brushcenter
/////////////////////////////////////////////////////////////
///////////////////// Scroll functions //////////////////////
/////////////////////////////////////////////////////////////
function scroll() {
//Mouse scroll on the mini chart
var extent = brush.extent(),
size = extent[1] - extent[0],
range = mini_yScale.range(),
y0 = d3.min(range),
y1 = d3.max(range) + mini_yScale.rangeBand(),
dy = d3.event.deltaY,
topSection;
if ( extent[0] - dy < y0 ) { topSection = y0; }
else if ( extent[1] - dy > y1 ) { topSection = y1 - size; }
else { topSection = extent[0] - dy; }
//Make sure the page doesn't scroll as well
d3.event.stopPropagation();
d3.event.preventDefault();
gBrush
.call(brush.extent([ topSection, topSection + size ]))
.call(brush.event);
}//scroll
/////////////////////////////////////////////////////////////
///////////////////// Helper functions //////////////////////
/////////////////////////////////////////////////////////////
//Create a gradient
function createGradient(idName, endPerc) {
var coloursRainbow = ["#aafdaf", "#57fe5f", "#37fa37", "#43ee49", "#0ef011", "#00db00", "#03d100", "#12c329", "#35a931", "#44a044", "#469552", "#269b45", "#0c8c2a", "#0b8d25", "#277b33", "#436529"];
defs.append("linearGradient")
.attr("id", idName)
.attr("gradientUnits", "userSpaceOnUse")
.attr("x1", "0%").attr("y1", "0%")
.attr("x2", endPerc).attr("y2", "0%")
.selectAll("stop")
.data(coloursRainbow)
.enter().append("stop")
.attr("offset", function(d,i) { return i/(coloursRainbow.length-1); })
.attr("stop-color", function(d) { return d; });
}//createGradient
//Function to generate random strings of 5 letters - for the demo only
function makeWord() {
var possible_UC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var text = possible_UC.charAt(Math.floor(Math.random() * possible_UC.length));
var possible_LC = "abcdefghijklmnopqrstuvwxyz";
for( var i=0; i < 5; i++ )
text += possible_LC.charAt(Math.floor(Math.random() * possible_LC.length));
return text;
}//makeWord
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment