Skip to main content
100%

Something crazy

✓ Published0🌍 Public
Aandrewxhill
Last edited Oct 10, 2014
Created on Oct 10, 2014

This example displays a choropleth map of U.S. postal codes, where a randomly selected threshold dynamically recolors polygons based on their population totals. The visualization uses the CartoDB.js library to load a Leaflet map layer, then modifies its CartoCSS styling on each page load. A JavaScript function converts the current timestamp into an RGB color, which is applied to polygons exceeding a random population value, while all other areas retain a fixed pink fill. The underlying data comes from a CartoDB-hosted dataset of postal code boundaries.

AI-generated description

Similar vizzes