Skip to content

Instantly share code, notes, and snippets.

@mayblue9
mayblue9 / d3.layout.orbit.js
Created November 10, 2015 02:16 — forked from emeeks/d3.layout.orbit.js
Orbit Layout 4
d3.layout.orbit = function() {
var currentTickStep = 0;
var orbitNodes;
var orbitSize = [1,1];
var nestedNodes;
var flattenedNodes = [];
var tickRadianStep = 0.004363323129985824;
var orbitDispatch = d3.dispatch('tick');
var tickInterval;
var orbitalRings = [];
@mayblue9
mayblue9 / bar_chart.html
Created November 16, 2015 07:24 — forked from codefactory/bar_chart.html
D3.js로 만든 bar chart
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>D3.js Bar Chart</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: dotum;
font-size: 11px;
@mayblue9
mayblue9 / bar_chart2.html
Created November 16, 2015 07:25 — forked from codefactory/bar_chart2.html
D3.js로 만든 bar chart2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>D3.js Bar Chart</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: dotum;
font-size: 11px;
@mayblue9
mayblue9 / README.md
Created November 18, 2015 04:36 — forked from mourner/README.md
D3 Sun Heatmap example

This is a D3.js Heatmap example showing how the highest sun position of the day (which directly correlates with average temperature) changes over the year depending on the latitude of the place. The actual temperature chart would be shifted to the right a bit beacuse of thermal lag.

The data for the chart is calculated using SunCalc.

@mayblue9
mayblue9 / d3lib.md
Created November 20, 2015 08:43 — forked from widged/d3lib.md
d3 libraries

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

@mayblue9
mayblue9 / index.html
Created November 23, 2015 06:00 — forked from orrery/index.html
D3 Gantt chart
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="https://raw.github.com/timrwood/moment/1.6.0/min/moment.min.js"></script>
<style type="text/css">
#chart-mini {
@mayblue9
mayblue9 / index.html
Created November 24, 2015 09:19 — forked from mpmckenna8/index.html
d3 json to html table w/ nested stuff
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.pico{
fill:blue;
height:100px;
}
@mayblue9
mayblue9 / README.md
Created November 25, 2015 02:19
Interactive heatmap for metrics

An interactive D3.js heatmap that displays normalized values (metrics) read from a json produced by the python pandas module with a DataFrame.tojson(orient="split") call.

You can sort by increasing or decreasing orders on rows or columns. You can also retrieve initial orders. Please click on rows or columns labels to discover this ordering feature.

http://bl.ocks.org/PBrockmann/635179ff33f17d2d75c2

@mayblue9
mayblue9 / bells.clj
Created December 4, 2015 04:47 — forked from samaaron/bells.clj
Cheesy Holiday Music and bell synthesis example
(ns overtone-xmas.bells
(:use [overtone.live]))
;;tested in Overtone 0.6-dev
;;add [overtone.sc.machinery.defcgen] to ns :use clause for 0.5.0
;;http://computermusicresource.com/Simple.bell.tutorial.html
(def dull-partials
[
0.56
@mayblue9
mayblue9 / force.csv
Created December 7, 2015 08:19 — forked from d3noob/.block
Basic Directional Force Layout Diagram
source target value
Harry Sally 1.2
Harry Mario 1.3
Sarah Alice 0.2
Eveie Alice 0.5
Peter Alice 1.6
Mario Alice 0.4
James Alice 0.6
Harry Carol 0.7
Harry Nicky 0.8