这是上面的数据
let data = {
nodes: [{
// 公司名称
name: ‘浏览器有限公司’,
category: 0, //0代表公司,1代表自然人股东
value:100,
capi:‘持股数1200’
// 股东列表
},{
name: ‘操作系统集团’,
category: 0,
value:40,
capi:‘持股数480’
},
{
name: ‘HTML科技’,
category: 0,
value:12,
capi:‘持股数144’
}, {
name: ‘JavaScript科技’,
category: 0,
value:10,
capi:‘持股数120’
}, {
name: ‘CSS科技’,
category: 0,
value:10,
capi:‘持股数120’
}, {
name: ‘Chrome’,
category: 1,
value:7,
capi:‘持股数84’
}, {
name: ‘IE’,
category: 1,
value:6,
capi:‘持股数72’
}, {
name: ‘Firefox’,
category: 1,
value:7,
capi:‘持股数84’
}, {
name: ‘Safari’,
category: 1,
value:8,
capi:‘持股数96’
}],
这是tooltip设置代码