Skip to content

Instantly share code, notes, and snippets.

View AndrewStaroscik's full-sized avatar

Andrew Staroscik AndrewStaroscik

View GitHub Profile
@AndrewStaroscik
AndrewStaroscik / .block
Last active November 11, 2016 17:30
d3 oval text
license: gpl-3.0
@AndrewStaroscik
AndrewStaroscik / .block
Last active September 10, 2016 01:38
Scatter Plot to demonstrate value of graphing data
license: gpl-3.0
@AndrewStaroscik
AndrewStaroscik / t1.js
Last active June 17, 2016 16:19
js file for test on codepen
var t1Change = function() {
var target = document.getElementById("dynamdiv");
target.innerHTML = "T1 - I am complex content delivered via javascript";
};
@AndrewStaroscik
AndrewStaroscik / index.html
Last active March 3, 2016 16:56 — forked from katsumitakano/index.html
D3.js Easing Checker
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Easing Test</title>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<body>
<script>
var dataset = ["linear", "quad", "cubic", "sin", "exp", "exp-in", "exp-out", "exp-in-out", "circle", "elastic", "back", "bounce"]
@AndrewStaroscik
AndrewStaroscik / .block
Last active February 23, 2016 17:21
element resize functions
license: gpl-3.0
@AndrewStaroscik
AndrewStaroscik / index.html
Created February 3, 2016 21:06
svg switch with d3 - no scaling
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#mainFrame
{
position: relative;
width: 550px;
height: 550px;
margin: 0 auto;
@AndrewStaroscik
AndrewStaroscik / README.md
Last active November 29, 2015 20:41 — forked from mbostock/.block
Wave Motion

A modification of Mike Bostock's recreation of the wave GIF by Dave Whyte.

This version is more representative of the motion seen in surface waves.

Maximum motion occurs at the surface (the top row of circles) and decreases with distance from the surface.

More here

@AndrewStaroscik
AndrewStaroscik / index.html
Last active August 29, 2015 14:11
Non-function nested D3 test
<!DOCTYPE html>
<meta charset="utf-8">
<div id="vis"></div>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var parentElement = [
{name: "Path 1", startX: 25, startY: 75, segments: [
@AndrewStaroscik
AndrewStaroscik / README.md
Last active December 17, 2015 22:59
Working D3 nested selection

Functioning example of nesting elements within elements in D3 using transformations on the parent element and separate enter() for the array containing the child elements.