Skip to content

Instantly share code, notes, and snippets.

View caHaber's full-sized avatar

Casey Aaron Haber caHaber

View GitHub Profile
@caHaber
caHaber / bar_legend_selection.json
Created March 12, 2021 19:41
Vega-Lite spec from Fri Mar 12 2021
{
"config": {
"background": "#ffffff",
"padding": 20,
"axis": {
"title": null,
"titleAnchor": "start",
"titlePadding": 12,
"labelPadding": 5,
"labelColor": "#333333",
This file has been truncated, but you can view the full file.
{
"config": {
"background": "#ffffff",
"padding": 20,
"axis": {
"title": null,
"titleAnchor": "start",
"titlePadding": 12,
"labelPadding": 5,
"labelColor": "#333333",
{
"config": {
"background": "#ffffff",
"padding": 20,
"axis": {
"title": null,
"titleColor": "#333333",
"titleFontSize": 12,
"titleAnchor": "start",
"titleFontStyle": "italic",
@caHaber
caHaber / README.md
Created February 23, 2018 02:56
Assets for Vector Field Observable

Assets for Vector Field Observable

@caHaber
caHaber / .block
Last active August 18, 2017 21:10
Animate
license: mit
gistup
@caHaber
caHaber / .block
Last active March 24, 2017 21:04
Multi-Series Line Chart
license: gpl-3.0
@caHaber
caHaber / .block
Last active August 18, 2017 20:35
ArtExplosion
license: mit
@caHaber
caHaber / .block
Created June 13, 2016 17:41
Force-Directed States of America
license: gpl-3.0
@caHaber
caHaber / README.md
Last active June 12, 2016 18:09
force-multi-foci with convex hulls / Start for logo work

I have modified the force-multi-foci example to add a convex hull around each cluster of nodes.

I achieved this by using d3.nest() to create a new dataset of clusters containing the nodes in each cluster. Then in the tick() method I create and update the path element for each cluster in this dataset.

forked from donaldh's block: force-multi-foci with convex hulls