Skip to content

Followords/d3-tooltip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d3.js tooltip

js/css duo for bootstrap style tooltips.

Click a gisted example.

How does it work?

Tooltip.js attaches event listeners to selections that go and display bootstrap tooltips.

An example of how to use it:

    selection.tooltip(function(d,i){
        return {
            'placement': 'top' //Or left, right, or bottom
            'dy': i*10 //It's a function!
            'dx': i*Math.PI 
            };
    })
    

Viola! Tooltips!

Current TODOS

  • Add in better defaults
  • Get the animations going
  • Make it do popovers.
  • Write some tests.
  • Use it in an actual popover.

License

Major components:

Everything else:

Public domain.

About

Porting bootstrap's tooltip over to d3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published