D3 Tooltip
Sample
Install
npm install d3tip --savenpm install d3-selection --savenpm install types.d3 --save # d3 4.x typings
;;; // Default tooltip style. If you don't need default style. you have not to import this. d3.select'#button' .datum'HELLO WORLD' .calld3tip
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'