Skip to content

Instantly share code, notes, and snippets.

View UNFPAmaldives's full-sized avatar
💭
the distance between what we have and what we want

UNFPA Maldives UNFPAmaldives

💭
the distance between what we have and what we want
View GitHub Profile
@emeeks
emeeks / README.md
Created March 3, 2017 03:18
Annotated Venn

Venn Diagram as Annotation

This demonstrates how to use d3-annotation() with d3.forceSimulation to draw a Venn Diagram. In this the Venn shows a population of data visualizers (a semi-mythical and apparently controversial profession) that describe their organization as having data visualization professionals either embedded in other teams (green) or in a dedicated data visualization team (tan) or having both (green and tan). This uses d3.packEnclose to determine the size and location of the annotation subject, which utilizes d3.annotationCalloutCircle.

d3-annotation by Susie Lu.

@susielu
susielu / .gitignore
Last active April 2, 2024 07:16
d3-annotation: Responsive Types and Hover
.DS_Store
@carlvlewis
carlvlewis / index.html
Last active October 6, 2019 23:57
A single d3.js V4 chart with 'small multiples' along single categorical x-axis
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="author" content="@carlvlewis">
<!--This is so bootstrap knows how to handle viewports hassle-free-->
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Sales Trend by Month</title>
@yoon-gu
yoon-gu / .block
Last active November 11, 2017 16:57 — forked from mbostock/.block
Zoom-able 2016 감성고기 총매출
license: gpl-3.0
@rveciana
rveciana / README.md
Last active May 15, 2019 15:36
Congressional representatives dataset

Based on this data, contains a Shapefile and two topojson with the US congressional Districts.

The atlas-make project has a better maintained version of this data.

The difference from the data is based on, is that the American Samoa, Guam and Northern Marianas are included from the Natural Earth dataset. The Congress Representative data is included too.

get_areas.py is a script to calculate the area paoperties for the new objects. The name of the Congressional Representatives in the added territories has been taken from the Wikipedia.

The topojson has been calculated using the command: topojson -o us_congressional_district.json cgd114p010g.shp -p

@reinson
reinson / Readme.md
Last active March 30, 2018 15:45
Stacked bars & slider

This is a stacked bar chart with slider dependent transitions. Uses D3.js V4

@micahstubbs
micahstubbs / .block
Last active March 15, 2021 08:49
Patient Flow Sankey Particles
license: CC0-1.0
border: none
@d3noob
d3noob / .block
Last active November 26, 2019 18:22
Dual axes in v5
license: gpl-3.0
@pstuffa
pstuffa / games.csv
Last active May 25, 2018 18:33
Multi Series Line Chart Small Multiples II
date_str opp result record team league division pct date_str2
Monday, Apr 6 OAK L 0-1 TEX AL west 0 2015-04-06
Tuesday, Apr 7 OAK W 1-1 TEX AL west 0.5 2015-04-07
Wednesday, Apr 8 OAK L 1-2 TEX AL west 0.333333333333333 2015-04-08
Thursday, Apr 9 OAK W 2-2 TEX AL west 0.5 2015-04-09
Friday, Apr 10 HOU L 2-3 TEX AL west 0.4 2015-04-10
Saturday, Apr 11 HOU W 3-3 TEX AL west 0.5 2015-04-11
Sunday, Apr 12 HOU L 3-4 TEX AL west 0.428571428571429 2015-04-12
Monday, Apr 13 LAA L 3-5 TEX AL west 0.375 2015-04-13
Tuesday, Apr 14 LAA W 4-5 TEX AL west 0.444444444444444 2015-04-14