t-viSNE: Interactive Assessment and Interpretation of t-SNE Projections https://doi.org/10.1109/TVCG.2020.2986996
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
t-viSNE/modules/d3-tip
Angelos Chatzimparmpas 3357daab80 Initial commit 5 years ago
..
docs Initial commit 5 years ago
examples Initial commit 5 years ago
.gitignore Initial commit 5 years ago
LICENSE Initial commit 5 years ago
Makefile Initial commit 5 years ago
README.md Initial commit 5 years ago
bower.json Initial commit 5 years ago
tip.js Initial commit 5 years ago

README.md

d3.tip: Tooltips for d3.js visualizations

API Docs

See the API Documentation

Download Latest Version

Install with Bower

bower 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) })
  /* Show and hide tip on mouse events */
  .on('mouseover', tip.show)
  .on('mouseout', tip.hide)