This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bubbleChart = () => { | |
let margin = { top: 40, right: 30, bottom: 40, left: 30}, | |
width = 960 - margin.right - margin.left, | |
height = 960 - margin.top - margin.bottom, | |
colorCategory = "category", | |
colRadius = "views"; | |
// # MODIFIES THE selection GIVEN BY .call() | |
const chart = selection => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<style> | |
.bar { | |
fill: grey; | |
} | |
.bar:hover { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://dimplejs.org/dist/dimple.v2.0.0.min.js"></script> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
<img src="https://i.imgur.com/UMeohYH.jpg" alt="Total load / total weight percentage; transport types in Brasil" height="500" width = "500"> | |
</body> |
NewerOlder