Skip to content

Instantly share code, notes, and snippets.

View hudsonb's full-sized avatar

Brian Hudson hudsonb

  • Spotify
  • Whitesboro, NY
View GitHub Profile
import javafx.animation.AnimationTimer
import javafx.application.Application
import javafx.scene.Group
import javafx.scene.Scene
import javafx.scene.SnapshotParameters
import javafx.scene.image.ImageView
import javafx.scene.image.WritableImage
import javafx.scene.paint.Color
import javafx.scene.shape.ClosePath
import javafx.scene.shape.LineTo
package kubed.demo
import javafx.application.Application
import javafx.embed.swing.SwingFXUtils
import javafx.scene.Scene
import javafx.scene.SnapshotParameters
import javafx.scene.layout.StackPane
import javafx.stage.Stage
import kubed.ScalingPane
import kubed.layout.chord.Chord
import javafx.application.Application
import javafx.scene.Group
import javafx.scene.Scene
import javafx.scene.control.Tooltip
import javafx.scene.paint.Color
import javafx.stage.Stage
import kubed.color.scheme.schemeBlues
import kubed.geo.Feature
import kubed.geo.FeatureCollection
import kubed.geo.geoJson

Demonstrates the creation of a Choropleth Map using Kubed/JavaFX.

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.paint.CycleMethod;
import javafx.scene.paint.RadialGradient;
import javafx.scene.paint.Stop;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
@hudsonb
hudsonb / .block
Last active June 14, 2018 01:50 — forked from mbostock/.block
Spherical Mercator
license: gpl-3.0
height: 960
border: no
import javafx.application.Application
import javafx.scene.Group
import javafx.scene.Scene
import javafx.scene.effect.BlendMode
import javafx.scene.paint.Color
import javafx.scene.shape.Path
import javafx.scene.shape.StrokeLineJoin
import javafx.stage.Stage
import kubed.array.range
import kubed.selection.selectAll
@hudsonb
hudsonb / BasicBarChartDemo.kt
Created February 13, 2018 18:33
Let's Make a Bar Chart
package kubed.demo
import javafx.application.Application
import javafx.geometry.Insets
import javafx.scene.Group
import javafx.scene.Scene
import javafx.scene.paint.Color
import javafx.stage.Stage
import kubed.scale.scaleLinear
import kubed.selection.selectAll
@hudsonb
hudsonb / unemployment.tsv
Created February 6, 2018 20:39
Choropleth Demo
id rate
01001 5.1
01003 4.9
01005 8.6
01007 6.2
01009 5.1
01011 7.1
01013 6.7
01015 6.1
01017 5.0
@hudsonb
hudsonb / .block
Last active January 29, 2018 17:45 — forked from mbostock/.block
Stroke Dash Interpolation
license: gpl-3.0