Skip to content

Instantly share code, notes, and snippets.

View cflavs's full-sized avatar

Cecília cflavs

  • UFPB
  • João Pessoa (PB)
View GitHub Profile
@cflavs
cflavs / index.html
Created January 15, 2016 16:06
Tree Example
<!doctype html>
<html>
<head>
<title> D3 Tutorial </title>
<script src="//d3js.org/d3.v3.min.js"></script>
</head>
<body>
@cflavs
cflavs / index.html
Last active January 17, 2016 22:45
Pack
<!doctype html>
<html>
<head>
<title> D3 Tutorial </title>
<script src="//d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
@cflavs
cflavs / index.html
Created January 20, 2016 02:16
Bubble
<!doctype html>
<html>
<head>
<title> D3 Tutorial </title>
<script src="//d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
@cflavs
cflavs / enem.json
Last active January 20, 2016 02:46
Dados ENEM
[{"Municipio":"Água Branca","ID":270010,"UF":"AL", "Indicadores":[{"Indicador":"N_de_participantes_no_Enem","Dados":[[2012,AL]]}]},
{"Municipio":"Anadia","ID":270020,"UF":"AL", "Indicadores":[{"Indicador":"N_de_participantes_no_Enem","Dados":[[2012,AL]]}]},
{"Municipio":"Arapiraca","ID":270030,"UF":"AL", "Indicadores":[{"Indicador":"N_de_participantes_no_Enem","Dados":[[2012,AL]]}]},
{"Municipio":"Atalaia","ID":270040,"UF":"AL", "Indicadores":[{"Indicador":"N_de_participantes_no_Enem","Dados":[[2012,AL]]}]},
{"Municipio":"Barra de Santo Antônio","ID":270050,"UF":"AL", "Indicadores":[{"Indicador":"N_de_participantes_no_Enem","Dados":[[2012,AL]]}]},
{"Municipio":"Barra de São Miguel","ID":270060,"UF":"AL", "Indicadores":[{"Indicador":"N_de_participantes_no_Enem","Dados":[[2012,AL]]}]},
{"Municipio":"Batalha","ID":270070,"UF":"AL", "Indicadores":[{"Indicador":"N_de_participantes_no_Enem","Dados":[[2012,AL]]}]},
{"Municipio":"Belém","ID":270080,"UF":"AL", "Indicadores":[{"Indicador":"N_de_participantes_no_Enem","
@cflavs
cflavs / index.html
Last active January 20, 2016 03:14
TreeMap
<!DOCTYPE html>
<html>
<head>
<script src="//d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
var color = d3.scale.category10();
var canvas = d3.select("body").append("svg")
@cflavs
cflavs / data.tsv
Last active February 3, 2016 19:06
Histograma Simples
name value
RO 76.7
AC 78.9
AM 81.7
RR 82.2
PA 68.9
AP 73.6
TO 82.1
MA 76.8
PI 74.1
@cflavs
cflavs / data.csv
Last active February 4, 2016 19:23
Group Bar Chart - Índice de Aprovados no Ensino Médio por UFs
Uf 2007 2008 2009 2010
RO 74.4 75.2 76.1 76.7
AC 75.9 77.8 79.2 78.9
AM 77.9 74.6 77.4 81.7
RR 79.5 79.5 81.6 82.2
PA 63.3 68.2 68.1 68.9
AP 70 69.5 70.6 73.6
TO 80.1 80.2 81.2 82.2
MA 75.9 76.3 78.5 76.8
PI 70.6 69.5 71.3 74.1
@cflavs
cflavs / data.csv
Last active February 4, 2016 21:59
Índice de Reprovações do Ensino Médio por UFs
Uf 2007 2008 2009 2010
RO 12.4 12.1 12.3 11.8
AC 9.2 7.9 8 8.6
AM 10.9 11.3 9.2 8.1
RR 11.6 11.8 10.6 10.9
PA 16.7 9.8 11.2 11.9
AP 10.4 12.1 11.9 11.1
TO 8.2 8.5 10.1 9.9
MA 7.5 7.5 7.7 8.5
PI 9.7 8.8 8.5 9.2
@cflavs
cflavs / data.tsv
Created February 5, 2016 15:22
Uso do Cinto de Segurança nos Bancos da Frente e de Tras por UFs
year money number
RO 86.6 36.4
AC 79.63 52.07
AM 65.7 31.73
PR 86.7 36.4
PA 70.6 35.8
AP 64.4 21.83
TO 59.7 32.6
MA 54.5 26.87
PI 46 21.60
@cflavs
cflavs / data.csv
Created February 5, 2016 15:34
Roubo de Veículos
Uf 2010 2011 2012 2013
AC 0 0 0 0
AL 257.53 332.25 425.57 474.13
AP 0 25.31 96.16 101.11
AM 739.43 1101.94 739.76 313.89
BA 365.79 346.64 28.53 450.84
CE 235.34 144.95 293.57 432.66
DF 229.14 207.89 289.94 291.56
ES 159.08 232.32 166.6 59.11
GO 82.02 155.45 75.17 194.67