0.5.0 • Published 9 years ago

d3tip v0.5.0

Weekly downloads
31
License
MIT
Repository
github
Last release
9 years ago

D3 Tooltip

Sample

Web SiteSource Code

Install

npm install d3tip --save
npm install d3-selection --save
npm install types.d3 --save # d3 4.x typings
import {select} from 'd3-selection';
import d3tip from 'd3tip';
import 'd3tip/index.css'; // Default tooltip style. If you don't need default style. you have not to import this.

d3.select('#button')
  .datum('HELLO WORLD')
  .call(d3tip({
    html: d => d.toString()
  }))

Options

  • html: string|(d?:any, i?:number, nodes?:Node[]) => string
  • classed?: string[]|(d?:any, i?:number, nodes?:Node[]) => string[]
  • distance?: number
  • target?: string = 'pointer' | 'element'
  • position?: string|(d?:any, i?:number, nodes?:Node[]) => string = 'left' | 'right' | 'top' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'
0.5.0

9 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago