Skip to content

Instantly share code, notes, and snippets.

@michellechandra
michellechandra / README.md
Last active January 30, 2024 20:46
Basic US State Map - D3
@michellechandra
michellechandra / index.html
Last active May 29, 2019 19:39
CartoDB.js Hover Infowindow Using CreateLayer
<!DOCTYPE html>
<html>
<head>
<title>#DrawDisability</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<style>
@michellechandra
michellechandra / index.html
Last active July 29, 2016 19:08
CartoDB.js Click Infowindow Using CreateLayer
<!DOCTYPE html>
<html>
<head>
<title>#DrawDisability</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script>
@michellechandra
michellechandra / index.html
Created June 17, 2016 16:40
CartoDB Infowindow Phone Link Example
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="http://libs.cartodb.com/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<style>
html, body, #map {
height: 100%;
padding: 0;
@michellechandra
michellechandra / index.html
Last active February 5, 2016 20:45
Infowindow with sublayer
<!DOCTYPE html>
<html>
<head>
<title>createLayer_sublayer + infowindow</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<!-- include cartodb css -->
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<!-- include cartodb.js library -->
<script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script>
@michellechandra
michellechandra / index.html
Last active February 5, 2016 20:25
Infowindow with data from different datasets
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<style>html, body, #map { height: 100%; padding: 0; margin: 0 }</style>
</head>
<body>
<div id="map"></div>
<!-- include cartodb css -->
@michellechandra
michellechandra / index.html
Last active February 5, 2016 19:34
Infowindow with - createLayer
<!DOCTYPE html>
<html>
<head>
<title>createLayer + infowindow</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<style>
html, body, #map {
height: 100%;
padding: 0;
@michellechandra
michellechandra / readme.md
Last active February 2, 2016 17:12
PostgreSQL Queries Cheatsheet - CartoDB

Common PostgreSQL queries to run in CartoDB Editor or elsewhere. Includes simple table operations to more complex geospatial queries.

@michellechandra
michellechandra / index.html
Created January 15, 2016 18:03
Choropleth Legend Example
<!DOCTYPE html>
<html>
<head>
<title>Custom legend with template | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
@michellechandra
michellechandra / index.html
Last active January 14, 2016 16:35
Basemap Example - CartoDB
<!DOCTYPE html>
<html>
<head>
<title>Basemap Example</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<style>