dev
xiaowen 3 years ago
parent abe50fb4b7
commit ea62dc8987

@ -2,7 +2,16 @@
export default function circleOption(data=[]){
return{
tooltip: {
trigger: 'item'
trigger: 'item',
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
series: [
{

@ -16,6 +16,15 @@ export default function multiColumnsOption(dx=[], dValue=[], dName=[]) {
return {
tooltip: {
trigger: 'axis',
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true,
axisPointer: {
// Use axis to trigger tooltip
type: 'line' // 'shadow' as default; can also be 'line' or 'shadow'

@ -19,9 +19,15 @@ export default function multipleColumn(columnName = [], xMsg = [], data = []) {
const option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
legend: {
data: columnName,

@ -13,9 +13,15 @@ export default function negaposiOption(dName=[], dPositive=[], dNegative = []) {
return {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
legend: {
data: ['正面调性', '负面调性']

@ -75,9 +75,15 @@ export default function negaposiOption(dName = [], data = {}) {
return {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
legend: {
data: msg,

@ -2,6 +2,16 @@
export default function pictographicOption(dRegion=[],dValue=[]){
return {
tooltip: {
trigger: "item",
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
xAxis: {
show:false,

@ -2,7 +2,7 @@
export default function pictographicOption(dRegion = [], dValue = [], dSum = 0) {
return {
tooltip: {
trigger: "item",
trigger: "axis",
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
@ -10,6 +10,8 @@ export default function pictographicOption(dRegion = [], dValue = [], dSum = 0)
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
xAxis: {
show: false,

@ -13,6 +13,8 @@ export default function pictographicOption(dRegion = [], dValue = [], dSum = 0)
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
xAxis: {
show: false,

@ -9,6 +9,18 @@ export default function pointOption(data=[],dName = [],dx = []) {
// left: '8%',
// top: '10%'
},
tooltip: {
trigger: 'axis',
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
xAxis: {
data: dx,
axisLabel: {

@ -1,9 +1,9 @@
// 雷达图
export default function raydarOption(dName = [], dValue = []){
export default function raydarOption(dName = [], dValue = []) {
let arr = [];
let maxNum = 0;
dValue.forEach(ele => {
if(ele >= maxNum) {
if (ele >= maxNum) {
maxNum = ele * 1
}
})
@ -15,18 +15,26 @@ export default function raydarOption(dName = [], dValue = []){
arr.push(obj)
})
return {
radar: {
radar: {
indicator: arr
},
series: [
{
type: 'radar',
data: [
{
value: dValue,
},
]
}
]
},
tooltip: {
trigger: "item",
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
series: [{
type: 'radar',
data: [{
value: dValue,
}, ]
}]
}
}

@ -15,7 +15,9 @@ export default function singleLine(dValue = [], dx = []) {
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
}
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
yAxis: [{
type: 'value',

@ -4,9 +4,14 @@ export default function histogram(dx = [], ds = [], data = [], color1 = '', dire
return {
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
legend: {

@ -7,6 +7,18 @@ export default function brokenLine(dValue = [], dx = []) {
height: 150,
width: 320
},
tooltip: {
trigger: 'axis',
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
yAxis: [{
type: 'value',
axisTick: {

@ -2,6 +2,16 @@
export default function singlePercent(dRegion=[],dValue=[]){
return {
tooltip: {
trigger: 'item',
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
xAxis: {
show:false,

@ -26,10 +26,15 @@ export default function splitOption(dataNodes = [],dataEdges=[]) {
return {
tooltip: {
trigger: "item",
color: "#333",
textStyle: {
color: "#333", //设置文字颜色
},
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
title: {
show: false,

@ -31,9 +31,15 @@ export default function stack(yName=[],data=[],color=[]){
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
backgroundColor: "#08182F",
color: "#fff",
borderColor: "#3373CC",
textStyle: {
color: "#fff", //设置文字颜色
fontSize: 9
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
confine: true
},
grid: {
},

Loading…
Cancel
Save