CARTO User Manual

CARTO User Manual

Build a categories & bubbles visualization

Context

Understanding population distribution has important implications in a wide range of geospatial analysis such as human exposure to hazards and climate change or improving geomarketing and site selection strategies.

In this tutorial we are going to represent the distribution of the most populated places by applying colours to each type of place and a point size based on the maximum population. Therefore, we can easily understand how the human settlement areas is distributed with a simple visualization that we can use in further analysis.

Steps To Reproduce

  1. Go to the CARTO signup page.

    • Click on Log in.
    • Enter your email address and password. You can also log in with your existing Google account by clicking Continue with Google.
    • Once you have entered your credentials: click Continue.

    Log in Email and password

  2. From the Navigation Menu in the left panel, select Data Explorer.

    Menu features data explorer

  3. Select the CARTO Data Warehouse connection and click on demo data > demo_tables from the collapsible tree.

    Data Explorer content carto data warehouse

  4. Selected “populated_places” and explore the preview of the map and the details of the table.

    Data Explorer map prewiew

    Data Explorer data prewiew

  5. Create a map by clicking on the Create > Create map button on the top. This will open the table as a layer on a CARTO Builder map. Check Creating a map from your data to get started.

    Data Explorer create map from table

  6. Change layer name to “Populated Places”.

    Map layers rename

  7. Click on Layer style to start styling the layer.

    Map layers options

    Map layers style

  8. Click on the “three dots” icon in the Fill Color section and select “Color Based On” feature featurecla. It has information about what kind of places there are. Pick a palette for a categorical variable (versus a gradient).

    Map fill style based on field

  9. Now click on the options for the Radius configuration and in the section “Radius Based On” pick the column pop_max. Play with the minimum/maximum size to style the layer as you like.

    Map style radius additional features

  10. Go to Widget tab. If you haven’t created a widget yet, you will see the following page:

    Map widgets add new widget

  11. Add a widget based on the column admin0name. Now we can filter the data based on the country.

    Map widgets first widget

    Map widgets first widget values in

  12. Add a second widget, now based on pop_max. You will get a histogram widget in order to be able to filter the populated places based on their population.

    Map widgets second widget

  13. Now let’s configure the tooltip (or info window). Go to Interactions tab, activate the tooltip and select the fields admin0name, Featurecla and Pop_max.

    Map tooltips new tooltip

  14. Finally we can change our basemap. Go to Basemaps tab and select “Dark matter” from CARTO.

    Map basemap

  15. We can make the map public and share it online with our colleagues. For more details, see Publishing and sharing maps.

    Map public map

  16. Finally, we can visualize the result.