First of many reusable charts. Bar chart this time. Going to make resizable later.
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
license: mit |
I was trying to think of different ways of animating and this was one of my first thoughts. Used a line to create the bars instead of rects.
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
license: mit |
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> | |
<body> | |
<div id="charts"></div> | |
<div id="chart"></div> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<script> | |
var m = 40, w = 960 - m*2, h = 500 - m*2; | |
var svg = d3.select('#charts').append('svg') | |
.attr('width', w + m*2).attr('height', h + m*2) | |
.append('g') |
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
license: mit |
I took the OMG Particles II from
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> | |
<body> | |
<script src="//d3js.org/d3.v4.min.js"></script> | |
<script> | |
var margin = { top: 20, right: 20, bottom: 30, left: 30}, | |
width = 960 - margin.right - margin.left, | |
height = 500 - margin.top - margin.bottom; | |
var svg = d3.select('body').append('svg') | |
.style('background', '#777') | |
.style('margin', '0 calc(50% - ' + (width + margin.right + margin.left)/2 + 'px)') |
js created regression line of a friends Zwift ride.
DC map and flag animation. You can also zoom into the map. Maps are, the outline, all the water, and all the roads.