Skip to content

Instantly share code, notes, and snippets.

@Eireen
Eireen / .block
Created November 4, 2023 20:42 — forked from mbostock/.block
Difference Chart
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-difference-chart
@Eireen
Eireen / .block
Created November 3, 2023 13:51 — forked from d3noob/.block
Simple Difference Chart
license: mit
@Eireen
Eireen / index.html
Created October 21, 2023 01:00 — forked from hunminkoh/index.html
Drawing a triangle with d3.svg.symbol().type("triangle-up")
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v2.min.js"></script>
</head>
<body></body>
</html>
<script type="text/javascript">
var svg = d3.select("body").append("svg")
@Eireen
Eireen / README.md
Created October 19, 2023 01:38 — forked from mdml/README.md
D3 Stacked Area Chart Example
@Eireen
Eireen / README.md
Created October 18, 2023 15:42 — forked from larsenmtl/README.md
d3 mouseover multi-line chart

An interactive multi-line chart.

Note, I borrowed a bit of code from Duopixel's excellent code sample here.

Built with blockbuilder.org

@Eireen
Eireen / README.md
Created October 18, 2023 02:33 — forked from Thamjith/README.md
D3 v3 time-series line chart

D3 timeseries chart

  • the D3 chart currently displayed on metacat UI
  • issue: the line and area shapes interpolate across missing data
  • features:
    • mini 'brush' chart shows the context of the data in focus in the main chart
    • x-axis zooming and panning is limited to the range of available data
    • y-axis resizes automatically to match the maximum y-value of the data in focus
    • buttons zoom focus to an interval equal to one year (if sufficient data), one month, or the range of the data
  • text at top changes to indicate the range of data in focus