Skip to content

Instantly share code, notes, and snippets.

@susielu
susielu / README.md
Last active April 9, 2020 14:22
d3-annotation v2.0

d3-annotation v2.0

Updated features for d3-annotation, a full post here.

This block uses all three of the new features:

  • the nx/ny feature for placing line labels
  • default styling, no need to import an annotation css file
  • color attribute to color the annotations
  • new badge option for the HBO and Netflix nomination callouts
@susielu
susielu / .gitignore
Last active April 21, 2017 17:14
d3-annotation: outline
.DS_Store
@susielu
susielu / .gitignore
Last active May 11, 2022 00:25
d3.annotation: Points of Interest
.DS_Store
@susielu
susielu / .gitignore
Last active June 10, 2020 19:06
d3-annotation: Thresholds & Annotation Colors
.DS_Store
@susielu
susielu / .gitignore
Last active August 18, 2017 19:38
d3.annotation: Example Without Scales
.DS_Store
@susielu
susielu / .gitignore
Last active November 28, 2019 00:56
d3-annotation: Tooltip
.DS_Store
@susielu
susielu / .gitignore
Last active June 13, 2020 03:27
d3-annotation: Responsive Types and Hover
.DS_Store
@susielu
susielu / .gitignore
Last active March 3, 2020 16:34
d3-annotation: Encircling Example
.DS_Store
@susielu
susielu / README.md
Last active October 10, 2023 14:24
K-Means Centroid Deviation

K-Means Centroid Deviation

Added all of the Farmers' Markets data into the kMeans Library by @emilbayes, thank you!

Exploring the idea of using the areas around the centroids to exaggerate that cluster when it deviates from the rest of the clusters. This originates from the question "Which features in each cluster differentiate it from the rest?"

@susielu
susielu / index.html
Last active September 19, 2016 21:11
Overlapping Dimensions
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href='https://fonts.googleapis.com/css?family=Lato:300,900' rel='stylesheet' type='text/css'>
<style>
body{
background-color: whitesmoke;
}