Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@adamfeuer
adamfeuer / tree.json
Last active October 17, 2021 17:33
test data for line / tree
{
"name": "flare",
"children": [{
"name": "analytics",
"children": [{
"name": "cluster",
"children": [{
"name": "AgglomerativeCluster",
"size": 3938
},

Keybase proof

I hereby claim:

  • I am adamfeuer on github.
  • I am adamfeuer (https://keybase.io/adamfeuer) on keybase.
  • I have a public key ASD0ugZgxLEcU6fVTerANZlal0dOOS-ozjsWBqJ66ZVZngo

To claim this, I am signing this object:

@adamfeuer
adamfeuer / .block
Created May 10, 2018 17:51 — forked from mbostock/.block
Force-Directed Graph
license: gpl-3.0
height: 600

d3js Tree Visualizer with Search, Panning, Expand and Collapse

Overview

This example pulls together various examples of work with trees in D3.js. See the d3js Tree Visualizer live here.

Features:

  • Expanding and collapsing nodes
  • Panning
@adamfeuer
adamfeuer / D3JS Tree Visualizer.md
Last active August 7, 2021 23:53
D3JS Tree Visualizer

d3js Tree Visualizer

This example pulls together various examples of work with trees in D3.js. See the d3js Tree Visualizer live here.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

@adamfeuer
adamfeuer / elb.py
Created January 27, 2016 23:53
AWS Ingress script for Kubernetes - creates SSL loadbalancers compatible with websockets
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
# Copyright (c) 2016 MetaBrite, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@adamfeuer
adamfeuer / D3JS Tree Editor.md
Last active November 13, 2023 09:56
d3js tree editor with node create, delete, and rename
We couldn’t find that file to show.