This example I made for Advance Local, a media group that has collects data on users of many different media outlets. Color scales are used to differentiate between different categories, and custom transitions create a nice smooth for comparing different media outlets.
Last active
September 8, 2016 14:10
-
-
Save pstuffa/6c04653830ecfc089932 to your computer and use it in GitHub Desktop.
Bar Chart with Update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Category | Audience | Type | Total | |
---|---|---|---|---|
Automotive | Auto buyers | MLive.com | 3463006 | |
Automotive | Luxury Auto Buyers | MLive.com | 2169640 | |
Automotive | Domestic Auto Buyers | MLive.com | 2519275 | |
Automotive | Asian Auto Buyers | MLive.com | 2034238 | |
B2B | Business Decision Makers | MLive.com | 2537969 | |
B2B | Healthcare Workers | MLive.com | 1475063 | |
B2B | Doctors | MLive.com | 152427 | |
B2B | Nurses | MLive.com | 466381 | |
B2B | Blue Collar Workers | MLive.com | 1154349 | |
B2B | Construction Workers | MLive.com | 1251942 | |
Demographics | Excellent Credit | MLive.com | 2159452 | |
Demographics | Good Credit | MLive.com | 1727740 | |
Demographics | Poor/Fair Credit | MLive.com | 1811107 | |
B2B | Entrepreneurs | MLive.com | 2283073 | |
Demographics | Affluent Investors | MLive.com | 3300884 | |
Demographics | Affluent Millennials | MLive.com | 2235222 | |
Demographics | Hispanic | MLive.com | 1118874 | |
Demographics | African American | MLive.com | 672202 | |
Lifestyle/Interests | Higher Education | MLive.com | 5127549 | |
Sports + Entertainment | Tourists | MLive.com | 3388754 | |
Sports + Entertainment | Performing Arts | MLive.com | 2479933 | |
Sports + Entertainment | Culture Seekers | MLive.com | 5291828 | |
Family | Parent: Child | MLive.com | 1876710 | |
Family | Parent: Infant | MLive.com | 975932 | |
Family | Parent: Pre-Teen | MLive.com | 1892972 | |
Family | Parent: Teenager | MLive.com | 2292285 | |
Food/Dining | Foodies | MLive.com | 3208983 | |
Food/Dining | Beer Wine Spirits | MLive.com | 2453308 | |
Food/Dining | Fine Dining | MLive.com | 227433 | |
Health/Beauty/Medicine | Health & Medicine | MLive.com | 3339546 | |
Health/Beauty/Medicine | Healthy Lifestyle | MLive.com | 3038003 | |
Demographics | LGBT | MLive.com | 304233 | |
Lifestyle/Interests | Fashion Beauty Style | MLive.com | 3715989 | |
Lifestyle/Interests | Renters | MLive.com | 1339893 | |
Lifestyle/Interests | Homebuyers | MLive.com | 2563628 | |
Lifestyle/Interests | Mortgages & Loans | MLive.com | 2620599 | |
Lifestyle/Interests | Home Improvement | MLive.com | 2901627 | |
Lifestyle/Interests | Furniture Shoppers | MLive.com | 1797712 | |
Lifestyle/Interests | Retail Shoppers | MLive.com | 2304675 | |
Sports + Entertainment | Football Fans | MLive.com | 3471956 | |
Sports + Entertainment | Sports Fans | MLive.com | 4727235 | |
Sports + Entertainment | Travelers | MLive.com | 3553262 | |
Politics | Political Junkies | MLive.com | 224343 | |
Politics | Likely Voters | MLive.com | 185851 | |
Politics | Democrat Voters | MLive.com | 2330511 | |
Politics | Republican Voters | MLive.com | 2536651 | |
Automotive | Auto buyers | NJ.com | 4103407 | |
Automotive | Luxury Auto Buyers | NJ.com | 2842253 | |
Automotive | Domestic Auto Buyers | NJ.com | 2931830 | |
Automotive | Asian Auto Buyers | NJ.com | 2597775 | |
B2B | Business Decision Makers | NJ.com | 3096788 | |
B2B | Healthcare Workers | NJ.com | 1827309 | |
B2B | Doctors | NJ.com | 190999 | |
B2B | Nurses | NJ.com | 547570 | |
B2B | Blue Collar Workers | NJ.com | 1370905 | |
B2B | Construction Workers | NJ.com | 1433989 | |
Demographics | Excellent Credit | NJ.com | 2706913 | |
Demographics | Good Credit | NJ.com | 2138325 | |
Demographics | Poor/Fair Credit | NJ.com | 2224506 | |
B2B | Entrepreneurs | NJ.com | 2795342 | |
Demographics | Affluent Investors | NJ.com | 4227303 | |
Demographics | Affluent Millennials | NJ.com | 2798376 | |
Demographics | Hispanic | NJ.com | 1694256 | |
Demographics | African American | NJ.com | 884552 | |
Lifestyle/Interests | Higher Education | NJ.com | 5244008 | |
Sports + Entertainment | Tourists | NJ.com | 4109747 | |
Sports + Entertainment | Performing Arts | NJ.com | 3098396 | |
Sports + Entertainment | Culture Seekers | NJ.com | 6104216 | |
Health/Beauty/Medicine | Elder Caregivers | NJ.com | 860179 | |
Family | Parent: Child | NJ.com | 2305434 | |
Family | Parent: Infant | NJ.com | 1212245 | |
Family | Parent: Pre-Teen | NJ.com | 2321302 | |
Family | Parent: Teenager | NJ.com | 2802397 | |
Food/Dining | Foodies | NJ.com | 3852953 | |
Food/Dining | Beer Wine Spirits | NJ.com | 3061952 | |
Food/Dining | Fine Dining | NJ.com | 62866 | |
Health/Beauty/Medicine | Health & Medicine | NJ.com | 4214114 | |
Health/Beauty/Medicine | Healthy Lifestyle | NJ.com | 3934644 | |
Demographics | LGBT | NJ.com | 125990 | |
Lifestyle/Interests | Fashion Beauty Style | NJ.com | 4694782 | |
Lifestyle/Interests | Renters | NJ.com | 1741281 | |
Lifestyle/Interests | Homebuyers | NJ.com | 3309280 | |
Lifestyle/Interests | Mortgages & Loans | NJ.com | 3276477 | |
Lifestyle/Interests | Home Improvement | NJ.com | 3551129 | |
Lifestyle/Interests | Furniture Shoppers | NJ.com | 2341265 | |
Lifestyle/Interests | Retail Shoppers | NJ.com | 2888095 | |
Sports + Entertainment | Football Fans | NJ.com | 4755758 | |
Sports + Entertainment | Sports Fans | NJ.com | 5989911 | |
Sports + Entertainment | Travelers | NJ.com | 4384652 | |
Politics | Political Junkies | NJ.com | 298934 | |
Politics | Likely Voters | NJ.com | 235799 | |
Politics | Democrat Voters | NJ.com | 3184481 | |
Politics | Republican Voters | NJ.com | 3019669 | |
Automotive | Auto buyers | AL.com & gulflive.com | 5286709 | |
Automotive | Luxury Auto Buyers | AL.com & gulflive.com | 3602128 | |
Automotive | Domestic Auto Buyers | AL.com & gulflive.com | 3914060 | |
Automotive | Asian Auto Buyers | AL.com & gulflive.com | 3318047 | |
B2B | Business Decision Makers | AL.com & gulflive.com | 3971790 | |
B2B | Healthcare Workers | AL.com & gulflive.com | 2377212 | |
B2B | Doctors | AL.com & gulflive.com | 239573 | |
B2B | Nurses | AL.com & gulflive.com | 749294 | |
B2B | Blue Collar Workers | AL.com & gulflive.com | 1807605 | |
B2B | Construction Workers | AL.com & gulflive.com | 1951555 | |
Demographics | Excellent Credit | AL.com & gulflive.com | 3494281 | |
Demographics | Good Credit | AL.com & gulflive.com | 2860877 | |
Demographics | Poor/Fair Credit | AL.com & gulflive.com | 3067140 | |
B2B | Entrepreneurs | AL.com & gulflive.com | 3634011 | |
Demographics | Affluent Investors | AL.com & gulflive.com | 5169489 | |
Demographics | Affluent Millennials | AL.com & gulflive.com | 3627591 | |
Demographics | Hispanic | AL.com & gulflive.com | 1925542 | |
Demographics | African American | AL.com & gulflive.com | 1364391 | |
Lifestyle/Interests | Higher Education | AL.com & gulflive.com | 5514253 | |
Sports + Entertainment | Tourists | AL.com & gulflive.com | 5336881 | |
Sports + Entertainment | Performing Arts | AL.com & gulflive.com | 3928777 | |
Sports + Entertainment | Culture Seekers | AL.com & gulflive.com | 7022679 | |
Health/Beauty/Medicine | Elder Caregivers | AL.com & gulflive.com | 1036550 | |
Family | Parent: Child | AL.com & gulflive.com | 3081467 | |
Family | Parent: Infant | AL.com & gulflive.com | 1589204 | |
Family | Parent: Pre-Teen | AL.com & gulflive.com | 3082689 | |
Family | Parent: Teenager | AL.com & gulflive.com | 3635255 | |
Food/Dining | Foodies | AL.com & gulflive.com | 5048127 | |
Food/Dining | Beer Wine Spirits | AL.com & gulflive.com | 3965559 | |
Food/Dining | Fine Dining | AL.com & gulflive.com | 49233 | |
Health/Beauty/Medicine | Health & Medicine | AL.com & gulflive.com | 5699998 | |
Health/Beauty/Medicine | Healthy Lifestyle | AL.com & gulflive.com | 4809286 | |
Demographics | LGBT | AL.com & gulflive.com | 254505 | |
Lifestyle/Interests | Fashion Beauty Style | AL.com & gulflive.com | 5867946 | |
Lifestyle/Interests | Renters | AL.com & gulflive.com | 2248492 | |
Lifestyle/Interests | Homebuyers | AL.com & gulflive.com | 3890563 | |
Lifestyle/Interests | Mortgages & Loans | AL.com & gulflive.com | 4163008 | |
Lifestyle/Interests | Home Improvement | AL.com & gulflive.com | 4570283 | |
Lifestyle/Interests | Furniture Shoppers | AL.com & gulflive.com | 2790456 | |
Lifestyle/Interests | Retail Shoppers | AL.com & gulflive.com | 3369533 | |
Sports + Entertainment | Football Fans | AL.com & gulflive.com | 5797954 | |
Sports + Entertainment | Sports Fans | AL.com & gulflive.com | 6263873 | |
Sports + Entertainment | Travelers | AL.com & gulflive.com | 5531617 | |
Politics | Political Junkies | AL.com & gulflive.com | 331842 | |
Politics | Likely Voters | AL.com & gulflive.com | 268826 | |
Politics | Democrat Voters | AL.com & gulflive.com | 3806474 | |
Politics | Republican Voters | AL.com & gulflive.com | 4086295 | |
Automotive | Auto buyers | OREGONLIVE | 2425364 | |
Automotive | Luxury Auto Buyers | OREGONLIVE | 1658711 | |
Automotive | Domestic Auto Buyers | OREGONLIVE | 1727137 | |
Automotive | Asian Auto Buyers | OREGONLIVE | 1504703 | |
B2B | Business Decision Makers | OREGONLIVE | 1783863 | |
B2B | Healthcare Workers | OREGONLIVE | 1089899 | |
B2B | Doctors | OREGONLIVE | 104515 | |
B2B | Nurses | OREGONLIVE | 329533 | |
B2B | Blue Collar Workers | OREGONLIVE | 836912 | |
B2B | Construction Workers | OREGONLIVE | 875496 | |
Demographics | Excellent Credit | OREGONLIVE | 1616447 | |
Demographics | Good Credit | OREGONLIVE | 1311314 | |
Demographics | Poor/Fair Credit | OREGONLIVE | 1347691 | |
B2B | Entrepreneurs | OREGONLIVE | 1645818 | |
Demographics | Affluent Investors | OREGONLIVE | 2416632 | |
Demographics | Affluent Millennials | OREGONLIVE | 1655055 | |
Demographics | Hispanic | OREGONLIVE | 998786 | |
Demographics | African American | OREGONLIVE | 452279 | |
Lifestyle/Interests | Higher Education | OREGONLIVE | 2945303 | |
Sports + Entertainment | Tourists | OREGONLIVE | 2521851 | |
Sports + Entertainment | Performing Arts | OREGONLIVE | 1876860 | |
Sports + Entertainment | Culture Seekers | OREGONLIVE | 3328552 | |
Health/Beauty/Medicine | Elder Caregivers | OREGONLIVE | 502161 | |
Family | Parent: Child | OREGONLIVE | 1360644 | |
Family | Parent: Infant | OREGONLIVE | 737435 | |
Family | Parent: Pre-Teen | OREGONLIVE | 1358567 | |
Family | Parent: Teenager | OREGONLIVE | 1654978 | |
Food/Dining | Foodies | OREGONLIVE | 2317856 | |
Food/Dining | Beer Wine Spirits | OREGONLIVE | 1858781 | |
Food/Dining | Fine Dining | OREGONLIVE | 362635 | |
Health/Beauty/Medicine | Health & Medicine | OREGONLIVE | 2380276 | |
Health/Beauty/Medicine | Healthy Lifestyle | OREGONLIVE | 2157808 | |
Demographics | LGBT | OREGONLIVE | 220465 | |
Lifestyle/Interests | Fashion Beauty Style | OREGONLIVE | 2806539 | |
Lifestyle/Interests | Renters | OREGONLIVE | 1087398 | |
Lifestyle/Interests | Homebuyers | OREGONLIVE | 1951273 | |
Lifestyle/Interests | Mortgages & Loans | OREGONLIVE | 1936032 | |
Lifestyle/Interests | Home Improvement | OREGONLIVE | 2079393 | |
Lifestyle/Interests | Furniture Shoppers | OREGONLIVE | 1319372 | |
Lifestyle/Interests | Retail Shoppers | OREGONLIVE | 1745765 | |
Sports + Entertainment | Football Fans | OREGONLIVE | 2604324 | |
Sports + Entertainment | Sports Fans | OREGONLIVE | 2765230 | |
Sports + Entertainment | Travelers | OREGONLIVE | 2738323 | |
Politics | Political Junkies | OREGONLIVE | 135172 | |
Politics | Likely Voters | OREGONLIVE | 94073 | |
Politics | Democrat Voters | OREGONLIVE | 1783337 | |
Politics | Republican Voters | OREGONLIVE | 1828237 | |
Automotive | Auto buyers | NOLA.com | 1805366 | |
Automotive | Luxury Auto Buyers | NOLA.com | 1243387 | |
Automotive | Domestic Auto Buyers | NOLA.com | 1307718 | |
Automotive | Asian Auto Buyers | NOLA.com | 1150481 | |
B2B | Business Decision Makers | NOLA.com | 1388812 | |
B2B | Healthcare Workers | NOLA.com | 826469 | |
B2B | Doctors | NOLA.com | 80526 | |
B2B | Nurses | NOLA.com | 253037 | |
B2B | Blue Collar Workers | NOLA.com | 608256 | |
B2B | Construction Workers | NOLA.com | 666925 | |
Demographics | Excellent Credit | NOLA.com | 1164681 | |
Demographics | Good Credit | NOLA.com | 938835 | |
Demographics | Poor/Fair Credit | NOLA.com | 1001111 | |
B2B | Entrepreneurs | NOLA.com | 1252809 | |
Demographics | Affluent Investors | NOLA.com | 1793316 | |
Demographics | Affluent Millennials | NOLA.com | 1216952 | |
Demographics | Hispanic | NOLA.com | 702050 | |
Demographics | African American | NOLA.com | 531870 | |
Lifestyle/Interests | Higher Education | NOLA.com | 2625489 | |
Sports + Entertainment | Tourists | NOLA.com | 1874361 | |
Sports + Entertainment | Performing Arts | NOLA.com | 1433567 | |
Sports + Entertainment | Culture Seekers | NOLA.com | 2690349 | |
Health/Beauty/Medicine | Elder Caregivers | NOLA.com | 391999 | |
Family | Parent: Child | NOLA.com | 1026730 | |
Family | Parent: Infant | NOLA.com | 546786 | |
Family | Parent: Pre-Teen | NOLA.com | 1034599 | |
Family | Parent: Teenager | NOLA.com | 1250057 | |
Food/Dining | Foodies | NOLA.com | 1807557 | |
Food/Dining | Beer Wine Spirits | NOLA.com | 1418164 | |
Food/Dining | Fine Dining | NOLA.com | 433249 | |
Health/Beauty/Medicine | Health & Medicine | NOLA.com | 1911202 | |
Health/Beauty/Medicine | Healthy Lifestyle | NOLA.com | 1631902 | |
Demographics | LGBT | NOLA.com | 135926 | |
Lifestyle/Interests | Fashion Beauty Style | NOLA.com | 2053914 | |
Lifestyle/Interests | Renters | NOLA.com | 762338 | |
Lifestyle/Interests | Homebuyers | NOLA.com | 1389131 | |
Lifestyle/Interests | Mortgages & Loans | NOLA.com | 1424156 | |
Lifestyle/Interests | Home Improvement | NOLA.com | 1665334 | |
Lifestyle/Interests | Furniture Shoppers | NOLA.com | 979874 | |
Lifestyle/Interests | Retail Shoppers | NOLA.com | 1262268 | |
Sports + Entertainment | Football Fans | NOLA.com | 2416812 | |
Sports + Entertainment | Sports Fans | NOLA.com | 2674870 | |
Sports + Entertainment | Travelers | NOLA.com | 1984729 | |
Politics | Political Junkies | NOLA.com | 111371 | |
Politics | Likely Voters | NOLA.com | 96617 | |
Politics | Democrat Voters | NOLA.com | 1312759 | |
Politics | Republican Voters | NOLA.com | 1370846 | |
Automotive | Auto buyers | cleveland.com | 2318290 | |
Automotive | Luxury Auto Buyers | cleveland.com | 1530607 | |
Automotive | Domestic Auto Buyers | cleveland.com | 1704988 | |
Automotive | Asian Auto Buyers | cleveland.com | 1472303 | |
B2B | Business Decision Makers | cleveland.com | 1754549 | |
B2B | Healthcare Workers | cleveland.com | 1050848 | |
B2B | Doctors | cleveland.com | 112886 | |
B2B | Nurses | cleveland.com | 347255 | |
B2B | Blue Collar Workers | cleveland.com | 810001 | |
B2B | Construction Workers | cleveland.com | 838753 | |
Demographics | Excellent Credit | cleveland.com | 1512876 | |
Demographics | Good Credit | cleveland.com | 1226861 | |
Demographics | Poor/Fair Credit | cleveland.com | 1280639 | |
B2B | Entrepreneurs | cleveland.com | 1580319 | |
Demographics | Affluent Investors | cleveland.com | 2235838 | |
Demographics | Affluent Millennials | cleveland.com | 1553840 | |
Demographics | Hispanic | cleveland.com | 785527 | |
Demographics | African American | cleveland.com | 555247 | |
Lifestyle/Interests | Higher Education | cleveland.com | 2483949 | |
Sports + Entertainment | Tourists | cleveland.com | 2383723 | |
Sports + Entertainment | Performing Arts | cleveland.com | 1701035 | |
Sports + Entertainment | Culture Seekers | cleveland.com | 3315199 | |
Health/Beauty/Medicine | Elder Caregivers | cleveland.com | 473339 | |
Family | Parent: Child | cleveland.com | 1314997 | |
Family | Parent: Infant | cleveland.com | 690773 | |
Family | Parent: Pre-Teen | cleveland.com | 1329308 | |
Family | Parent: Teenager | cleveland.com | 1569948 | |
Food/Dining | Foodies | cleveland.com | 2147033 | |
Food/Dining | Beer Wine Spirits | cleveland.com | 1696693 | |
Food/Dining | Fine Dining | cleveland.com | 147659 | |
Health/Beauty/Medicine | Health & Medicine | cleveland.com | 2324440 | |
Health/Beauty/Medicine | Healthy Lifestyle | cleveland.com | 2173887 | |
Demographics | LGBT | cleveland.com | 105527 | |
Lifestyle/Interests | Fashion Beauty Style | cleveland.com | 2579574 | |
Lifestyle/Interests | Renters | cleveland.com | 962808 | |
Lifestyle/Interests | Homebuyers | cleveland.com | 1758016 | |
Lifestyle/Interests | Mortgages & Loans | cleveland.com | 1821044 | |
Lifestyle/Interests | Home Improvement | cleveland.com | 2052149 | |
Lifestyle/Interests | Furniture Shoppers | cleveland.com | 1259088 | |
Lifestyle/Interests | Retail Shoppers | cleveland.com | 1576008 | |
Sports + Entertainment | Football Fans | cleveland.com | 3095462 | |
Sports + Entertainment | Sports Fans | cleveland.com | 3293442 | |
Sports + Entertainment | Travelers | cleveland.com | 2560493 | |
Politics | Political Junkies | cleveland.com | 157432 | |
Politics | Likely Voters | cleveland.com | 147142 | |
Politics | Democrat Voters | cleveland.com | 1680397 | |
Politics | Republican Voters | cleveland.com | 1718437 | |
Automotive | Auto buyers | syracuse | 1171693 | |
Automotive | Luxury Auto Buyers | syracuse | 788923 | |
Automotive | Domestic Auto Buyers | syracuse | 840920 | |
Automotive | Asian Auto Buyers | syracuse | 720148 | |
B2B | Business Decision Makers | syracuse | 875043 | |
B2B | Healthcare Workers | syracuse | 525711 | |
B2B | Doctors | syracuse | 55576 | |
B2B | Nurses | syracuse | 162725 | |
B2B | Blue Collar Workers | syracuse | 405217 | |
B2B | Construction Workers | syracuse | 425858 | |
Demographics | Excellent Credit | syracuse | 760141 | |
Demographics | Good Credit | syracuse | 612921 | |
Demographics | Poor/Fair Credit | syracuse | 638244 | |
B2B | Entrepreneurs | syracuse | 800494 | |
Demographics | Affluent Investors | syracuse | 1156375 | |
Demographics | Affluent Millennials | syracuse | 771855 | |
Demographics | Hispanic | syracuse | 409694 | |
Demographics | African American | syracuse | 224860 | |
Lifestyle/Interests | Higher Education | syracuse | 1423024 | |
Sports + Entertainment | Tourists | syracuse | 1172782 | |
Sports + Entertainment | Performing Arts | syracuse | 862622 | |
Sports + Entertainment | Culture Seekers | syracuse | 1760942 | |
Health/Beauty/Medicine | Elder Caregivers | syracuse | 268273 | |
Family | Parent: Child | syracuse | 659588 | |
Family | Parent: Infant | syracuse | 340940 | |
Family | Parent: Pre-Teen | syracuse | 659218 | |
Family | Parent: Teenager | syracuse | 807446 | |
Food/Dining | Foodies | syracuse | 1125447 | |
Food/Dining | Beer Wine Spirits | syracuse | 860208 | |
Food/Dining | Fine Dining | syracuse | 23245 | |
Health/Beauty/Medicine | Health & Medicine | syracuse | 1148801 | |
Health/Beauty/Medicine | Healthy Lifestyle | syracuse | 1057366 | |
Demographics | LGBT | syracuse | 121396 | |
Lifestyle/Interests | Fashion Beauty Style | syracuse | 1376816 | |
Lifestyle/Interests | Renters | syracuse | 495825 | |
Lifestyle/Interests | Homebuyers | syracuse | 901120 | |
Lifestyle/Interests | Mortgages & Loans | syracuse | 931934 | |
Lifestyle/Interests | Home Improvement | syracuse | 1015631 | |
Lifestyle/Interests | Furniture Shoppers | syracuse | 643924 | |
Lifestyle/Interests | Retail Shoppers | syracuse | 860726 | |
Sports + Entertainment | Football Fans | syracuse | 1244290 | |
Sports + Entertainment | Sports Fans | syracuse | 1792464 | |
Sports + Entertainment | Travelers | syracuse | 1248806 | |
Politics | Political Junkies | syracuse | 87686 | |
Politics | Likely Voters | syracuse | 75602 | |
Politics | Democrat Voters | syracuse | 848798 | |
Politics | Republican Voters | syracuse | 880676 | |
Automotive | Auto buyers | PennLive | 1059631 | |
Automotive | Luxury Auto Buyers | PennLive | 728696 | |
Automotive | Domestic Auto Buyers | PennLive | 786938 | |
Automotive | Asian Auto Buyers | PennLive | 679413 | |
B2B | Business Decision Makers | PennLive | 815452 | |
B2B | Healthcare Workers | PennLive | 487353 | |
B2B | Doctors | PennLive | 50122 | |
B2B | Nurses | PennLive | 156088 | |
B2B | Blue Collar Workers | PennLive | 389527 | |
B2B | Construction Workers | PennLive | 400596 | |
Demographics | Excellent Credit | PennLive | 717903 | |
Demographics | Good Credit | PennLive | 566526 | |
Demographics | Poor/Fair Credit | PennLive | 590354 | |
B2B | Entrepreneurs | PennLive | 740471 | |
Demographics | Affluent Investors | PennLive | 1052673 | |
Demographics | Affluent Millennials | PennLive | 731735 | |
Demographics | Hispanic | PennLive | 360538 | |
Demographics | African American | PennLive | 209680 | |
Lifestyle/Interests | Higher Education | PennLive | 1282409 | |
Sports + Entertainment | Tourists | PennLive | 1079080 | |
Sports + Entertainment | Performing Arts | PennLive | 796718 | |
Sports + Entertainment | Culture Seekers | PennLive | 1490175 | |
Health/Beauty/Medicine | Elder Caregivers | PennLive | 239459 | |
Family | Parent: Child | PennLive | 605921 | |
Family | Parent: Infant | PennLive | 310449 | |
Family | Parent: Pre-Teen | PennLive | 612481 | |
Family | Parent: Teenager | PennLive | 737839 | |
Food/Dining | Foodies | PennLive | 1040719 | |
Food/Dining | Beer Wine Spirits | PennLive | 798661 | |
Food/Dining | Fine Dining | PennLive | 7423 | |
Health/Beauty/Medicine | Health & Medicine | PennLive | 1092185 | |
Health/Beauty/Medicine | Healthy Lifestyle | PennLive | 978355 | |
Demographics | LGBT | PennLive | 65033 | |
Lifestyle/Interests | Fashion Beauty Style | PennLive | 1206639 | |
Lifestyle/Interests | Renters | PennLive | 457352 | |
Lifestyle/Interests | Homebuyers | PennLive | 803636 | |
Lifestyle/Interests | Mortgages & Loans | PennLive | 852965 | |
Lifestyle/Interests | Home Improvement | PennLive | 941197 | |
Lifestyle/Interests | Furniture Shoppers | PennLive | 599351 | |
Lifestyle/Interests | Retail Shoppers | PennLive | 771474 | |
Sports + Entertainment | Football Fans | PennLive | 1225489 | |
Sports + Entertainment | Sports Fans | PennLive | 1672073 | |
Sports + Entertainment | Travelers | PennLive | 1148457 | |
Politics | Political Junkies | PennLive | 75099 | |
Politics | Likely Voters | PennLive | 57750 | |
Politics | Democrat Voters | PennLive | 789289 | |
Politics | Republican Voters | PennLive | 819511 | |
Automotive | Auto buyers | MassLive | 875116 | |
Automotive | Luxury Auto Buyers | MassLive | 576823 | |
Automotive | Domestic Auto Buyers | MassLive | 614275 | |
Automotive | Asian Auto Buyers | MassLive | 535517 | |
B2B | Business Decision Makers | MassLive | 650447 | |
B2B | Healthcare Workers | MassLive | 388879 | |
B2B | Doctors | MassLive | 38833 | |
B2B | Nurses | MassLive | 119942 | |
B2B | Blue Collar Workers | MassLive | 299047 | |
B2B | Construction Workers | MassLive | 313595 | |
Demographics | Excellent Credit | MassLive | 571488 | |
Demographics | Good Credit | MassLive | 455260 | |
Demographics | Poor/Fair Credit | MassLive | 468935 | |
B2B | Entrepreneurs | MassLive | 579755 | |
Demographics | Affluent Investors | MassLive | 864972 | |
Demographics | Affluent Millennials | MassLive | 573065 | |
Demographics | Hispanic | MassLive | 355753 | |
Demographics | African American | MassLive | 163901 | |
Lifestyle/Interests | Higher Education | MassLive | 934199 | |
Sports + Entertainment | Tourists | MassLive | 893589 | |
Sports + Entertainment | Performing Arts | MassLive | 651616 | |
Sports + Entertainment | Culture Seekers | MassLive | 1191378 | |
Health/Beauty/Medicine | Elder Caregivers | MassLive | 186924 | |
Family | Parent: Child | MassLive | 475204 | |
Family | Parent: Infant | MassLive | 258052 | |
Family | Parent: Pre-Teen | MassLive | 485957 | |
Family | Parent: Teenager | MassLive | 587368 | |
Food/Dining | Foodies | MassLive | 851101 | |
Food/Dining | Beer Wine Spirits | MassLive | 657412 | |
Food/Dining | Fine Dining | MassLive | 28499 | |
Health/Beauty/Medicine | Health & Medicine | MassLive | 908961 | |
Health/Beauty/Medicine | Healthy Lifestyle | MassLive | 782134 | |
Demographics | LGBT | MassLive | 35833 | |
Lifestyle/Interests | Fashion Beauty Style | MassLive | 1022610 | |
Lifestyle/Interests | Renters | MassLive | 371498 | |
Lifestyle/Interests | Homebuyers | MassLive | 656162 | |
Lifestyle/Interests | Mortgages & Loans | MassLive | 699193 | |
Lifestyle/Interests | Home Improvement | MassLive | 751290 | |
Lifestyle/Interests | Furniture Shoppers | MassLive | 469692 | |
Lifestyle/Interests | Retail Shoppers | MassLive | 632248 | |
Sports + Entertainment | Football Fans | MassLive | 989757 | |
Sports + Entertainment | Sports Fans | MassLive | 1212359 | |
Sports + Entertainment | Travelers | MassLive | 1001733 | |
Politics | Political Junkies | MassLive | 64917 | |
Politics | Likely Voters | MassLive | 53236 | |
Politics | Democrat Voters | MassLive | 640377 | |
Politics | Republican Voters | MassLive | 669204 | |
Automotive | Auto buyers | SILive.com | 423622 | |
Automotive | Luxury Auto Buyers | SILive.com | 283529 | |
Automotive | Domestic Auto Buyers | SILive.com | 286583 | |
Automotive | Asian Auto Buyers | SILive.com | 249091 | |
B2B | Business Decision Makers | SILive.com | 305227 | |
B2B | Healthcare Workers | SILive.com | 185226 | |
B2B | Doctors | SILive.com | 21239 | |
B2B | Nurses | SILive.com | 56705 | |
B2B | Blue Collar Workers | SILive.com | 132638 | |
B2B | Construction Workers | SILive.com | 139729 | |
Demographics | Excellent Credit | SILive.com | 275537 | |
Demographics | Good Credit | SILive.com | 218559 | |
Demographics | Poor/Fair Credit | SILive.com | 227322 | |
B2B | Entrepreneurs | SILive.com | 276499 | |
Demographics | Affluent Investors | SILive.com | 433138 | |
Demographics | Affluent Millennials | SILive.com | 279646 | |
Demographics | Hispanic | SILive.com | 194625 | |
Demographics | African American | SILive.com | 89113 | |
Lifestyle/Interests | Higher Education | SILive.com | 411259 | |
Sports + Entertainment | Tourists | SILive.com | 432259 | |
Sports + Entertainment | Performing Arts | SILive.com | 313905 | |
Sports + Entertainment | Culture Seekers | SILive.com | 734885 | |
Health/Beauty/Medicine | Elder Caregivers | SILive.com | 97527 | |
Family | Parent: Child | SILive.com | 230626 | |
Family | Parent: Infant | SILive.com | 123987 | |
Family | Parent: Pre-Teen | SILive.com | 237148 | |
Family | Parent: Teenager | SILive.com | 286021 | |
Food/Dining | Foodies | SILive.com | 436384 | |
Food/Dining | Beer Wine Spirits | SILive.com | 316527 | |
Food/Dining | Fine Dining | SILive.com | 141137 | |
Health/Beauty/Medicine | Health & Medicine | SILive.com | 448126 | |
Health/Beauty/Medicine | Healthy Lifestyle | SILive.com | 395885 | |
Demographics | LGBT | SILive.com | 17825 | |
Lifestyle/Interests | Fashion Beauty Style | SILive.com | 500183 | |
Lifestyle/Interests | Renters | SILive.com | 179274 | |
Lifestyle/Interests | Homebuyers | SILive.com | 349222 | |
Lifestyle/Interests | Mortgages & Loans | SILive.com | 325288 | |
Lifestyle/Interests | Home Improvement | SILive.com | 386072 | |
Lifestyle/Interests | Furniture Shoppers | SILive.com | 228245 | |
Lifestyle/Interests | Retail Shoppers | SILive.com | 282792 | |
Sports + Entertainment | Football Fans | SILive.com | 348765 | |
Sports + Entertainment | Sports Fans | SILive.com | 459767 | |
Sports + Entertainment | Travelers | SILive.com | 476864 | |
Politics | Political Junkies | SILive.com | 29023 | |
Politics | Likely Voters | SILive.com | 25691 | |
Politics | Democrat Voters | SILive.com | 305563 | |
Politics | Republican Voters | SILive.com | 311659 | |
Automotive | Auto buyers | Advance Local | 38828027 | |
Automotive | Luxury Auto Buyers | Advance Local | 27574931 | |
Automotive | Domestic Auto Buyers | Advance Local | 29752532 | |
Automotive | Asian Auto Buyers | Advance Local | 25780281 | |
B2B | Business Decision Makers | Advance Local | 29730940 | |
B2B | Healthcare Workers | Advance Local | 17477038 | |
B2B | Doctors | Advance Local | 1766925 | |
B2B | Nurses | Advance Local | 5571869 | |
B2B | Blue Collar Workers | Advance Local | 14479621 | |
B2B | Construction Workers | Advance Local | 14051356 | |
Demographics | Excellent Credit | Advance Local | 26302149 | |
Demographics | Good Credit | Advance Local | 20907557 | |
Demographics | Poor/Fair Credit | Advance Local | 21545969 | |
B2B | Entrepreneurs | Advance Local | 26042014 | |
Demographics | Affluent Investors | Advance Local | 37931169 | |
Demographics | Affluent Millennials | Advance Local | 26080931 | |
Demographics | Hispanic | Advance Local | 14862644 | |
Demographics | African American | Advance Local | 9048336 | |
Lifestyle/Interests | Higher Education | Advance Local | 42894192 | |
Sports + Entertainment | Tourists | Advance Local | 38310203 | |
Sports + Entertainment | Performing Arts | Advance Local | 29267032 | |
Sports + Entertainment | Culture Seekers | Advance Local | 50544602 | |
Health/Beauty/Medicine | Elder Caregivers | Advance Local | 8532099 | |
Family | Parent: Child | Advance Local | 22298648 | |
Family | Parent: Infant | Advance Local | 10338752 | |
Family | Parent: Pre-Teen | Advance Local | 22492310 | |
Family | Parent: Teenager | Advance Local | 26496620 | |
Food/Dining | Foodies | Advance Local | 36656068 | |
Food/Dining | Beer Wine Spirits | Advance Local | 29887266 | |
Food/Dining | Fine Dining | Advance Local | 1522485 | |
Health/Beauty/Medicine | Health & Medicine | Advance Local | 38896618 | |
Health/Beauty/Medicine | Healthy Lifestyle | Advance Local | 35645765 | |
Demographics | LGBT | Advance Local | 1337697 | |
Lifestyle/Interests | Fashion Beauty Style | Advance Local | 36034880 | |
Lifestyle/Interests | Renters | Advance Local | 16701860 | |
Lifestyle/Interests | Homebuyers | Advance Local | 29204580 | |
Lifestyle/Interests | Mortgages & Loans | Advance Local | 31262945 | |
Lifestyle/Interests | Home Improvement | Advance Local | 33920702 | |
Lifestyle/Interests | Furniture Shoppers | Advance Local | 21960643 | |
Lifestyle/Interests | Retail Shoppers | Advance Local | 27904409 | |
Sports + Entertainment | Football Fans | Advance Local | 38248254 | |
Sports + Entertainment | Sports Fans | Advance Local | 33138426 | |
Sports + Entertainment | Travelers | Advance Local | 40190288 | |
Politics | Political Junkies | Advance Local | 2673713 | |
Politics | Likely Voters | Advance Local | 2240133 | |
Politics | Democrat Voters | Advance Local | 28140614 | |
Politics | Republican Voters | Advance Local | 28983598 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- Paul Buffa 2015 | |
--> | |
<meta charset="utf-8"> | |
<link href='http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
font: 10px Lato; | |
} | |
select { | |
color: #000; | |
font-size: 14px; | |
font-weight: bold; | |
padding: 2px 10px; | |
width: 378px; | |
} | |
p { | |
font: 14px Lato; | |
margin-left: 100px; | |
max-width: 800px; | |
} | |
#disclaimer { | |
font: 10px Lato; | |
max-width: 300px; | |
} | |
h1 { | |
font: 26px Lato ; | |
margin-left: 100px; | |
font-weight: bold; | |
} | |
#selectSpot { | |
margin-left: 100px; | |
} | |
#areaList { | |
margin-left: 95px; | |
} | |
.axis line, | |
.axis path { | |
fill: none; | |
stroke: #000; | |
shape-rendering: crispEdges; | |
} | |
.x { | |
font-size: 0; | |
} | |
rect { | |
stroke: #000; | |
stroke-opacity: .5; | |
stroke-width: .1; | |
fill-opacity: .8; | |
} | |
</style> | |
<body> | |
<h1> We Have Engaged Audiences</h1> | |
<p> | |
Our data-driven approach to Audience Targeting enables us to reach everyone from hyper-local auto intenders to huge national audiences with interest and purchase intent in products and services just like yours. We have thousands of pre-built audiences, but if you require a custom, highly targeted audience to grow your business just ask: we can likely find a way to reach your best customers and prospects, wherever they are. | |
</p> | |
<div id='selectSpot'> | |
</div> | |
<div id='areaList'> | |
</div> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js"></script> | |
<script> | |
var areas = ['MLive.com','NJ.com','AL.com & gulflive.com','OREGONLIVE','NOLA.com','cleveland.com','syracuse','PennLive','MassLive','SILive.com' ,'Advance Local'], | |
// CHANGE VERSION HERE | |
version = 'Advance Local'; | |
var margin = {top: 20, right: 150, bottom: 100, left: 100}, | |
width = 1050 - margin.left - margin.right, | |
height = 350 - margin.top - margin.bottom, | |
recWidth = 15; | |
var x = d3.scale.ordinal() | |
.rangeBands([0,width]); | |
var y = d3.scale.linear() | |
.range([height, 0]); | |
var xAxis = d3.svg.axis() | |
.scale(x) | |
.orient("bottom"); | |
var yAxis = d3.svg.axis() | |
.scale(y) | |
.orient("left"); | |
var colorScale = d3.scale.category10(); | |
var svg = d3.select("body").append("svg") | |
.attr("width", width + margin.left + margin.right) | |
.attr("height", height + margin.top + margin.bottom) | |
.append("g") | |
.attr("transform", "translate(" + margin.left + "," + margin.top + ")"); | |
// Background Rect | |
svg.append("rect") | |
.attr("width", width) | |
.attr("height", height) | |
.style("fill-opacity", .05); | |
// Load in Market Data | |
d3.tsv("data.tsv", function(error, data) { | |
data.forEach(function(d) { | |
d['Total'] = +d['Total'] | |
d['Aud'] = d['Audience'].replace(/\s+/g, '').replace(/\W/g, ''); | |
d['Cat'] = d['Category'].replace(/\s+/g, '').replace(/\W/g, ''); | |
}); | |
var nestedData = d3.nest() | |
.key(function(d) {return d.Type;}) | |
.sortKeys(d3.descending) | |
.sortValues(function(a,b) {return b['Total']-a['Total'];}) | |
.entries(data); | |
var selectedData = nestedData.filter(function(d) { return d.key === version; }) | |
console.log(nestedData) | |
// Setting X & Y Domains based on the data | |
y.domain(d3.extent(selectedData[0].values.map(function(d, i) { return d.Total; }))).nice(); | |
x.domain(selectedData[0].values.map(function(d) { return d.Audience; })); | |
svg.selectAll(".bar") | |
.data(selectedData[0].values) | |
.enter().append("rect") | |
.attr("class", function(d) { return "bar " + d.Aud + " " + d.Cat}) | |
.attr("rx", 2) | |
.attr("ry", 2) | |
.attr("x", function(d) { return x(d.Audience); }) | |
.attr("y", function(d) { return y(d.Total); }) | |
.attr("height", function(d) { return height - y(d.Total); }) | |
.attr("width", recWidth) | |
.style("fill", function(d) { return colorScale(d.Category); }); | |
// Axis Labels | |
svg.selectAll("text") | |
.data(selectedData[0].values) | |
.enter().append("text") | |
.attr("class", function(d) { return "axisText " + d['Aud']}) | |
.attr("y", height + 14) | |
.attr("text-anchor", "top") | |
.attr("transform",function(d) { return "rotate(45 " + x(d['Audience']) + "," + (height + 14) + ")";}) | |
.attr("x", function(d, i) { return x(d['Audience']); }) | |
.text(function(d) { return d['Audience']}); | |
// appending the axes | |
svg.append("g") | |
.attr("class", "x axis") | |
.attr("transform", "translate(0," + height + ")") | |
.call(xAxis); | |
svg.append("g") | |
.attr("class", "y axis") | |
.call(yAxis); | |
// Need to make these mobile compatitble | |
svg.append("text") | |
.attr("class","label") | |
.attr("x", -40) | |
.attr("y", 30) | |
.attr("text-anchor", "top") | |
.attr("transform",function(d) { return "rotate(270 " + 10 + "," + (height / 2) + ")";}) | |
.style("font-size","12px") | |
.text("Unique Monthly Visitors"); | |
svg.append("text") | |
.attr("class","label") | |
.attr("x", width - 10) | |
.attr("y", - 10) | |
.attr("text-anchor", "end") | |
.style("font-size","12px") | |
.text("Click to filter by category"); | |
// Dropdown Filter | |
d3.select("#selectSpot") | |
.append("text") | |
.attr("class","label") | |
.attr("text-anchor", "top") | |
.style("font-size","12px") | |
.text("Click to see how our audiences shift across the country."); | |
var select = d3.select("#areaList") | |
.append("select") | |
.on("change", change), | |
options = select.selectAll('option').data(areas); // Data join | |
// Enter selection | |
options.enter().append("option").text(function(d) { return d; }); | |
// Change the dataset | |
function change() { | |
// turn off pointer events | |
d3.selectAll(".bar") | |
.style("pointer-events","None"); | |
// Retrieve dropdown selection | |
var newValue = this.value; | |
newData = nestedData.filter(function(d) { return d.key === newValue; }) | |
// Reset domains | |
y.domain(d3.extent(newData[0].values.map(function(d, i) { return d.Total; }))).nice(); | |
x.domain(newData[0].values.map(function(d) { return d.Audience; })); | |
// Replot bars using update method | |
svg.selectAll(".bar") | |
.data(newData[0].values) | |
.transition() | |
.delay(function(d,i) {return i * 20;}) | |
.duration(1000) | |
.attr("class", function(d) { return "bar " + d['Aud'] + " " + d['Cat']}) | |
.attr("width",recWidth) | |
.attr("height", function(d,i) { return height - y(d['Total']); }) | |
.style("fill", function(d,i) { return colorScale(d['Category']); }) | |
.attr("rx", 2) | |
.attr("ry", 2) | |
.attr("y", function(d,i) { return y(d['Total']); }) | |
.attr("x", function(d,i) { return x(d['Audience']); }) | |
.each("end", function() { d3.selectAll(".bar").style("pointer-events","all"); }) | |
// Axis Labels | |
svg.selectAll("text") | |
.data(newData[0].values) | |
.transition() | |
.duration(1000) | |
.attr("class", function(d) { return "axisText " + d['Aud']}) | |
.attr("y", height + 14) | |
.attr("text-anchor", "top") | |
.attr("transform",function(d) { return "rotate(45 " + x(d['Audience']) + "," + (height + 14) + ")";}) | |
.attr("x", function(d, i) { return x(d['Audience']); }) | |
.text(function(d) { return d['Audience']}); | |
// Reset axes | |
svg.select(".y") | |
.attr("class", "y axis") | |
.transition() | |
.duration(1000) | |
.call(yAxis); | |
svg.select(".x") | |
.attr("class", "x axis") | |
.transition() | |
.delay(function(d,i) {return i * 20;}) | |
.duration(1000) | |
.attr("transform", "translate(0," + height + ")") | |
.call(xAxis); | |
} | |
// Hover Events | |
function hover(d,i) { | |
svg.selectAll(".bar") | |
.transition() | |
.delay(100) | |
.duration(2000) | |
.ease("elastic") | |
.attr("height", 10) | |
.attr("y",height - 10) | |
.style("fill-opacity",.3); | |
var textFill = d['Audience']; | |
textFillTwo = d['Category'], | |
textFillThree = "Audience of " + numeral(d['Total']).format('0,0'), | |
xLoc = d['Audience'], | |
yLoc = d['Total']; | |
d3.selectAll(".bar" + d['Aud']) | |
.transition() | |
.duration(2000) | |
.attr("height", function(d,i) { return height - y(yLoc); }) | |
.attr("y", function(d,i) { return y(yLoc); }) | |
.style("fill-opacity",1); | |
d3.selectAll("." + d['Aud']) | |
.transition() | |
.duration(500) | |
.style("font-size","12px"); | |
svg.append("text") | |
.attr("class","box") | |
.attr("x", function(d,i) { if(y(yLoc) < (height/3)) { return x(xLoc) + 25; } else { return x(xLoc); }}) | |
.attr("y", function(d,i) { if(y(yLoc) < (height/3)) { return y(yLoc) + 15; } else { return y(yLoc) - 45; }}) | |
.attr("text-anchor", "top") | |
.style("font-size","18px") | |
.text(textFill); | |
svg.append("text") | |
.attr("class","box") | |
.attr("x", function(d,i) { if(y(yLoc) < (height/3)) { return x(xLoc) + 25; } else { return x(xLoc); }}) | |
.attr("y", function(d,i) { if(y(yLoc) < (height/3)) { return y(yLoc) + 35; } else { return y(yLoc) - 25; }}) | |
.attr("text-anchor", "top") | |
.style("font-size","18px") | |
.text(textFillTwo); | |
svg.append("text") | |
.attr("class","box") | |
.attr("x", function(d,i) { if(y(yLoc) < (height/3)) { return x(xLoc) + 25; } else { return x(xLoc); }}) | |
.attr("y", function(d,i) { if(y(yLoc) < (height/3)) { return y(yLoc) + 55; } else { return y(yLoc) - 5; }}) | |
.attr("text-anchor", function(d,i) { if(y(yLoc) < (height/3)) { return "end"; } else { "top"; }}) | |
.attr("text-anchor", "top") | |
.style("font-size","18px") | |
.text(textFillThree); | |
} | |
function hoverOut() { | |
d3.selectAll(".box").remove(); | |
d3.selectAll(".bar").transition().delay(100).style("pointer-events","none"); | |
svg.selectAll(".bar") | |
.transition() | |
.duration(2000) | |
.ease("elastic") | |
.attr("height", function(d,i) { return height - y(d['Total']); }) | |
.attr("y", function(d,i) { return y(d['Total']); }) | |
.style("fill-opacity",1) | |
.each("end", function() { d3.selectAll(".bar").style("pointer-events","all"); }); | |
svg.selectAll(".axisText") | |
.transition() | |
.duration(500) | |
.ease("linear") | |
.style("font-size","10px"); | |
} | |
svg.selectAll(".bar") | |
.on("mouseover", hover) | |
.on("mouseout", hoverOut); | |
// Click on Legend to "Filter" Dataset | |
function legendClick() { | |
// Removing non-alphabetic characters for selection | |
var filterAud = this.__data__.replace(/\s+/g, '').replace(/\W/g, ''); | |
svg.selectAll(".bar") | |
.transition() | |
.duration(2000) | |
.ease("elastic") | |
.attr("height", 10) | |
.attr("y",height - 10) | |
.style("fill-opacity",.3); | |
svg.selectAll("." + filterAud) | |
.transition() | |
.duration(2000) | |
.ease("elastic") | |
.attr("height", function(d,i) { return height - y(d['Total']); }) | |
.attr("y", function(d,i) { return y(d['Total']); }) | |
.style("fill-opacity",1); | |
} | |
// Legend | |
var legend = svg.selectAll(".legend") | |
.data(colorScale.domain()) | |
.enter().append("g") | |
.attr("class", "legend") | |
.attr("transform", function(d, i) { return "translate(0," + i * 20 + ")"; }); | |
legend.append("rect") | |
.attr("x", width - 22) | |
.attr("y", 4) | |
.attr("width", 18) | |
.attr("height", 18) | |
.style("fill", colorScale) | |
.on("click", legendClick); | |
legend.append("text") | |
.attr("x", width - 28) | |
.attr("y", 13) | |
.attr("dy", ".35em") | |
.style("text-anchor", "end") | |
.style("font-size","12px") | |
.text(function(d) { return d; }); | |
}); // Ends Data Function | |
</script> | |
<br /> | |
<p id="disclaimer"> | |
Source: Lotame Data Management Platform, Advance Digital Audiences, July 2015. Exact audience sizes are provided for comparison purposes only and will vary over time and with seasonality. | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment