Skip to content

Commit

Permalink
Gráficos stream e cluster retirados do outro site.
Browse files Browse the repository at this point in the history
  • Loading branch information
CelioBarros committed Sep 8, 2016
1 parent c40d0ae commit 9112e85
Show file tree
Hide file tree
Showing 9 changed files with 773 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _includes/clusteringChart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<meta charset="utf-8">
<body>
<form class="form-inline well" >
<select id="aFazeresCluster" onclick="refazSvg()">
<option value="tipo">Tipo</option>
<option value="tema">Tema</option>
<option value="situation">Situação</option>
</select>
<input type="checkbox" name="ignorarRequerimentos" id="ignorarRequerimentos" onclick="refazSvg()"> Ignorar requerimentos
</form>

<div id='cluster' ></div>
<script src="js/d3.v3.min.js" charset="utf-8"></script>
<link rel="stylesheet" href="css/clusterpurityChart.css">
<script src="js/clusterpurityChart.js"></script>
13 changes: 13 additions & 0 deletions _includes/streamchart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<meta charset="utf-8">
<body>
<select id="aFazeres">
<option value="tipo">Tipo</option>
<option value="tema">Tema</option>
<option value="situacao">Situação</option>
</select>
<div id="stream">
</div>
<script src="js/d3.v3.min.js"></script>
<link rel="stylesheet" href="css/streamgraph.css">
<script src="js/streamgraph.js"></script>
</body>
7 changes: 7 additions & 0 deletions _posts/2016-09-04-a-camara.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "A Câmara."
subtitle: "O que os vereadores andam votando na câmara."
date: 2016-09-04 12:12:12
---

{% include clusteringChart.html %}
10 changes: 10 additions & 0 deletions _posts/2016-09-07-ao-longo-do-tempo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: post
title: "A câmara ao longo do tempo!"
subtitle: "A produção dos nossos vereadores ao longo dos anos!"
date: 2016-09-07 12:12:12
categories: [análise]
tags: [streamchart,camara]
---

{% include streamchart.html %}
9 changes: 9 additions & 0 deletions css/clusterpurityChart.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#cluster{
text-align: center;
width: 800px;
height: 700px;
}
29 changes: 29 additions & 0 deletions css/streamgraph.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
body {
font: 10px sans-serif;
}

#stream {
background: #fff;
}

p {
font: 12px helvetica;
}


.axis path, .axis line {
fill: none;
stroke: #000;
stroke-width: 2px;
shape-rendering: crispEdges;
}

button {
position: absolute;
right: 50px;
top: 10px;
}

.tooltip {
font-size: .65em;
}
Loading

0 comments on commit 9112e85

Please sign in to comment.