# d3-tip **Repository Path**: mirrors_GUI/d3-tip ## Basic Information - **Project Name**: d3-tip - **Description**: Tooltips for d3 visualizations - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # d3.tip: Tooltips for d3.js visualizations ![](https://github-images.s3.amazonaws.com/skitch/Screen_Shot_2013-04-08_at_11.40.10_AM-20130408-114054.png) ### API Docs See the [API Documentation](docs/index.md) ### Download Latest Version * [Production Version](https://raw.github.com/Caged/d3-tip/v0.5.2/d3.tip.min.js) : **3kb** / **~1kb gzipped** * [Development Version](https://raw.github.com/Caged/d3-tip/v0.5.2/src/d3.tip.js) : **6kb** / **~2kb gzipped** ### Install with Bower ``` bower install Caged/d3-tip ``` *Note the capital "C"* ### Quick Usage ``` javascript /* Initialize tooltip */ tip = 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) ```