Skip to content

Instantly share code, notes, and snippets.



Last active Dec 19, 2017
What would you like to do?
Exemplo simples com select
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="description" content="SOMA 01 - Hello World">
<title>SOMA 01 - Hello World</title>
<div id="page"></div>
<script src="" charset="utf-8"></script>
.text('Alô mundo ! Este é o primeiro App que usa o D3.js');
d3.selectAll('div').style('background-color', 'lightblue');
d3.selectAll("div").style('background-color', function (d, i) {
return (i % 2 === 0) ? "lightblue" : "lightgray";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment