Skip to content

Instantly share code, notes, and snippets.

@pgiraud
pgiraud / index.html
Last active August 29, 2015 13:56 — forked from pere/index.html
Leaflet D3js circles
<!DOCTYPE html>
<html>
<head>
<title>Testing d3.js in Leaflet.js</title>
<link rel="stylesheet" href="leaflet.css"></link>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<style type="text/css">
path
<!DOCTYPE html>
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<style>
body {
font: 10px sans-serif;
}
rect {
@pgiraud
pgiraud / index.html
Created February 13, 2014 13:18
d3js Elevation profile - Ratio automatically chosen
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
@pgiraud
pgiraud / README.md
Last active August 29, 2015 13:56 — forked from mbostock/.block

The area of each circle in this symbol map is proportional to the population of the associated state.

fdfdf
fdfdf
@pgiraud
pgiraud / README.md
Last active August 29, 2015 13:56 — forked from mbostock/.block
@pgiraud
pgiraud / README.md
Created February 17, 2014 10:36 — forked from mbostock/.block

An example of multiple pie (donut) charts created with D3. The data is represented as a two-dimensional array of numbers; each row in the array is mapped to a pie chart. Thus, each pie represents the relative value of a number (such as 1,013) within its rows. Note that in this dataset, the totals for each row are not equal.

@pgiraud
pgiraud / camptocamp.png
Last active August 29, 2015 13:56
OL3 Mobile orientation
camptocamp.png
@pgiraud
pgiraud / geolocation_marker.png
Last active August 29, 2015 13:56
OL3 rotate and move with anchor
geolocation_marker.png