Election maps with the power and beauty of CartoDB

Election maps are an interesting challenge for digital media: millions of people are awaiting the results, hitting F5 endlessly in their desktops and accessing from their mobile devices (that means: from everywhere!), at the time that data comes bit by bit, in what seems a very slow night. Receiving, processing, and publishing this data in an appealing way to offer an interactive application that enables the usable discovery and browsing of the election data is not an easy task.

But this is one of the situations where CartoDB comes to the rescue, making easy and beautiful what before was hard and -many times- ugly. With the CartoDB Platform you can easily push real time updates of your data to populate your visualizations. The CartoDB infrastructure provides all needed to serve millions of users visiting your maps. But when you mix those two things, it is recommended that you follow some guidelines to ensure optimal performance.

The key point is to avoid the continuous invalidation of the generated caches by not doing updates more than it is really needed.


  1. Only update data when new data is really available
  2. Update your data within reason and in batch. 5 minutes seems perfect
  3. Make updates with a single statement (as explained in Faster data updates with CartoDB )
  4. Make sure to use the latest version of cartodb.js library

As a bonus point, consider showing us your application before going public to check things that could be optimized.

Some great election maps: live examples

Why CartoDB is the best tool for election maps

  • Real time updates
  • Quick deploy times
  • Easy unlimited visual styling and customization
  • Built-in interactivity: data filtering, infowindows
  • Seamless integration with your publication systems
  • Embeddable maps: let your users republish your maps
  • Easy redistribution of data in re-usable format: let your users consume the raw data you have processed

Further resources

Sign up for a CartoDB account to start testing its possibilities, or contact sales to let us know your needs.

Related Posts

Ready to optimize your territories with Location Intelligence?

Close circle icon

Contact us

Please fill out the below form and we'll be in touch real soon.