|
@@ -55,9 +55,12 @@ function drawGraph(data,resultShowId) {
|
|
|
title: {
|
|
|
text: '医学知识图谱',
|
|
|
top: '10',
|
|
|
- left: '10'
|
|
|
+ left: '10',
|
|
|
+ titleStyle:{
|
|
|
+ color:'#fff'
|
|
|
+ }
|
|
|
},
|
|
|
- // color:colors,
|
|
|
+ color:['#008560','#E57373','#0EB1EE','#9D96F5','#ACC68E','#EDAA77','#14BBB3','#538FFF','#1390FB','#C7B02E',],
|
|
|
tooltip: {
|
|
|
formatter: function (x) {
|
|
|
return x.data.label;
|
|
@@ -73,11 +76,15 @@ function drawGraph(data,resultShowId) {
|
|
|
icon: 'circle',
|
|
|
width: 766,
|
|
|
verticalAlign:'top',
|
|
|
+ color:'#fff',
|
|
|
borderColor:'#E6E6E6',
|
|
|
// borderTopWidth:1,
|
|
|
padding:[20, 1000, 0, 1000],
|
|
|
- backgroundColor: "#FFFFFF",
|
|
|
+ backgroundColor: "#0D2C53",
|
|
|
selected:{},
|
|
|
+ textStyle:{
|
|
|
+ color:'#fff'
|
|
|
+ },
|
|
|
// orient: 'vertical',
|
|
|
data: legends.slice(0,showLegendNum).map(function (a) {
|
|
|
return a.name;
|
|
@@ -94,7 +101,7 @@ function drawGraph(data,resultShowId) {
|
|
|
roam: 'move',
|
|
|
edgeSymbol: ['circle', 'arrow'],
|
|
|
edgeSymbolSize: [1, 5],
|
|
|
- edgeLabel: {
|
|
|
+ ledgeLabel: {
|
|
|
// cursor:'pointer',
|
|
|
normal: {
|
|
|
textStyle: {
|
|
@@ -144,7 +151,7 @@ function drawGraph(data,resultShowId) {
|
|
|
textStyle: {
|
|
|
cursor:'pointer',
|
|
|
},
|
|
|
- color:'#1E1E1E', //label字体颜色
|
|
|
+ color:'#fff', //label字体颜色
|
|
|
formatter: function (x) {
|
|
|
var tmp = x.data.label;
|
|
|
if(tmp.length >= 12){
|
|
@@ -297,7 +304,7 @@ function drawTree(data, showNodeName){
|
|
|
showLine:true, //设置是否显示连线 默认为true
|
|
|
showTitle: true,//设置是否显示鼠标悬浮时显示title的效果
|
|
|
dblClickExpand: true,//设置是否支持双击展开树节点
|
|
|
- fontCss : {color:"#333"},//设置节点样式
|
|
|
+ fontCss : {color:"#fff"},//设置节点样式
|
|
|
expandSpeed: "normal",//设置展开的速度 fast normal slow
|
|
|
nameIsHTML: true,//名字是否是HTML
|
|
|
selectedMulti: true,
|