fix:优化图表配置

main
liu.shiyi 1 year ago
parent fd3ce6a8bd
commit f14e8c870f

@ -195,7 +195,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -255,7 +255,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -340,7 +340,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -471,7 +471,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -55,10 +55,6 @@ const setting = [
value: '',
tabName: 'custom',
options: [
{
label: '无',
value: false
},
{
label: '空心圆',
value: 'hollow-circle'
@ -111,7 +107,7 @@ const setting = [
type: 'inputNumber',
field: 'point_size',
optionField: 'point.size',
value: 2,
value: 3,
tabName: 'custom',
groupName: 'graph'
},
@ -122,7 +118,7 @@ const setting = [
optionField: 'point.style.fill',
// 是否多选
multiple: false,
value: '#ffffff',
value: '#6B74E4',
tabName: 'custom',
groupName: 'graph'
},
@ -142,7 +138,7 @@ const setting = [
type: 'colorPicker',
field: 'label_style_fill',
optionField: 'label.style.fill',
value: '#fff',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'graph'
},
@ -151,7 +147,7 @@ const setting = [
type: 'inputNumber',
field: 'label_style_fontSize',
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -169,7 +165,7 @@ const setting = [
type: 'gradual',
field: 'lineStyle_stroke',
optionField: 'lineStyle.stroke',
value: 'l(0) 0:#6b74e4 1:#4391f4',
value: 'l(0) 0:#6b74e4 1:#6b74e4',
tabName: 'custom',
groupName: 'graph'
},
@ -203,7 +199,6 @@ const setting = [
tabName: 'custom',
groupName: 'grid'
},
// 图例 legend
// X轴 xAxis
{
label: '标题',
@ -252,7 +247,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -312,7 +307,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -417,7 +412,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -528,20 +523,20 @@ const option = {
smooth: false,
lineStyle: {
lineWidth: 2,
stroke: 'l(0) 0:#6b74e4 1:#4391f4'
stroke: 'l(0) 0:#6b74e4 1:#6b74e4'
},
label: {
style: {
fill: '#fff',
opacity: 0,
fontSize: 12
fontSize: 10
}
},
point: {
size: 2,
size: 3,
shape: 'diamond',
style: {
fill: 'red',
fill: '#6B74E4',
stroke: '#5B8FF9',
lineWidth: 2
}
@ -561,7 +556,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -575,7 +570,7 @@ const option = {
autoHideMinGap: 2,
style: {
fill: '#e9e9e9',
fontSize: 12
fontSize: 10
}
},
line: {
@ -586,7 +581,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -57,10 +57,6 @@ const setting = [
value: 'circle',
tabName: 'custom',
options: [
{
label: '无',
value: false
},
{
label: '空心圆',
value: 'hollow-circle'
@ -113,7 +109,7 @@ const setting = [
type: 'inputNumber',
field: 'point_size',
optionField: 'point.size',
value: 2,
value: 3,
tabName: 'custom',
groupName: 'graph'
},
@ -124,16 +120,16 @@ const setting = [
optionField: 'point.style.fill',
// 是否多选
multiple: false,
value: '#ffffff',
value: '#6B74E4',
tabName: 'custom',
groupName: 'graph'
},
{
label: '数据标签字体大小',
label: '数据标签大小',
type: 'inputNumber',
field: 'label_style_fontSize',
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -142,7 +138,7 @@ const setting = [
type: 'colorPicker',
field: 'label_style_fill',
optionField: 'label.style.fill',
value: 'rgba(255,255,255,1)',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'graph'
},
@ -160,7 +156,7 @@ const setting = [
type: 'gradual',
field: 'lineStyle_stroke',
optionField: 'lineStyle.stroke',
value: 'l(0) 0:#6b74e4 1:#4391f4',
value: 'l(0) 0:#6b74e4 1:#6b74e4',
tabName: 'custom',
groupName: 'graph'
},
@ -243,7 +239,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -303,7 +299,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -408,7 +404,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -517,15 +513,15 @@ const option = {
yField: 'value',
label: {
style: {
fill: '#fff',
fontSize: 12
fill: '#e9e9e9',
fontSize: 10
}
},
point: {
size: 5,
size: 3,
shape: 'circle',
style: {
fill: 'white',
fill: '6B74E4',
stroke: '#5B8FF9',
lineWidth: 2
}
@ -542,14 +538,14 @@ const option = {
},
lineStyle: {
lineWidth: 2,
stroke: 'l(0) 0:#6b74e4 1:#4391f4'
stroke: 'l(0) 0:#6b74e4 1:#6b74e4'
},
xAxis: {
title: {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -572,7 +568,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -60,7 +60,7 @@ const setting = [
type: 'gradual',
field: 'lineStyle_stroke',
optionField: 'lineStyle.stroke',
value: 'l(0) 0:#6B74E4 1:#4391F4',
value: 'l(0) 0:#4391F4 1:#4391F4',
tabName: 'custom',
groupName: 'graph'
},
@ -143,7 +143,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -203,7 +203,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -308,7 +308,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -419,14 +419,14 @@ const option = {
smooth: true,
lineStyle: {
lineWidth: 2,
stroke: 'l(0) 0:#6B74E4 1:#4391F4'
stroke: 'l(0) 0:#4391F4 1:#4391F4'
},
xAxis: {
title: {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -449,7 +449,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -217,7 +217,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -269,7 +269,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -329,7 +329,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -432,7 +432,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -559,7 +559,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -582,7 +582,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}
@ -635,7 +635,7 @@ const option = {
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}

@ -99,10 +99,6 @@ const setting = [
value: 'circle',
tabName: 'custom',
options: [
{
label: '无',
value: false
},
{
label: '空心圆',
value: 'hollow-circle'
@ -160,18 +156,7 @@ const setting = [
groupName: 'graph'
},
{
label: '折线点颜色',
type: 'colorPicker',
field: 'point_style_fill',
optionField: 'point.style.fill',
// 是否多选
multiple: false,
value: '#ffffff',
tabName: 'custom',
groupName: 'graph'
},
{
label: '数据标签字体大小',
label: '数据标签大小',
type: 'inputNumber',
field: 'label_style_fontSize',
optionField: 'label.style.fontSize',
@ -280,7 +265,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -332,7 +317,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -392,7 +377,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -495,7 +480,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -599,6 +584,7 @@ if(autoHide){
} else {
option.xAxis.label.autoHide = false
}
option.point.color = setting.find(settingItem=>settingItem.field === 'color')?.value
`
// 数据处理脚本
@ -622,17 +608,18 @@ const option = {
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
},
color: ['#6b74e4', '#4391f4', '#38bbe5', '#69d6fd', '#36c6a0'],
point: {
size: 5,
size: 3,
shape: 'circle',
color: ['#6b74e4', '#4391f4', '#38bbe5', '#69d6fd', '#36c6a0'],
style: {
fill: 'white',
// fill: 'white',
stroke: '#5B8FF9',
lineWidth: 0
}
@ -648,7 +635,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -671,7 +658,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -168,7 +168,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -220,7 +220,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -280,7 +280,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -383,7 +383,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -511,7 +511,7 @@ const option = {
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
@ -523,7 +523,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -546,7 +546,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -233,7 +233,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -285,7 +285,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -345,7 +345,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -448,7 +448,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -575,7 +575,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -598,7 +598,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}
@ -652,7 +652,7 @@ const option = {
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}

@ -128,7 +128,7 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -236,7 +236,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -288,7 +288,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -391,7 +391,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -462,7 +462,7 @@ const setting = [
optionField: 'yAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'yAxis'
},
@ -546,7 +546,7 @@ const option = {
legendPosition: 'top',
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
@ -580,7 +580,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -598,7 +598,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 0
}
}
@ -641,7 +641,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -115,7 +115,7 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -291,7 +291,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -343,7 +343,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -446,7 +446,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -517,7 +517,7 @@ const setting = [
optionField: 'yAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'yAxis'
},
@ -605,7 +605,7 @@ const option = {
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
@ -624,7 +624,7 @@ const option = {
style: {
fill: '#59F25F',
opacity: 0,
fontSize: 12
fontSize: 10
}
},
radiusNum: 0, // 设置条形图的圆角的中间值
@ -641,7 +641,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -659,7 +659,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 0
}
}
@ -702,7 +702,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -107,7 +107,7 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -239,7 +239,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -291,7 +291,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -394,7 +394,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -465,7 +465,7 @@ const setting = [
optionField: 'yAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'yAxis'
},
@ -550,7 +550,7 @@ const option = {
legendPosition: 'top',
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
@ -588,7 +588,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -606,7 +606,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 0
}
}
@ -649,7 +649,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -102,7 +102,7 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -210,7 +210,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -262,7 +262,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -322,7 +322,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -425,7 +425,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -544,7 +544,7 @@ const option = {
legendPosition: 'top',
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
@ -567,7 +567,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -590,7 +590,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -102,7 +102,7 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -210,7 +210,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -262,7 +262,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -322,7 +322,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -425,7 +425,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -553,7 +553,7 @@ const option = {
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
@ -577,7 +577,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -600,7 +600,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -101,7 +101,7 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -216,7 +216,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -276,7 +276,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -379,7 +379,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -503,7 +503,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -526,7 +526,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -102,7 +102,7 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -210,7 +210,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -262,7 +262,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -322,7 +322,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -425,7 +425,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -546,7 +546,7 @@ const option = {
legendEnable: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
@ -573,7 +573,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -596,7 +596,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -138,7 +138,7 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},

@ -114,6 +114,18 @@ const setting = [
tabName: 'custom',
groupName: 'graph'
},
{
label: '数据标签大小',
// 设置组件类型
type: 'inputNumber',
// 字段
field: 'conversionTag_style_fontSize',
// 对应options中的字段
optionField: 'conversionTag.style.fontSize',
value: 10,
tabName: 'custom',
groupName: 'graph'
},
{
label: '颜色',
// 设置组件类型

@ -139,7 +139,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -216,7 +216,7 @@ const option = {
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}

@ -144,7 +144,7 @@ const option = {
yField: 'value',
label: {},
point: {
size: 5,
size: 3,
shape: 'diamond',
style: {
fill: 'white',

@ -165,6 +165,86 @@ const setting = [
tabName: 'custom',
groupName: 'graph'
},
{
label: '数据标签',
type: 'switch', // 设置组件类型
field: 'label_style_opacity', // 字段
optionField: 'label.style.opacity', // 对应options中的字段
value: 0,
active: 1,
inactive: 0,
tabName: 'custom',
groupName: 'graph'
},
{
label: '数据标签颜色',
type: 'colorPicker', // 设置组件类型
field: 'label_style_fill', // 字段
optionField: 'label.style.fill', // 对应options中的字段
value: '#ffffff',
tabName: 'custom',
groupName: 'graph'
},
{
label: '数据标签大小',
// 设置组件类型
type: 'inputNumber',
// 字段
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 10,
tabName: 'custom',
groupName: 'graph'
},
// 网格线
{
label: '颜色',
type: 'colorPicker',
field: 'yAxis_grid_line_style_stroke',
optionField: 'yAxis.grid.line.style.stroke',
value: '#E5E6EB10',
tabName: 'custom',
groupName: 'grid'
},
{
label: '奇数圈底色',
type: 'colorPicker', // 设置组件类型
field: 'yAxis_grid_alternateColor1', // 字段
optionField: 'yAxis.grid.alternateColor1', // 对应options中的字段
value: 'rgba(0, 0, 0, 0.04)',
tabName: 'custom',
groupName: 'grid'
},
{
label: '偶数圈底色',
type: 'colorPicker', // 设置组件类型
field: 'yAxis_grid_alternateColor2', // 字段
optionField: 'yAxis.grid.alternateColor2', // 对应options中的字段
value: 'rgba(0, 0, 0, 0.04)',
tabName: 'custom',
groupName: 'grid'
},
{
label: '标签大小',
type: 'inputNumber',
field: 'xAxis_label_style_fontSize',
optionField: 'xAxis.label.style.fontSize',
value: 12,
tabName: 'custom',
groupName: 'xAxis'
},
{
label: '标签颜色',
type: 'colorPicker',
field: 'xAxis_label_style_fill',
optionField: 'xAxis.label.style.fill',
// 是否多选
multiple: false,
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
// 图例 legend
{
label: '显示',
@ -227,7 +307,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -269,7 +349,8 @@ const data = [
const optionHandler = 'option.legend = option.legendEnable ? {position: setting.find(settingItem=>settingItem.field === \'legendPosition\').value} : false;' +
'\n if (option.legendEnable) {\n' +
' option.legend.itemName = option.legendItemName\n' +
' }'
' }' +
'option.yAxis.grid.alternateColor = [option.yAxis.grid.alternateColor1, option.yAxis.grid.alternateColor2]'
// 数据处理脚本
const dataHandler = ''
@ -292,7 +373,7 @@ const option = {
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
@ -308,6 +389,12 @@ const option = {
xAxis: {
line: null,
tickLine: null,
label: {
style: {
fill: '#e9e9e9',
fontSize: 12
}
},
grid: {
line: {
style: {
@ -326,10 +413,27 @@ const option = {
min: 0,
label: false,
grid: {
alternateColor: 'rgba(0, 0, 0, 0.04)'
line: {
type: 'line',
style: {
stroke: '#E5E6EB10',
lineDash: null
},
},
alternateColor1: 'rgba(0, 0, 0, 0.04)',
alternateColor2: 'rgba(0, 0, 0, 0.04)',
alternateColor: ['rgba(0, 0, 0, 0.04)', 'rgba(0, 0, 0, 0.04)']
}
},
area: 1
area: 1,
label: {
autoRotate: false,
style: {
fill: '#ffffff',
opacity: 1,
fontSize: 12
}
}
}
export default {

@ -179,12 +179,20 @@ const setting = [
field: 'label_style_fontSize',
// 对应options中的字段
optionField: 'label.style.fontSize',
value: 12,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
// x轴 xAxis
// 网格线
{
label: '颜色',
type: 'colorPicker',
field: 'yAxis_grid_line_style_stroke',
optionField: 'yAxis.grid.line.style.stroke',
value: '#E5E6EB10',
tabName: 'custom',
groupName: 'grid'
},
{
label: '显示外层圆圈',
type: 'switch',
@ -214,6 +222,26 @@ const setting = [
tabName: 'custom',
groupName: 'grid'
},
{
label: '标签大小',
type: 'inputNumber',
field: 'xAxis_label_style_fontSize',
optionField: 'xAxis.label.style.fontSize',
value: 12,
tabName: 'custom',
groupName: 'xAxis'
},
{
label: '标签颜色',
type: 'colorPicker',
field: 'xAxis_label_style_fill',
optionField: 'xAxis.label.style.fill',
// 是否多选
multiple: false,
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
{
label: 'y轴最小值',
type: 'inputNumber',
@ -286,6 +314,12 @@ const option = {
lineEnabled: false,
line: {},
tickLine: null,
label: {
style: {
fill: '#e9e9e9',
fontSize: 12
}
},
grid: {
line: {
style: {
@ -303,6 +337,7 @@ const option = {
line: {
type: 'line',
style: {
stroke: '#E5E6EB10',
lineDash: null,
},
},

@ -124,7 +124,7 @@ const setting = [
type: 'colorPicker', // 设置组件类型
field: 'point_color', // 字段
optionField: 'point.color', // 对应options中的字段
value: '',
value: '#6B74E4',
tabName: 'custom',
groupName: 'graph'
},
@ -133,13 +133,9 @@ const setting = [
type: 'select', // 设置组件类型
field: 'point_shape', // 字段
optionField: 'point.shape', // 对应options中的字段
value: 'hollow-circle',
value: 'circle',
tabName: 'custom',
options: [
{
label: '无',
value: false
},
{
label: '空心圆',
value: 'hollow-circle'
@ -188,11 +184,11 @@ const setting = [
groupName: 'graph'
},
{
label: '数据标签字体大小',
label: '数据标签大小',
type: 'inputNumber',
field: 'label_style_fontSize',
optionField: 'label.style.fontSize',
value: 0,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -201,7 +197,7 @@ const setting = [
type: 'colorPicker',
field: 'label_style_fill',
optionField: 'label.style.fill',
value: 'rgba(255,255,255,1)',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'graph'
},
@ -284,7 +280,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -344,7 +340,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -447,7 +443,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -572,8 +568,8 @@ const option = {
},
label: {
style: {
fill: 'rgba(255,255,255,1)',
fontSize: 0
fill: '#e9e9e9',
fontSize: 10
}
},
line: {
@ -581,7 +577,7 @@ const option = {
size: 2
},
point: {
color: '',
color: '#6B74E4',
shape: 'hollow-circle',
size: 0
},
@ -590,7 +586,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -613,7 +609,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -65,7 +65,7 @@ const setting = [
type: 'switch', // 设置组件类型
field: 'smooth', // 字段
optionField: 'smooth', // 对应options中的字段
value: false,
value: true,
active: true,
inactive: false,
tabName: 'custom',
@ -108,10 +108,6 @@ const setting = [
value: 'circle',
tabName: 'custom',
options: [
{
label: '无',
value: false
},
{
label: '空心圆',
value: 'hollow-circle'
@ -169,11 +165,11 @@ const setting = [
groupName: 'graph'
},
{
label: '数据标签字体大小',
label: '数据标签大小',
type: 'inputNumber',
field: 'label_style_fontSize',
optionField: 'label.style.fontSize',
value: 0,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -278,7 +274,7 @@ const setting = [
type: 'colorPicker',
field: 'legendItemName_style_fill',
optionField: 'legendItemName.style.fill',
value: '#595959',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'legend'
},
@ -330,7 +326,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -390,7 +386,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -493,7 +489,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -615,21 +611,21 @@ const option = {
yField: 'value',
color: ['#6b74e4', '#4391f4', '#38bbe5', '#69d6fd', '#36c6a0'],
seriesField: 'type',
smooth: false,
smooth: true,
legendEnable: false,
legendLayout: 'vertical',
legendPosition: 'top',
legend: false,
legendItemName: {
style: {
fill: '#595959',
fill: '#e9e9e9',
fontSize: 12,
fontWeight: 400
}
},
startOnZero: true,
point: {
size: 5,
size: 3,
shape: 'circle',
},
label: {
@ -643,7 +639,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -666,7 +662,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -51,7 +51,7 @@ const setting = [
type: 'switch', // 设置组件类型
field: 'smooth', // 字段
optionField: 'smooth', // 对应options中的字段
value: false,
value: true,
active: true,
inactive: false,
tabName: 'custom',
@ -89,7 +89,7 @@ const setting = [
type: 'gradual', // 设置组件类型
field: 'areaStyle_fill', // 字段
optionField: 'areaStyle.fill', // 对应options中的字段
value: 'l(270) 0:#6B74E4 1:#000000',
value: 'l(90) 0:#6B74E4 1:#000000',
tabName: 'custom',
groupName: 'graph'
},
@ -113,7 +113,7 @@ const setting = [
type: 'inputNumber',
field: 'point_size',
optionField: 'point.size',
value: 0,
value: 3,
min: 0,
tabName: 'custom',
groupName: 'graph'
@ -135,10 +135,6 @@ const setting = [
value: 'hollow-circle',
tabName: 'custom',
options: [
{
label: '无',
value: false
},
{
label: '空心圆',
value: 'hollow-circle'
@ -187,11 +183,11 @@ const setting = [
groupName: 'graph'
},
{
label: '数据标签字体大小',
label: '数据标签大小',
type: 'inputNumber',
field: 'label_style_fontSize',
optionField: 'label.style.fontSize',
value: 0,
value: 10,
tabName: 'custom',
groupName: 'graph'
},
@ -200,7 +196,7 @@ const setting = [
type: 'colorPicker',
field: 'label_style_fill',
optionField: 'label.style.fill',
value: 'rgba(255,255,255,1)',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'graph'
},
@ -283,7 +279,7 @@ const setting = [
optionField: 'xAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'xAxis'
},
@ -343,7 +339,7 @@ const setting = [
optionField: 'xAxis.tickLine.style.stroke',
// 是否多选
multiple: false,
value: '#d0d0d0',
value: '#C9CDD4',
tabName: 'custom',
groupName: 'xAxis'
},
@ -446,7 +442,7 @@ const setting = [
optionField: 'yAxis.title.style.fill',
// 是否多选
multiple: false,
value: '#8C8C8C',
value: '#e9e9e9',
tabName: 'custom',
groupName: 'yAxis'
},
@ -550,12 +546,12 @@ const option = {
data,
xField: 'date',
yField: 'value',
smooth: false,
smooth: true,
startOnZero: true,
isStack: false,
areaStyle: {
fillOpacity: 0.15,
fill: 'l(270) 0:#6B74E4 1:#000000'
fill: 'l(90) 0:#6B74E4 1:#000000'
},
line: {
color: '#6B74E4',
@ -564,12 +560,12 @@ const option = {
point: {
color: '',
shape: 'hollow-circle',
size: 0
size: 3
},
label: {
style: {
fill: 'rgba(255,255,255,1)',
fontSize: 0
fill: '#e9e9e9',
fontSize: 10
}
},
xAxis: {
@ -577,7 +573,7 @@ const option = {
text: '',
position: 'end',
style: {
fill: '#8C8C8C',
fill: '#e9e9e9',
fontSize: 12
}
},
@ -600,7 +596,7 @@ const option = {
},
tickLine: {
style: {
stroke: '#d0d0d0',
stroke: '#C9CDD4',
lineWidth: 1
}
}

@ -277,7 +277,7 @@ const option = {
label: {
autoRotate: true,
type: 'inner',
labelHeight: 50,
// offset: '-50%',
labelLine: {
style: {
stroke: '#5B8FF9',

Loading…
Cancel
Save