Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

d3-annotation

> 编程语言
Open source

Use d3-annotation with built-in annotation types, or extend it to make custom annotations. It is made for d3-v4 in SVG.

763 stars0 likes1 views
WebsiteGitHub

About

Use d3-annotation with built-in annotation types, or extend it to make custom annotations. It is made for d3-v4 in SVG.

d3-annotation

Full documentation: http://d3-annotation.susielu.com

Setup

Include the file directly

You must include the d3 library before including the annotation file. Then you can add the compiled js file to your website

  • Unminified
  • Minified

Using CDN

You can add the latest version of d3-annotation hosted on cdnjs.

Using NPM

You can add d3-annotation as a node module by running

npm i d3-svg-annotation -S

Feedback

I would love to hear from you about any additional features that would be useful, please say hi on twitter @DataToViz.

Prior art

  • Andrew Mollica, d3-ring-note D3 plugin for placing circle and text annotation, and HTML Annotation

  • Scatterplot with d3-annotate, by Chris Polis, example using d3-annotate

  • Rickshaw has an annotation tool

  • Benn Stancil has an annotation example for a line chart

  • Adam Pearce has arc-arrows and swoopy drag

  • Micah Stubbs has a nice VR chart based on swoopy drag

  • Scott Logic evokes “line annotation” in a graph (different concept).

  • Seven Features You’ll Want In Your Next Charting Tool shows how the NYT does annotations

  • John Burn-Murdoch example with adding/removing and repositioning annotations

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptannotationsd3d3-annotationd3-module

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言