• This repository has been archived on 17/Mar/2020
  • Stars
    star
    1,225
  • Rank 38,289 (Top 0.8 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 13 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

d3 tooltips

d3.tip: Tooltips for d3.js visualizations

API Docs

See the API Documentation

Download Latest Version

Install with NPM

npm install d3-tip

Quick Usage

/* Initialize tooltip */
tip = d3.tip().attr('class', 'd3-tip').html(function(d) { return d; });

/* Invoke the tip in the context of your visualization */
vis.call(tip)

vis.selectAll('rect')
  .data(data)
  .enter()
  .append('rect')
  .attr('width', function() { return x.rangeBand() })
  .attr('height', function(d) { return h - y(d) })
  .attr('y', function(d) { return y(d) })
  .attr('x', function(d, i) { return x(i) })
  .on('mouseover', tip.show)
  .on('mouseout', tip.hide)

If you want basic styling, you can include example-styles.css using a service like rawgithub.com.

<link rel="stylesheet" href="//rawgithub.com/Caged/d3-tip/master/examples/example-styles.css">

More Repositories

1

gitnub

A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Ruby
1,046
star
2

httpriot

Simple HTTP Rest Library for iPhone and Cocoa projects.
Objective-C
278
star
3

lighthouse-api

The official Ruby Library for interacting with the Lighthouse API
Ruby
105
star
4

portland-atlas

A simple way to to fetch and convert open datatsets involving Portland, Oregon.
Makefile
77
star
5

portlandcrime

portland crime mapping
Ruby
66
star
6

nba-player-tracking

Experiments with nba player tracking data
CoffeeScript
49
star
7

javascript-bits

Useful pieces of JavaScript. Some old, some new.
JavaScript
34
star
8

tereshkova

An OSX screensaver for people who love satelite photos
JavaScript
25
star
9

microsis

SUPER OLD STUFF
JavaScript
23
star
10

octo

octo.js - A small JavaScript library for GitHub's API that works in nodejs and the browser.
JavaScript
20
star
11

cocos2d-game

Xcode Template for cocos2d-based iPhone games. Includes cocos2d 0.6.3 & the Chipmunk physics engine.
Objective-C
15
star
12

tile-stitch

stitch together image tiles for large-format prints
HTML
13
star
13

regl-learn

Learning to use regl and webgl
JavaScript
12
star
14

portland-census

An experiment in mapping census data in Portland
JavaScript
12
star
15

aixmlserialize

Aims to convert to and from NSXMLDocuments and NSDictionarys on the iPhone (using KissXML) and OS X.
Objective-C
11
star
16

lighthouse-digest

Email yourself daily/weekly/monthly summaries of Lighthouse tickets based on keywords you give it
Ruby
9
star
17

concurrent-nsoperation

Concurrent NSOperation Sample
Objective-C
7
star
18

gtbfm-textmate-bundle

A TextMate bundle for Google's Toolbox for Mac. Includes writing Unit Test for iPhone & the Mac among other useful code and tools.
Objective-C
7
star
19

groomlake

Ruby parsers for some Adobe file formats.
Ruby
6
star
20

lighthouse-badge

Easily add your Lighthouse tickets to your GitHub wiki
JavaScript
6
star
21

experiments

Various Experiments πŸ”₯
JavaScript
6
star
22

d3line

multiple scales example
JavaScript
5
star
23

sunshine

Ruby wrapper around the Sunlight Labs API built on HTTParty
Ruby
5
star
24

ghunit-tmbundle

Textmate Bundle for GHUnit
4
star
25

nba-rank

Dashboard for nba team rankings for various general metrics
JavaScript
4
star
26

demshade

Tools for generating static images from digital elevation models.
JavaScript
4
star
27

rainbows

Ruby wrapper around the Capitol Words API
4
star
28

gandalf

Svelte
4
star
29

datavis-template

A template for middleman for quickly prototyping datavis stuff in CoffeeScript. Comes with jquery, d3, topojson, bower and more.
Ruby
4
star
30

geopaste

quick and dirty ui prototype
JavaScript
4
star
31

emergence

Sinatra template for quick frontend prototyping
Ruby
4
star
32

mongodb-places

MongoDB importer for counties and populated places census data
Ruby
4
star
33

council-report

Fetch and parse Portland City Council data
Ruby
4
star
34

bbref-graphs

Chrome extension to convert tables of statistics to charts on http://basketball-reference.com
JavaScript
4
star
35

airstream

Color tools plugin for Figma
JavaScript
3
star
36

ecsv

This project has been replaced by http://github.com/wdavidw/node-csv-parser
JavaScript
3
star
37

nba-coaches

Ruby
3
star
38

housing

Sleuthing around Zilllow's HUD data and other datasets
Shell
3
star
39

genart-sketches

Generative art sketches.
JavaScript
3
star
40

metro-poverty

A visual study of City Observatory's "Lost in Place" report on poverty in the US.
JavaScript
3
star
41

county-stat

Experiment for exploring aggregate census data. Counties-only for now.
JavaScript
3
star
42

judicial-district-data

JavaScript
3
star
43

portland-streetcar

Streetcars of Portland, OR. then and now
HTML
3
star
44

dragnet

Attempts to extract readable content and embedded links from HTML markup & web pages
Ruby
2
star
45

osm-building-import

The old college try to prepare and import Portland, OR building data into OpenStreetMap.
Python
2
star
46

maptime

Maptime session
CartoCSS
2
star
47

cfb-recruiting

Ruby
2
star
48

sandworks

Art, drawn with sand.
Python
2
star
49

nba-plays

JavaScript
2
star
50

simple-classify

Python
2
star
51

ha-config

My Home Assistant config files
Python
2
star
52

exposition

Objective-C documentation parser and docset generator.
C
2
star
53

basketball-stats

Jupyter Notebook
2
star
54

gerrymander

An exploration into statistical identification and analysis of gerrymandering
Shell
2
star
55

font-sync

Ruby
2
star
56

tailwind-layouts

HTML
1
star
57

canvas-examples

just a scratchpad for canvas experiments
JavaScript
1
star
58

portland-geo

SOON TO BE DELETED
1
star
59

bash-test

Shell
1
star
60

flex-layout-demos

Simple examples implementing the Flexible Box Layout
1
star
61

construction

Makefile
1
star
62

machine-learning-learning

Python
1
star
63

citylist

Python
1
star
64

attractor

JavaScript
1
star
65

cartile

JavaScript
1
star
66

css-demos

css-demos
CSS
1
star
67

restaraunt-inspection-data

tools and scripts for dealing with Portland, OR restaurant inspection data
Shell
1
star
68

cortex-reference

Quick reference for Neural DSP Quad Cortex
JavaScript
1
star
69

svelte-jest-demo

JavaScript
1
star
70

book-store

test rails app
Ruby
1
star
71

city-gen

Shell
1
star
72

portland-topojson

Shell
1
star
73

budget

A look at Portland, Oregon's city budget over the years
JavaScript
1
star
74

elementary-audio

Unpleasant Noisemaker 3000
Svelte
1
star
75

node-starter

A template repository used to create and deploy a static website to GitHub Pages.
HTML
1
star
76

oregon-criminal-justice

Oregon Criminal Justice Statistics
1
star
77

choropleth

Quickly create choropleth map images from topojson data
JavaScript
1
star
78

civil-rights

A look into education-based civil rights data for public schools released by the US Department of Education U.S. Department of Education.
Makefile
1
star
79

screencasts

Shell
1
star
80

census-tools

Tools for working with NHGIS (https://www.nhgis.org) census data.
Shell
1
star