Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 17, 2020. It is now read-only.
/d3-tipPublic archive

d3 tooltips

License

NotificationsYou must be signed in to change notification settings

caged/d3-tip

Repository files navigation

API Docs

See theAPI 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){returnd;});/* Invoke the tip in the context of your visualization */vis.call(tip)vis.selectAll('rect').data(data).enter().append('rect').attr('width',function(){returnx.rangeBand()}).attr('height',function(d){returnh-y(d)}).attr('y',function(d){returny(d)}).attr('x',function(d,i){returnx(i)}).on('mouseover',tip.show).on('mouseout',tip.hide)

If you want basic styling, you can includeexample-styles.css using a service likerawgithub.com.

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

[8]ページ先頭

©2009-2026 Movatter.jp