Commit 4a1b39db authored by shabai517's avatar shabai517
Browse files

update tree visualization

parent 765b2f6f
......@@ -48,130 +48,10 @@ export default {
data: function () {
let data = [
{
name: 'AA',
name: '',
children: [
{
name: 'aa',
//value: 15,
children: [
{
name: '11',
//value: 2,
children: [
{
name: 'ββ',
value: 1
},
{
name: 'β1β',
value: 3
}
]
},
{
name: '22',
//value: 6,
children: [
{
name: 'ββ',
value: 3
},
{
name: 'β1β',
value: 1
}
]
},
{
name: '33',
//value: 4,
children: [
{
name: 'ββ',
value: 2
},
{
name: 'β1β',
value: 2
}
]
}
]
},
{
name: 'bb',
//value: 10,
children: [
{
name: '11',
//value: 5,
children: [
{
name: 'ββ',
value: 3
},
{
name: 'β1β',
value: 2
}
]
},
{
name: '22',
//value: 1,
children: [
{
name: 'ββ',
value: 2
},
{
name: 'β1β',
value: 6
}
]
}
]
}
]
},
{
name: 'BB',
children: [
{
name: 'aa',
children: [
{
name: '11',
//value: 1,
children: [
{
name: 'ββ',
value: 2
},
{
name: 'β1β',
value: 5
}
]
},
{
name: '22',
//value: 2,
children: [
{
name: 'ββ',
value: 1
},
{
name: 'β1β',
value: 4
}
]
}
]
}
]
}
];
return {
options: {
......@@ -196,7 +76,7 @@ export default {
else if(param.data.level ==4){
facets='Modifications=='+value;
}
return '<p>Category: '+param.data.name+'</p>'+'<p>Value: '+param.data.rawValue+'</p>'+'<p><a class="search" href="archive?filter='+facets+'&page=0&pageSize=20">More</a></p>'
return '<p class="tooltip-content">Category: '+param.data.name+'</p>'+'<p class="tooltip-content">Value: '+param.data.rawValue+'</p>'+'<p><a class="search" href="archive?filter='+facets+'&page=0&pageSize=20">More</a></p>'
}
//}
}
......@@ -223,9 +103,9 @@ export default {
type: 'tree',
data: data,
top: '0%',
left: '5%',
left: '7%',
bottom: '0%',
right: '20%',
right: '23%',
symbol:"circle",
//layout: 'radial',
symbolSize: 7,
......@@ -540,4 +420,7 @@ export default {
font-size: 12px;
float: right;
}
.tree-container .tooltip-content{
text-align: left;
}
</style>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment