fix:修改g2组件的默认配色

main
liu.shiyi 1 year ago
parent 1f19c9d278
commit 83f368a18b

@ -432,7 +432,7 @@ const option = {
smooth: true,
lineStyle: {
lineWidth: 2,
stroke: 'l(0) 0:#5F92F9 1:#62FF00'
stroke: 'l(0) 0:#6b74e4 1:#4391f4'
},
xAxis: {
title: {

@ -53,19 +53,19 @@ export default {
colorList: [
{
label: '配色1',
value: JSON.stringify(['#5B8FF9', '#61DDAA', '#5D7092', '#F6BD16', '#6F5EF9', '#6DC8EC', '#945FB9', '#FF9845', '#1E9493', '#FF99C3'])
value: JSON.stringify(['#6b74e4', '#4391f4', '#38bbe5', '#69d6fd', '#36c6a0'])
},
{
label: '配色2',
value: JSON.stringify(['#FF6B3B', '#626681', '#FFC100', '#9FB40F', '#76523B', '#DAD5B5', '#0E8E89', '#E19348', '#F383A2', '#247FEA'])
value: JSON.stringify(['#FF6B3B', '#626681', '#FFC100', '#9FB40F', '#76523B'])
},
{
label: '配色3',
value: JSON.stringify(['#025DF4', '#DB6BCF', '#2498D1', '#BBBDE6', '#4045B2', '#21A97A', '#FF745A', '#007E99', '#FFA8A8', '#2391FF'])
value: JSON.stringify(['#025DF4', '#DB6BCF', '#2498D1', '#BBBDE6', '#4045B2'])
},
{
label: '配色4',
value: JSON.stringify(['#FF4500', '#1AAF8B', '#406C85', '#F6BD16', '#B40F0F', '#2FB8FC', '#4435FF', '#FF5CA2', '#BBE800', '#FE8A26'])
value: JSON.stringify(['#FF4500', '#1AAF8B', '#406C85', '#F6BD16', '#B40F0F'])
}
],
colorValue: []

@ -169,7 +169,7 @@ const setting = [
type: 'gradual',
field: 'lineStyle_stroke',
optionField: 'lineStyle.stroke',
value: 'l(0) 0:#5F92F9 1:#62FF00',
value: 'l(0) 0:#6b74e4 1:#4391f4',
tabName: 'custom',
groupName: 'graph'
},
@ -497,7 +497,7 @@ const option = {
smooth: false,
lineStyle: {
lineWidth: 2,
stroke: 'l(0) 0:#5F92F9 1:#62FF00'
stroke: 'l(0) 0:#6b74e4 1:#4391f4'
},
label: {
style: {

@ -160,7 +160,7 @@ const setting = [
type: 'gradual',
field: 'lineStyle_stroke',
optionField: 'lineStyle.stroke',
value: 'l(0) 0:#5F92F9 1:#62FF00',
value: 'l(0) 0:#6b74e4 1:#4391f4',
tabName: 'custom',
groupName: 'graph'
},
@ -509,7 +509,7 @@ const option = {
},
lineStyle: {
lineWidth: 2,
stroke: 'l(0) 0:#5F92F9 1:#62FF00'
stroke: 'l(0) 0:#6b74e4 1:#4391f4'
},
xAxis: {
title: {

@ -387,7 +387,7 @@ const option = {
smooth: true,
lineStyle: {
lineWidth: 2,
stroke: 'l(0) 0:#5F92F9 1:#62FF00'
stroke: 'l(0) 0:#6b74e4 1:#4391f4'
},
xAxis: {
title: {

@ -59,7 +59,7 @@ const setting = [
field: 'range_color',
// 对应options中的字段
optionField: 'range.color',
value: 'l(0) 0:#6B74E3 1:#38BBE5',
value: 'l(0) 0:#6b74e4 1:#4391f4',
tabName: 'custom',
groupName: 'graph'
},
@ -156,7 +156,7 @@ const option = {
data,
percent: 0.75,
range: {
color: 'l(0) 0:#6B74E3 1:#38BBE5'
color: 'l(0) 0:#6b74e4 1:#4391f4'
},
indicator: {
pointer: {

@ -35,7 +35,7 @@ const setting = [
field: 'frontColor',
// 对应options中的字段
optionField: 'frontColor',
value: 'l(0) 0:#6B74E3 1:#38BBE5',
value: 'l(0) 0:#6b74e4 1:#4391f4',
tabName: 'custom',
groupName: 'graph'
},
@ -89,7 +89,7 @@ const option = {
percent: 0.8,
barWidthRatio: 0.3,
backColor: 'rgba(255, 255, 255, 0)',
frontColor: 'l(0) 0:#6B74E3 1:#38BBE5',
frontcolor: 'l(0) 0:#6b74e4 1:#4391f4',
color: ['l(0) 0:#6B74E3 1:#38BBE5', 'rgba(255, 255, 255, 0)'],
progressStyle: {
r: 10,

@ -35,7 +35,7 @@ const setting = [
field: 'range_color',
// 对应options中的字段
optionField: 'range.color',
value: 'l(0) 0:#6B74E3 1:#38BBE5',
value: 'l(0) 0:#6b74e4 1:#4391f4',
tabName: 'custom',
groupName: 'graph'
},
@ -144,7 +144,7 @@ const option = {
data,
percent: 0.75,
range: {
color: 'l(0) 0:#6B74E3 1:#38BBE5'
color: 'l(0) 0:#6b74e4 1:#4391f4'
},
startAngle: Math.PI,
endAngle: 2 * Math.PI,

@ -47,7 +47,7 @@ const setting = [
field: 'color1',
// 对应options中的字段
optionField: 'color1',
value: 'l(0) 0:#6B74E3 1:#38BBE5',
value: 'l(0) 0:#6b74e4 1:#4391f4',
tabName: 'custom',
groupName: 'graph'
},

@ -47,7 +47,7 @@ const setting = [
field: 'frontColor',
// 对应options中的字段
optionField: 'frontColor',
value: 'l(0) 0:#6B74E3 1:#38BBE5',
value: 'l(0) 0:#6b74e4 1:#4391f4',
tabName: 'custom',
groupName: 'graph'
},
@ -87,7 +87,7 @@ const option = {
percent: 0.8,
barWidthRatio: 0.3,
backColor: '#EEEEEE',
frontColor: 'l(0) 0:#6B74E3 1:#38BBE5',
frontcolor: 'l(0) 0:#6b74e4 1:#4391f4',
color: ['l(0) 0:#6B74E3 1:#38BBE5', '#fff'],
progressStyle: {
current: {

@ -47,7 +47,7 @@ const setting = [
field: 'color1',
// 对应options中的字段
optionField: 'color1',
value: 'l(0) 0:#6B74E3 1:#38BBE5',
value: 'l(0) 0:#6b74e4 1:#4391f4',
tabName: 'custom',
groupName: 'graph'
},

Loading…
Cancel
Save