Carto locations11/16/2023 ![]() ![]() To add a legend, click each layers, navigate over to the “Legend” tab and customize the legend.īy renaming the two layers “Coffee” and “Voting,” I was able to round out the legend. I changed the dots color under the “Style” tab for each layer and customized the hover and clickable tooltips under the “Pop-Up” tab. Click it and change to the basemap of your choice. Scroll down past all your layers until you see the basemap. Turning that layer off should reveal only the closest Dunkin Donuts locations to the polls.Ĭhange the basemap, color the dots, rename layers, and add a legendīefore this map goes live, I need to change the basemap to something nicer. Go back to the main layers page and toggle the main dunkindonuts layer on and off. Click the color bar and make this layer blue and the dot size 12. The analysis will run.Ĭlick the blue “Style this analysis” button. Under 2) Find nearest, click the empty field next to “Target.” Click the “Analyze and Predict” tab and click “Find nearest” tab. The “Add a new analysis” screen will appear. Rename it “Nearest Dunkins to polls.”Ĭlick Nearest Dunkins to polls layer and enter the “Analysis” tab. Next, head back to the main map screen by clicking this back arrow:įind closest Dunkin’ Donuts to each polling locationĭrag your “dunkindonuts” layer to the top. Within your “polling_locations” layer, find the polling_locations tab with the gray background.ĭrag that gray tab up above the polling_locations layer (and beneath the dunkindonuts layer) to create a new layer. Under “Style,” change the Size/Color to “12” and the color of your choice. Good.Ĭhange the Dunkin’ Donuts locations colorĬlick the Dunkin’ Donuts layer and click the “Style” tab. You’ll quickly notice you have two sets of locations. Click the eye symbol to toggle layers on and off. The colors of both layers may be the same. Now, click the blue “Add” button to add the polling locations layer. ![]() While in the Dunkin’ Donuts table, click “Create Map.” Each time, Carto will take you to a table showing you the structure of the dataset. Upload the polling stations GeoJSON file and click the blue “Connect Dataset” button.ĭo the same with the Dunkin’ Donuts CSV. Sign into and navigate to “Datasets” and click the blue “New Dataset” button. Below, versions of the files we’ve hosted for posterity:īoston polling locations (CSV) Upload datasets to As for Dunkin’ Donuts locations, we found a list of stores across the country on data journalist Andrew Ba Tran’s Github. Head to Analyze Boston and find the CSV file of polling locations in Boston. The following tutorial maps the two datasets and then employs a basic distance analysis to find the closest coffeeshops to each polling location. Polls open at 7:00AM and we wondered if we could map polling locations alongside another Boston institution – Dunkin’ Donuts locations. On Tuesday, Bostonians will head to the polls to vote in a mayoral race that has people talking about Tito Jackson’s chances of unseating Marty Walsh. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |