0.9.1 • Published 7 years ago

d3-tip v0.9.1

Weekly downloads
86,745
License
MIT
Repository
github
Last release
7 years ago

d3.tip: Tooltips for d3.js visualizations

npm.io

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">
emvio-chart-util-ui@leftshiftone/conveyjs@galactica-ui/legacy-plugin-chart-heatmap@galactica-ui/legacy-preset-chart-nvd3@stolaar/d3-bar-chart@spotx/nvd3-plugin@infinitebrahmanuniverse/nolb-d3@everything-registry/sub-chunk-1437tdp-heatmapsynaptic-scouttech-radar-generatortechradarstorycurvestacked-timelines-chartspeedyjs-benchmarktikal-tech-radar-generator@divyapachbhai/scatterplot@complat/react-spectra-editor@boomi/exospherejsonld-vistimelines-charttraec-reacttita-superset-chart@arthanasti/legacy-preset-chart-nvd3@arthanasti/legacy-plugin-chart-calendar@arthanasti/legacy-plugin-chart-heatmap@amaranth-medical-analytics/clustergrammer@3liv/ux-chart@codens/codens-ui@dboxjs/corewc-byorvis-libzoe-smp-opszjvis@gumuslab/clustergrammer@fm-expertbridge-ui/legacy-plugin-chart-calendar@fm-superset-ui/legacy-preset-chart-nvd3@fm-expertbridge-ui/legacy-plugin-chart-heatmap@fm-superset-ui/legacy-plugin-chart-calendar@fm-superset-ui/legacy-plugin-chart-heatmap@icgc/dictionary-viewer@leftshiftone/convey@mwater/visualization@expertbridge-ui/legacy-plugin-chart-calendar@expertbridge-ui/legacy-plugin-chart-heatmap@expertbridge-ui/legacy-preset-chart-nvd3@ohdsi/atlascharts@preignition/multi-chart@processout/picasso@qubejs/ui-material-base@schmoo/viz@regulus/ipyregulus@recobest/chart-plugin-danalytics-heatmap@rkuij/legacy-preset-chart-nvd3@openease/charts@polyverse/cycle-viz@papaemmelab/isabl-web@shahlab/planetarium@shipx/timelines-chart@smartnow/legacy-preset-chart-nvd3@sergeylukin/react-techradar@sharprdev/ng-graphsmuts-needle-plotreact-d3-heatmapreact-d3-visualizationrnvd3rekit-studio-sdkself-chart-componentpopd3graphpipe-web-clientpoc-chart-widgetpoc-chart-widget-newpoc-chart-widget1poc-chart-widget2qx-web-componentreact-practiceshahlab-planetariumskd3shopstyle-collectivereact-spectra-editorreact-spectra-viewerreact-skywalking-uigitbook-plugin-tech-radargraph-client-cpnicx4ibc-om-adminhilbert-charthbcloud-viewerh2d3.jsinvenio-charts-jsdrjova-invenio-statistics-jsember-data-visualizationsember-dc-shimephtracking-viz@wip-ui/react-techradaratlas-metadataatlaschartsarachne-uiagr_genomefeaturecomponentflame-graph-d3
0.9.1

7 years ago

0.9.0

7 years ago

0.8.0-alpha.1

9 years ago

0.6.8

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.7

10 years ago

0.6.6

10 years ago