Skip to content

Instantly share code, notes, and snippets.

View denisemauldin's full-sized avatar

Denise Mauldin denisemauldin

  • Noteworth
  • Seattle, WA
View GitHub Profile
@denisemauldin
denisemauldin / Filtering Nodes
Created August 3, 2017 16:06 — forked from colbenkharrl/Filtering Nodes
Filtering Nodes on Force-Directed Graphs (D3 V4)
Click to view more!
@denisemauldin
denisemauldin / index.html
Created August 3, 2017 16:00
d3 create table
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<script src="https://unpkg.com/[email protected]/build/d3.min.js"></script>
</head>
<body>
<table class="objecttable">
<thead>
<tr><th>name</th><th>age</th><th>gender</th></tr>
@denisemauldin
denisemauldin / index.html
Last active July 26, 2017 19:04
Use g containers with elements inside
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
#svg1 {
border: thin solid red;
}
.circles {
@denisemauldin
denisemauldin / index.html
Last active July 24, 2017 22:56
Pie chart
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<div id="chart"></div>
<script>
@denisemauldin
denisemauldin / index.html
Created July 24, 2017 22:50
D3 v4 fake line plot
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<svg width="300" height="300"></svg>
<script>
// constants to help with the X axis
@denisemauldin
denisemauldin / index.html
Created July 19, 2017 16:41
D3 V4 Line chart with draggable circles
<!DOCTYPE html>
<!-- https://stackoverflow.com/questions/42720488/d3-v4-drag-line-chart-with-x-and-y-axes -->
<!-- Thanks to Mark - https://stackoverflow.com/users/16363/mark -->
<svg width="500" height="350"></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script>
var svg = d3.select("svg"),
margin = {top: 20, right: 20, bottom: 30, left: 50},
width = +svg.attr("width") - margin.left - margin.right,
@denisemauldin
denisemauldin / index.html
Last active June 30, 2017 16:47
Draw a path when click on the red point
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<script>
var svgSelection = d3.select("body")
.append("svg")
@denisemauldin
denisemauldin / index.html
Created June 29, 2017 15:38
d3 v4 topojson clickable map
<!DOCTYPE html>
<style>
.counties :hover {
fill: red;
}
.county-borders {
fill: none;
stroke: #fff;
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Expects either a setup.yml file or a command line parameter for the github_ssh_key
require 'getoptlong'
def provisioned?(vm_name='default', provider='virtualbox')
File.exist?(".vagrant/machines/#{vm_name}/#{provider}/action_provision")
end
@denisemauldin
denisemauldin / systemjs.config.js
Created May 2, 2017 06:12
System JS configuration for JointJS, Dagre, JQuery, Graphlib, Lodash 3.10.1 and Backbone 1.3.3.
(function () {
System.config({
// map tells the System loader where to look for things
map: {
'app': '/static/app',
// angular bundles
'@angular/core': '/static/libs/@angular/core/bundles/core.umd.js',
'@angular/common': '/static/libs/@angular/common/bundles/common.umd.js',
'@angular/compiler': '/static/libs/@angular/compiler/bundles/compiler.umd.js',