|
|
@ -23,7 +23,7 @@ export const HZXX = { |
|
|
|
bottom: "0%", |
|
|
|
containLabel: true, |
|
|
|
}, |
|
|
|
color: ["#4f8bff", "#ffcd6c", "#00d1a1", "#a794fe"], |
|
|
|
color: ["#C6A268"], |
|
|
|
graphic: { |
|
|
|
type: "text", |
|
|
|
left: "center", |
|
|
@ -76,7 +76,7 @@ export const gende = { |
|
|
|
bottom: "0%", |
|
|
|
containLabel: true, |
|
|
|
}, |
|
|
|
color: ["#4F8BFF", "#FE4943"], |
|
|
|
color: ["#70483E", "#C7BDB1"], |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
type: "pie", |
|
|
@ -87,11 +87,11 @@ export const gende = { |
|
|
|
position: "center", |
|
|
|
normal: { |
|
|
|
show: true, |
|
|
|
position:'inner', |
|
|
|
formatter: '{b}:{c}个', |
|
|
|
position: "inner", |
|
|
|
formatter: "{b}:{c}个", |
|
|
|
textStyle: { |
|
|
|
color:'#fff' |
|
|
|
} |
|
|
|
color: "#fff", |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
labelLine: { |
|
|
@ -127,7 +127,7 @@ export const ageEcharts = { |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
data: ["<40岁","41-50岁","51-60岁","61-70岁","71-80岁",">80岁",], |
|
|
|
data: ["<40岁", "41-50岁", "51-60岁", "61-70岁", "71-80岁", ">80岁"], |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -153,20 +153,20 @@ export const ageEcharts = { |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
barMaxWidth: 24, //柱图宽度
|
|
|
|
|
|
|
|
itemStyle: { |
|
|
|
normal: { |
|
|
|
//这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
barBorderRadius: [50, 50, 0, 0], |
|
|
|
color: function (params) |
|
|
|
{ |
|
|
|
var colorList = ['#FF9966', '#66B3FF', '#99FF99','#FFCC66','#FF6699','#CCCCCC']; |
|
|
|
return colorList[params.dataIndex] |
|
|
|
}, |
|
|
|
color: "#C6A268", |
|
|
|
// itemStyle: {
|
|
|
|
// normal: {
|
|
|
|
// //这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
// barBorderRadius: [50, 50, 0, 0],
|
|
|
|
// color: function (params) {
|
|
|
|
// var colorList = [
|
|
|
|
// "#C6A268",
|
|
|
|
// ];
|
|
|
|
// return colorList[params.dataIndex];
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
// 病种分布
|
|
|
@ -195,7 +195,7 @@ export const diseaseEcharts = { |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
data: ["<40岁","41-50岁","51-60岁","61-70岁","71-80岁",">80岁",], |
|
|
|
data: ["<40岁", "41-50岁", "51-60岁", "61-70岁", "71-80岁", ">80岁"], |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -221,15 +221,8 @@ export const diseaseEcharts = { |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
barMaxWidth: 24, //柱图宽度
|
|
|
|
color: "#4f8bff", |
|
|
|
itemStyle: { |
|
|
|
normal: { |
|
|
|
//这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
barBorderRadius: [50, 50, 0, 0], |
|
|
|
}, |
|
|
|
color: "#70483E", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
|
|
|
@ -268,7 +261,6 @@ export const diagnoseEcharts = { |
|
|
|
type: "dashed", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -287,9 +279,8 @@ export const diagnoseEcharts = { |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
barMaxWidth: 24, //柱图宽度
|
|
|
|
color: "#4f8bff", |
|
|
|
color: "#906C4A", |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
// 体系
|
|
|
@ -344,15 +335,14 @@ export const systemEcharts = { |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
barMaxWidth: 24, //柱图宽度
|
|
|
|
color: "#4f8bff", |
|
|
|
itemStyle: { |
|
|
|
normal: { |
|
|
|
//这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
barBorderRadius: [50, 50, 0, 0], |
|
|
|
}, |
|
|
|
color: "#C6A268", |
|
|
|
// itemStyle: {
|
|
|
|
// normal: {
|
|
|
|
// //这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
// barBorderRadius: [50, 50, 0, 0],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
// 体质
|
|
|
@ -407,15 +397,14 @@ export const physiqueEcharts = { |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
barMaxWidth: 24, //柱图宽度
|
|
|
|
color: "#4f8bff", |
|
|
|
itemStyle: { |
|
|
|
normal: { |
|
|
|
//这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
barBorderRadius: [50, 50, 0, 0], |
|
|
|
}, |
|
|
|
}, |
|
|
|
color: "#70483E", |
|
|
|
// itemStyle: {
|
|
|
|
// normal: {
|
|
|
|
// //这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
// barBorderRadius: [50, 50, 0, 0],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
// 体态
|
|
|
@ -441,7 +430,7 @@ export const postureEcharts = { |
|
|
|
bottom: "0%", |
|
|
|
containLabel: true, |
|
|
|
}, |
|
|
|
color: ["#4f8bff", "#ffcd6c", "#00d1a1", "#a794fe","#EE6666"], |
|
|
|
color: ["#C7BDB1", "#C6A268", "#906C4A", "#70483E", "#582518"], |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
type: "pie", |
|
|
@ -452,11 +441,11 @@ export const postureEcharts = { |
|
|
|
position: "center", |
|
|
|
normal: { |
|
|
|
show: true, |
|
|
|
position:'inner', |
|
|
|
formatter: '{b}:{c}个', |
|
|
|
position: "inner", |
|
|
|
formatter: "{b}:{c}个", |
|
|
|
textStyle: { |
|
|
|
color:'#fff' |
|
|
|
} |
|
|
|
color: "#fff", |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
labelLine: { |
|
|
@ -492,8 +481,7 @@ export const agrypniaEcharts = { |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
data: ['0~4分', '5~9分', '10~14分','15~19分','20~27分'], |
|
|
|
|
|
|
|
data: ["0~4分", "5~9分", "10~14分", "15~19分", "20~27分"], |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -519,15 +507,14 @@ export const agrypniaEcharts = { |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
barMaxWidth: 24, //柱图宽度
|
|
|
|
color: "#4f8bff", |
|
|
|
itemStyle: { |
|
|
|
normal: { |
|
|
|
//这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
barBorderRadius: [50, 50, 0, 0], |
|
|
|
}, |
|
|
|
color: "#C6A268", |
|
|
|
// itemStyle: {
|
|
|
|
// normal: {
|
|
|
|
// //这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
// barBorderRadius: [50, 50, 0, 0],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
// 焦虑度
|
|
|
@ -556,8 +543,7 @@ export const anxietyEcharts = { |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
data: ['<8分', '8~20分','21~35分','>35分'], |
|
|
|
|
|
|
|
data: ["<8分", "8~20分", "21~35分", ">35分"], |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -583,15 +569,14 @@ export const anxietyEcharts = { |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
barMaxWidth: 24, //柱图宽度
|
|
|
|
color: "#4f8bff", |
|
|
|
itemStyle: { |
|
|
|
normal: { |
|
|
|
//这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
barBorderRadius: [50, 50, 0, 0], |
|
|
|
}, |
|
|
|
color: "#70483E", |
|
|
|
// itemStyle: {
|
|
|
|
// normal: {
|
|
|
|
// //这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
// barBorderRadius: [50, 50, 0, 0],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
// -------- 治疗类型 --------
|
|
|
@ -618,7 +603,7 @@ export const healTypeEcharts = { |
|
|
|
bottom: "0%", |
|
|
|
containLabel: true, |
|
|
|
}, |
|
|
|
color: ["#91CC75", "#5470C6"], |
|
|
|
color: ["#C6A268", "#D8D8D8"], |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
type: "pie", |
|
|
@ -629,11 +614,11 @@ export const healTypeEcharts = { |
|
|
|
position: "center", |
|
|
|
normal: { |
|
|
|
show: true, |
|
|
|
position:'inner', |
|
|
|
formatter: '{b}:{c}个', |
|
|
|
position: "inner", |
|
|
|
formatter: "{b}:{c}个", |
|
|
|
textStyle: { |
|
|
|
color:'#fff' |
|
|
|
} |
|
|
|
color: "#fff", |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
labelLine: { |
|
|
@ -669,8 +654,7 @@ export const diseaseMethodEcharts = { |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
data: ['肥胖症', '失眠症','其他'], |
|
|
|
|
|
|
|
data: ["肥胖症", "失眠症", "其他"], |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -740,7 +724,7 @@ export const effectEcharts = { |
|
|
|
bottom: "0%", |
|
|
|
containLabel: true, |
|
|
|
}, |
|
|
|
color: ["#5C7BD9", "#91CC75",'#FAC858','#EE6666'], |
|
|
|
color: ["#C6A268", "#906C4A", "#70483E", "#C7BDB1"], |
|
|
|
series: [ |
|
|
|
{ |
|
|
|
type: "pie", |
|
|
@ -751,11 +735,11 @@ export const effectEcharts = { |
|
|
|
position: "center", |
|
|
|
normal: { |
|
|
|
show: true, |
|
|
|
position:'inner', |
|
|
|
formatter: '{b}:{c}个', |
|
|
|
position: "inner", |
|
|
|
formatter: "{b}:{c}个", |
|
|
|
textStyle: { |
|
|
|
color:'#fff' |
|
|
|
} |
|
|
|
color: "#fff", |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
labelLine: { |
|
|
@ -791,7 +775,7 @@ export const costEcharts = { |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
data: ['<300元','300 ~ 900元','900 ~ 2000元','2000 ~ 5000元','>5000元'], |
|
|
|
data: ["<300元", "300 ~ 900元", "900 ~ 2000元", "2000 ~ 5000元", ">5000元"], |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -824,7 +808,6 @@ export const costEcharts = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
// -------- 随访 --------
|
|
|
@ -853,7 +836,7 @@ export const followEcharts = { |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
data: ['待随访','临近随访','超期随访','正常随访'], |
|
|
|
data: ["待随访", "临近随访", "超期随访", "正常随访"], |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -873,9 +856,9 @@ export const followEcharts = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
], |
|
|
|
series: [], |
|
|
|
}; |
|
|
|
// 失访原因
|
|
|
|
export const lossFollowEcharts = { |
|
|
|
tooltip: { |
|
|
|
trigger: "axis", |
|
|
@ -901,7 +884,7 @@ export const lossFollowEcharts = { |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
|
data: ['<300元','300 ~ 900元','900 ~ 2000元','2000 ~ 5000元','>5000元'], |
|
|
|
data: ["<300元", "300 ~ 900元", "900 ~ 2000元", "2000 ~ 5000元", ">5000元"], |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
top: "12%", |
|
|
@ -927,13 +910,13 @@ export const lossFollowEcharts = { |
|
|
|
data: [], |
|
|
|
type: "bar", |
|
|
|
barMaxWidth: 24, //柱图宽度
|
|
|
|
itemStyle: { |
|
|
|
normal: { |
|
|
|
//这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
barBorderRadius: [50, 50, 0, 0], |
|
|
|
}, |
|
|
|
color: "#70483E", |
|
|
|
// itemStyle: {
|
|
|
|
// normal: {
|
|
|
|
// //这里设置柱形图圆角 [左上角,右上角,右下角,左下角]
|
|
|
|
// barBorderRadius: [50, 50, 0, 0],
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|