lambo-design-bi 0.0.239 → 0.0.240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ const hexToRgba = (hex, opacity) => {
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
const colors = [
|
|
18
|
-
'#
|
|
18
|
+
'#2D8CF0', // 主色1: 蓝色 - 信息/数据
|
|
19
19
|
'#10B981', // 主色2: 翠绿 - 成功/增长
|
|
20
20
|
'#F97316', // 主色3: 珊瑚橙 (温和橙色)
|
|
21
21
|
'#8B5CF6', // 主色4: 紫罗兰 - 优雅/高级 (替换原橙色)
|
|
@@ -25,8 +25,8 @@ const colors = [
|
|
|
25
25
|
'#6366F1', // 辅色: 靛蓝 - 科技感
|
|
26
26
|
'#14B8A6', // 辅色: 薄荷绿
|
|
27
27
|
'#A855F7', // 辅色: 浅紫
|
|
28
|
-
'#
|
|
29
|
-
const lightColors = colors.map(item => hexToRgba(item, 0.
|
|
28
|
+
'#45D5D0', '#FFBF37', '#FD7336', '#655EF3', '#47D791', '#F85968', '#33BFF3', '#C74EF4', '#F84CEE', '#F5D000', '#B7E518']
|
|
29
|
+
const lightColors = colors.map(item => hexToRgba(item, 0.75))
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* 矩形饼图类型数据处理
|
|
@@ -458,7 +458,7 @@ export function getECharts(type, dataX, dataY, dataDim) {
|
|
|
458
458
|
symbol: 'pin',
|
|
459
459
|
symbolSize: 50,
|
|
460
460
|
itemStyle: {
|
|
461
|
-
color:
|
|
461
|
+
color: lightColors[0],
|
|
462
462
|
borderWidth: 2,
|
|
463
463
|
shadowColor: 'rgba(0, 0, 0, 0.3)',
|
|
464
464
|
shadowBlur: 4
|
|
@@ -474,13 +474,13 @@ export function getECharts(type, dataX, dataY, dataDim) {
|
|
|
474
474
|
lineStyle: {
|
|
475
475
|
type: 'dashed',
|
|
476
476
|
width: 3,
|
|
477
|
-
color:
|
|
477
|
+
color: lightColors[0]
|
|
478
478
|
},
|
|
479
479
|
label: {
|
|
480
480
|
show: true,
|
|
481
481
|
position: 'end',
|
|
482
482
|
color: '#fff',
|
|
483
|
-
backgroundColor:
|
|
483
|
+
backgroundColor: lightColors[0],
|
|
484
484
|
padding: [4, 6],
|
|
485
485
|
borderRadius: 4,
|
|
486
486
|
fontSize: 12,
|
|
@@ -514,7 +514,7 @@ export function getECharts(type, dataX, dataY, dataDim) {
|
|
|
514
514
|
},
|
|
515
515
|
label: {
|
|
516
516
|
show: true,
|
|
517
|
-
color:
|
|
517
|
+
color: lightColors[i],
|
|
518
518
|
position: 'outside',
|
|
519
519
|
fontSize: 13,
|
|
520
520
|
},
|
|
@@ -1456,7 +1456,7 @@ export function getECharts(type, dataX, dataY, dataDim) {
|
|
|
1456
1456
|
itemStyle: {
|
|
1457
1457
|
normal: {
|
|
1458
1458
|
color: function (params) {
|
|
1459
|
-
return lightColors[params.dataIndex]
|
|
1459
|
+
return lightColors[params.dataIndex]
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
},
|