以下适用于D3.js
http://bl.ocks.org/ilyabo/1373263
$('svg circle').tipsy({
gravity: 'w',
html: true,
title: function() {
var d = this.__data__,
c = colors(d.i);
return 'Hi there! My color is <span style="color:' + c + '">' + c +
'</span>';
}
});
不确定如何使用angular 2 D3.js执行此操作并包含用于弹出窗口的jQuery tipsy