Przeglądaj źródła

v2版本修改

v2.0
suomingxiang 7 miesięcy temu
rodzic
commit
98f0001c2d

BIN
public/images/bj.jpg Wyświetl plik


BIN
public/images/videoMask.png Wyświetl plik


BIN
public/video/animation.mp4 Wyświetl plik


+ 10
- 10
src/pages/components/Header/Header.less Wyświetl plik

@@ -1,6 +1,6 @@
1 1
 .header{
2 2
     width: 100%;
3
-    height: 84px;
3
+    height: 102px;
4 4
     // background-color: rgb(228, 228, 236);
5 5
     display: flex;
6 6
     align-items: center;
@@ -19,31 +19,31 @@
19 19
         height: 84px;
20 20
         position: relative;
21 21
         .logo{
22
-            width: 116px;
23
-            height: 44px;
22
+            width: 140px;
23
+            height: 54px;
24 24
             margin-right: 30px;
25 25
             margin-top: 28px;
26
-            margin-left: 116px;
26
+            margin-left: 192px;
27 27
         }
28 28
         .title{
29
-            width: 618px;
30
-            height: 49px;
29
+            width: 746px;
30
+            height: 60px;
31 31
             margin-top: 34px;
32 32
         }
33 33
         &::after{
34 34
             content: '';
35 35
             width: 2px;
36
-            height: 52px;
36
+            height: 64px;
37 37
             position: absolute;
38
-            left: 255px;
39
-            top: 28px;
38
+            left: 354px;
39
+            top: 25px;
40 40
             background-color: #606060;
41 41
         }
42 42
     }
43 43
     .time{
44 44
         width: 25%;
45 45
         font-family: Source Han Sans CN;
46
-        font-size: 16px;
46
+        font-size: 20px;
47 47
         font-weight: 700;
48 48
         color: #606060;
49 49
         text-align: right;

+ 62
- 58
src/pages/index.less Wyświetl plik

@@ -14,10 +14,10 @@
14 14
         justify-content: space-between;
15 15
     }
16 16
     .contLeft{
17
-        width: 584px;
17
+        width: 656px;
18 18
         // max-width: 494px;
19 19
         flex-shrink: 0;
20
-        padding: 75px 42px 0 48px;
20
+        padding: 90px 0 0 58px;
21 21
         box-sizing: border-box;
22 22
 
23 23
         display: flex;
@@ -29,27 +29,27 @@
29 29
         }
30 30
         .numTitle{
31 31
             color: #606060;
32
-            font-size: 20px;
32
+            font-size: 24px;
33 33
             margin-bottom: 10px;
34 34
         }
35 35
         .numTxt{
36 36
             color: #000000;
37
-            font-size: 32px;
37
+            font-size: 38px;
38 38
             font-weight: bold;
39 39
             text-wrap: nowrap;
40 40
             font-family: DIN;
41 41
         }
42 42
 
43 43
         .chartTitle{
44
-            height: 26px;
45
-            font-size: 17px;
44
+            height: 32px;
45
+            font-size: 21px;
46 46
             font-weight: 700;
47 47
             margin-left: 8px;
48 48
             border-bottom: 1px solid #BBC2CB;
49 49
             display: flex;
50 50
             align-items: center;
51 51
             position: relative;
52
-            margin-bottom: 12px;
52
+            margin-bottom: 16px;
53 53
             text-indent: 5px;
54 54
             text-wrap: nowrap;
55 55
             font-family: 'Source Han Sans CN';
@@ -59,8 +59,8 @@
59 59
                 left: -5px;
60 60
                 top: 50%;
61 61
                 width: 2px;
62
-                height: 18px;
63
-                margin-top: -9px;
62
+                height: 22px;
63
+                margin-top: -11px;
64 64
                 background-color: #1A5FE1;
65 65
             }
66 66
 
@@ -83,7 +83,7 @@
83 83
             }
84 84
         }
85 85
         .chartBox1{
86
-            width: calc(100% - 185px);
86
+            width: calc(100% - 211px);
87 87
             position: relative;
88 88
             &:hover{
89 89
                 .magnifier{
@@ -96,7 +96,7 @@
96 96
             .chartTarbar{
97 97
                 width: 100%;
98 98
                 // height: 24px;
99
-                font-size: 14px;
99
+                font-size: 18px;
100 100
                 font-family: Source Han Sans CN;
101 101
                 color: #606060;
102 102
                 display: flex;
@@ -121,7 +121,7 @@
121 121
 
122 122
         .videoBox{
123 123
             width: 100%;
124
-            height: 148px;
124
+            height: 178px;
125 125
             video{
126 126
                 width: 100%;
127 127
                 height: 100%;
@@ -137,7 +137,7 @@
137 137
         box-sizing: border-box;
138 138
         .cont1{
139 139
             width: 100%;
140
-            padding: 60px 74px 16px;
140
+            padding: 80px 74px 0;
141 141
             box-sizing: border-box;
142 142
             display: flex;
143 143
             align-items: center;
@@ -145,16 +145,16 @@
145 145
             z-index: 2;
146 146
             position: relative;
147 147
             .contLi{
148
-                width: 200px;
148
+                width: 250px;
149 149
                 div:first-child{
150 150
                     color: #000000;
151
-                    font-size: 20px;
151
+                    font-size: 24px;
152 152
                     font-family: Source Han Sans CN;
153 153
                     text-wrap: nowrap;
154 154
                 }
155 155
                 div:last-child{
156 156
                     color: #1A5FE1;
157
-                    font-size: 40px;
157
+                    font-size: 48px;
158 158
                     font-weight: bold;
159 159
                     font-family: DIN;
160 160
                     margin-top: 15px;
@@ -168,20 +168,24 @@
168 168
                 // }
169 169
             }
170 170
             .contLi+.contLi{
171
-                margin-left: 40px;
171
+                margin-left: 50px;
172 172
             }
173 173
         }
174 174
         .cont2{
175 175
             width: 100%;
176
-            height: 74vh;
176
+            height: 88vh;
177 177
             position: relative;
178 178
             z-index: 1;
179 179
             .contVideo{
180 180
                 position: absolute;
181
-                top: -62px;
182
-                left: -99px;
183
-                width: 1268px;
184
-                height: 850px;
181
+                // top: -62px;
182
+                // left: -99px;
183
+                // width: 1268px;
184
+                // height: 850px;
185
+                left: -80px;
186
+                top: -38px;
187
+                width: 1534px;
188
+                height: 1028px;
185 189
                 z-index: 1;
186 190
                 video{
187 191
                     width: 100%;
@@ -200,8 +204,8 @@
200 204
                 width: 36px;
201 205
                 height: 36px; 
202 206
                 position: absolute;
203
-                right: 0;
204
-                top: 0;
207
+                right: 50px;
208
+                top: 15px;
205 209
                 z-index: 3;
206 210
             }
207 211
             // background-color: rgb(241, 240, 245);
@@ -209,11 +213,11 @@
209 213
     }
210 214
 
211 215
     .contRight{
212
-        width: 584px;
216
+        width: 656px;
213 217
         // width: 25%;
214 218
         // max-width: 494px;
215 219
         flex-shrink: 0;
216
-        padding: 75px 48px 0 42px;
220
+        padding: 90px 58px 0 0;
217 221
         box-sizing: border-box;
218 222
         z-index: 999;
219 223
         display: flex;
@@ -224,20 +228,20 @@
224 228
         }
225 229
         .numTitle{
226 230
             color: #606060;
227
-            font-size: 20px;
231
+            font-size: 24px;
228 232
             margin-bottom: 10px;
229 233
         }
230 234
         .numTxt{
231 235
             color: #000000;
232
-            font-size: 32px;
236
+            font-size: 38px;
233 237
             font-weight: bold;
234 238
             text-wrap: nowrap;
235 239
             font-family: DIN;
236 240
         }
237 241
 
238 242
         .chartTitle{
239
-            height: 26px;
240
-            font-size: 17px;
243
+            height: 32px;
244
+            font-size: 21px;
241 245
             font-weight: 700;
242 246
             margin-left: 8px;
243 247
             border-bottom: 1px solid #BBC2CB;
@@ -254,8 +258,8 @@
254 258
                 left: -5px;
255 259
                 top: 50%;
256 260
                 width: 2px;
257
-                height: 18px;
258
-                margin-top: -9px;
261
+                height: 22px;
262
+                margin-top: -11px;
259 263
                 background-color: #1A5FE1;
260 264
             }
261 265
 
@@ -278,7 +282,7 @@
278 282
             }
279 283
         }
280 284
         .chartBox1{
281
-            width: calc(100% - 185px);
285
+            width: calc(100% - 224px);
282 286
             position: relative;
283 287
             overflow: hidden;
284 288
             &:hover{
@@ -290,7 +294,7 @@
290 294
                 content: '';
291 295
                 position: absolute;
292 296
                 left: 50%;
293
-                margin-left: -60px;
297
+                margin-left: -30px;
294 298
                 bottom: -60px;
295 299
                 width: 120px;
296 300
                 height: 120px;
@@ -303,10 +307,10 @@
303 307
                 content: '';
304 308
                 position: absolute;
305 309
                 left: 50%;
306
-                margin-left: -108px;
307
-                bottom: -108px;
308
-                width: 216px;
309
-                height: 216px;
310
+                margin-left: -100px;
311
+                bottom: -130px;
312
+                width: 260px;
313
+                height: 260px;
310 314
                 border-radius: 50%;
311 315
                 border: 1px solid #606060;
312 316
                 opacity: 0.2;
@@ -321,21 +325,21 @@
321 325
                 content: '';
322 326
                 position: absolute;
323 327
                 left: -20px;
324
-                top: 2px;
325
-                width: 10px;
326
-                height: 10px;
328
+                top: 5px;
329
+                width: 12px;
330
+                height: 12px;
327 331
                 background-color: #1A5FE1;
328 332
             }
329 333
             div:first-child{
330
-                font-size: 14px;
334
+                font-size: 18px;
331 335
                 color: #606060;
332 336
                 font-family: Source Han Sans CN;
333 337
                 margin-bottom: 5px;
334 338
             }
335 339
             div:last-child{
336
-                font-size: 28px;
340
+                font-size: 34px;
337 341
                 color: #000000;
338
-                font-weight: 500;
342
+                font-weight: 800;
339 343
                 font-family: DIN;
340 344
             }
341 345
             &:nth-child(1){
@@ -480,10 +484,10 @@
480 484
 .popCircular1{
481 485
     position: absolute;
482 486
     left: 50%;
483
-    margin-left: -191px;
484
-    bottom: -218px;
485
-    width: 430px;
486
-    height: 430px;
487
+    margin-left: -220px;
488
+    bottom: -247px;
489
+    width: 490px;
490
+    height: 490px;
487 491
     border-radius: 50%;
488 492
     border: 2px dashed #606060;
489 493
     opacity: 0.2;
@@ -493,10 +497,10 @@
493 497
 .popCircular2{
494 498
     position: absolute;
495 499
     left: 50%;
496
-    margin-left: -402px;
497
-    bottom: -420px;
498
-    width: 850px;
499
-    height: 850px;
500
+    margin-left: -475px;
501
+    bottom: -498px;
502
+    width: 1000px;
503
+    height: 1000px;
500 504
     border-radius: 50%;
501 505
     border: 2px solid #606060;
502 506
     opacity: 0.2;
@@ -511,16 +515,16 @@
511 515
             border-radius: 0;
512 516
         } 
513 517
         .ant-modal-title{
514
-            font-size: 52px;
515
-            padding-left: 100px;
518
+            font-size: 64px;
519
+            padding-left: 140px;
516 520
             padding-top: 50px;
517 521
             background-color: transparent;
518 522
         }
519 523
         .ant-modal-close{
520
-            width: 64px;
521
-            height: 64px;
524
+            width: 80px;
525
+            height: 80px;
522 526
             top: 80px;
523
-            inset-inline-end:70px;
527
+            inset-inline-end:130px;
524 528
             transition: all .2s;
525 529
             &:hover{
526 530
                 color: #1A5FE1;
@@ -528,7 +532,7 @@
528 532
             }
529 533
         }
530 534
         .ant-modal-close-x{
531
-            font-size: 56px;
535
+            font-size: 74px;
532 536
         }
533 537
     }
534 538
 }

+ 17
- 27
src/pages/index.tsx Wyświetl plik

@@ -125,7 +125,7 @@ const Admin: React.FC = () => {
125 125
     useEffect(() => {
126 126
         getChartData()
127 127
         const interval = setInterval(()=>{
128
-            // getChartData()
128
+            getChartData()
129 129
             if(barIndexRef.current == 0){
130 130
                 setBarIndex(1)
131 131
             }else{
@@ -141,12 +141,6 @@ const Admin: React.FC = () => {
141 141
             setOptions(null)
142 142
             setTitle('')
143 143
             setChartIndex(0)
144
-        }else{
145
-            // setTimeout(()=>{
146
-                if(chartIndex != 10){
147
-                    // chartRef?.current?.resize();
148
-                }
149
-            // },300)
150 144
         }
151 145
     }, [isModalOpen])
152 146
 
@@ -257,7 +251,6 @@ const Admin: React.FC = () => {
257 251
             res.dataAbroad = filterList(res.dataAbroad).reverse()
258 252
             res.nameList = res.nameList.reverse()
259 253
             res.nameListAbroad = res.nameListAbroad.reverse()
260
-            console.log('res3',res)
261 254
             setChart3Data(res)
262 255
             setChartOptions3({
263 256
                 yAxis: {
@@ -347,11 +340,9 @@ const Admin: React.FC = () => {
347 340
         // chart9 用户画像
348 341
         try {
349 342
             const res = await getUserProfile();
350
-            console.log(res)
351 343
             res.data = filterList3(res.data)
352 344
             setChartRequestData9(res)
353 345
             const { data } = res;
354
-            console.log(res)
355 346
             let data2:any = [];
356 347
             let data3:any = [];
357 348
             data[0].data.forEach((item,index)=>{
@@ -460,13 +451,13 @@ const Admin: React.FC = () => {
460 451
           video.currentTime = 0;
461 452
           video.play();
462 453
         }
463
-      }, [videoRef]);
454
+    }, [videoRef]);
464 455
     return (
465 456
         <div className={styles.main}>
466 457
             <Header />
467 458
             <div className={styles.contLeft}>
468 459
                 <div className={`${styles.leftLi} ${styles.displayFlex}`}>
469
-                    <div style={{ width: '165px' }}>
460
+                    <div style={{ width: '200px' }}>
470 461
                         <div className={styles.numTitle}>当日销售额(万元)</div>
471 462
                         <div className={styles.numTxt}>{formatNumberWithCommas(numericalData2.todaySalesVolume)}</div>
472 463
                         <div className={styles.numTitle} style={{ marginTop: 30 }}>全年销售额(万元)</div>
@@ -474,14 +465,14 @@ const Admin: React.FC = () => {
474 465
                     </div>
475 466
                     <div className={styles.chartBox1} onClick={() => openChart(1)}>
476 467
                         <div className={styles.chartTitle}>销售额趋势</div>
477
-                        <ReactEcharts option={chartOptions1} style={{ height: '148px', width: '100%' }} />
468
+                        <ReactEcharts option={chartOptions1} style={{ height: '178px', width: '100%' }} />
478 469
                         <div className={`${styles.magnifier2}`} ><img src={`${magnifierImg}`} alt="" /></div>
479 470
                     </div>
480 471
                 </div>
481 472
                 <div className={`${styles.leftLi} ${styles.displayFlex}`}>
482 473
                     <div className={styles.chartBox2} style={{ width: '155px' }} onClick={() => openChart(2)}>
483 474
                         <div className={styles.chartTitle}>国际销售额占比</div>
484
-                        <ReactEcharts option={chartOptions2} style={{ height: '148px', width: '100%' }} />
475
+                        <ReactEcharts option={chartOptions2} style={{ height: '178px', width: '100%' }} />
485 476
                         <div className={`${styles.magnifier2}`}><img src={`${magnifierImg}`} alt="" /></div>
486 477
                     </div>
487 478
                     <div className={styles.chartBox1}>
@@ -491,15 +482,15 @@ const Admin: React.FC = () => {
491 482
                             <div className={`${styles.barLi} ${barIndex == 1 ? styles.barLis : ''}`} onClick={() => setBarIndex(1)}>国际</div>
492 483
                             <div className={`${styles.magnifier}`} onClick={() => openChart(3)}><img src={`${magnifierImg}`} alt="" /></div>
493 484
                         </div>
494
-                        <div style={{ height: '123px', width: '100%' }} onClick={() => openChart(3)}>
495
-                            <ReactEcharts option={chartOptions3} style={{ height: '123px', width: '100%' }} />
485
+                        <div style={{ height: '155px', width: '100%' }} onClick={() => openChart(3)}>
486
+                            <ReactEcharts option={chartOptions3} style={{ height: '155px', width: '100%' }} />
496 487
                         </div>
497 488
                     </div>
498 489
                 </div>
499 490
                 <div className={styles.leftLi}>
500 491
                     <div className={styles.chartBox2} onClick={() => openChart(4)}>
501 492
                         <div className={styles.chartTitle}>客单价趋势</div>
502
-                        <ReactEcharts option={chartOptions4} style={{ height: '148px', width: '100%' }} />
493
+                        <ReactEcharts option={chartOptions4} style={{ height: '178px', width: '100%' }} />
503 494
                         <div className={`${styles.magnifier2}`}><img src={`${magnifierImg}`} alt="" /></div>
504 495
                     </div>
505 496
                 </div>
@@ -549,7 +540,7 @@ const Admin: React.FC = () => {
549 540
             </div>
550 541
             <div className={styles.contRight}>
551 542
                 <div className={`${styles.rightLi} ${styles.displayFlex}`}>
552
-                    <div style={{ width: '180px' }}>
543
+                    <div style={{ width: '200px' }}>
553 544
                         <div className={styles.numTitle}>当日订单数(张)</div>
554 545
                         <div className={styles.numTxt}>{formatNumberWithCommas(numericalData3.todayOrder)}</div>
555 546
                         <div className={styles.numTitle} style={{ marginTop: 30 }}>全年订单数(张)</div>
@@ -557,19 +548,19 @@ const Admin: React.FC = () => {
557 548
                     </div>
558 549
                     <div className={styles.chartBox1} onClick={() => openChart(5)}>
559 550
                         <div className={styles.chartTitle}>国内外订单对比</div>
560
-                        <ReactEcharts option={chartOptions5} style={{ height: '148px', width: '100%' }} />
551
+                        <ReactEcharts option={chartOptions5} style={{ height: '178px', width: '100%' }} />
561 552
                         <div className={`${styles.magnifier2}`}><img src={`${magnifierImg}`} alt="" /></div>
562 553
                     </div>
563 554
                 </div>
564 555
                 <div className={`${styles.rightLi} ${styles.displayFlex}`}>
565
-                    <div className={styles.chartBox2} style={{ width: '49%' }} onClick={() => openChart(6)}>
556
+                    <div className={styles.chartBox2} style={{ width: '280px' }} onClick={() => openChart(6)}>
566 557
                         <div className={styles.chartTitle}>出发机场排名(国内)</div>
567
-                        <ReactEcharts option={chartOptions6} style={{ height: '148px', width: '100%' }} />
558
+                        <ReactEcharts option={chartOptions6} style={{ height: '178px', width: '100%' }} />
568 559
                         <div className={`${styles.magnifier2}`} ><img src={`${magnifierImg}`} alt="" /></div>
569 560
                     </div>
570
-                    <div className={styles.chartBox2} style={{ width: '49%' }} onClick={() => openChart(7)}>
561
+                    <div className={styles.chartBox2} style={{ width: '280px' }} onClick={() => openChart(7)}>
571 562
                         <div className={styles.chartTitle}>出发机场排名(国际)</div>
572
-                        <ReactEcharts option={chartOptions7} style={{ height: '148px', width: '100%' }} />
563
+                        <ReactEcharts option={chartOptions7} style={{ height: '178px', width: '100%' }} />
573 564
                         <div className={`${styles.magnifier2}`} ><img src={`${magnifierImg}`} alt="" /></div>
574 565
                     </div>
575 566
                 </div>
@@ -577,7 +568,7 @@ const Admin: React.FC = () => {
577 568
                     <div className={styles.chartBox2} onClick={() => openChart(8)}>
578 569
                         <div className={styles.chartTitle}>服务类型</div>
579 570
                         <div className={`${styles.displayFlex}`}>
580
-                            <ReactEcharts option={chartOptions8} style={{ height: '148px', width: '30%' }} />
571
+                            <ReactEcharts option={chartOptions8} style={{ height: '178px', width: '30%' }} />
581 572
                             <div style={{ width: '60%', display: 'flex', flexWrap: 'wrap' }}>
582 573
                                 {chart8Data && chart8Data.map((item, index) => {
583 574
                                     return (
@@ -595,7 +586,7 @@ const Admin: React.FC = () => {
595 586
                 <div className={styles.rightLi}>
596 587
                     <div className={styles.chartBox2} onClick={() => openChart(9)}>
597 588
                         <div className={styles.chartTitle}>用户画像</div>
598
-                        <ReactEcharts option={chartOptions9} style={{ height: '148px', width: '100%' }} />
589
+                        <ReactEcharts option={chartOptions9} style={{ height: '178px', width: '100%' }} />
599 590
                         <div className={`${styles.magnifier2}`} ><img src={`${magnifierImg}`} alt="" /></div>
600 591
                     </div>
601 592
                 </div>
@@ -608,7 +599,7 @@ const Admin: React.FC = () => {
608 599
                         <div className={`${styles.barLi} ${barIndex == 0 ? styles.barLis : ''}`} onClick={() => setBarIndex(0)}>国内</div>
609 600
                         <div className={`${styles.barLi} ${barIndex == 1 ? styles.barLis : ''}`} onClick={() => setBarIndex(1)}>国际</div>
610 601
                     </div>}
611
-                    {[1,2,3,4,5,6,7,8,9].includes(chartIndex) &&  <ReactEcharts ref={chartRef} option={options} style={{ height: [3,5].includes(chartIndex)?'65vh':'80vh', width: [8].includes(chartIndex)?'40vw':'100vw' }} />}
602
+                    {[1,2,3,4,5,6,7,8,9].includes(chartIndex) && <ReactEcharts ref={chartRef} option={options} style={{ height: [3,5].includes(chartIndex)?'65vh':'80vh', width: [8].includes(chartIndex)?'40vw':'100vw' }} />}
612 603
                     {chartIndex == 8 && <div style={{ width: '60%', display: 'flex', flexWrap: 'wrap',paddingLeft:80 ,paddingTop:'8%' }}>
613 604
                         {chart8Data && chart8Data.map((item, index) => {
614 605
                             return (
@@ -629,7 +620,6 @@ const Admin: React.FC = () => {
629 620
                     {chartIndex == 5 && <div className={styles.popCircular2}></div>}
630 621
                 </div>
631 622
             </Modal>
632
-
633 623
         </div>
634 624
     );
635 625
 };

+ 50
- 20
src/services/chartOption.ts Wyświetl plik

@@ -15,7 +15,7 @@ const chartDefaultOptions1 = {
15 15
             rotate: -45,
16 16
             interval: 0,
17 17
             padding: [10, 0, 0, 0],
18
-            fontSize: 12,
18
+            fontSize: 14,
19 19
         },
20 20
         axisTick: {
21 21
             show: false
@@ -34,6 +34,9 @@ const chartDefaultOptions1 = {
34 34
             lineStyle: {
35 35
                 color: 'rgba(96,96,96,0.15)' // 设置x轴网格线颜色为红色  
36 36
             }
37
+        },
38
+        axisLabel:{
39
+            fontSize: 14,
37 40
         }
38 41
     },
39 42
     grid: {
@@ -73,8 +76,10 @@ const chartDefaultOptions1 = {
73 76
                 ),
74 77
                 width: 2 // 折线宽度  
75 78
             },
79
+            animation: true,
76 80
             animationDuration:allAnimationDuration,
77
-            animationEasing:allAnimationEasing
81
+            animationEasing:allAnimationEasing,
82
+            animationDurationUpdate:allAnimationDuration
78 83
         }
79 84
     ],
80 85
     animationEasing:allAnimationEasing
@@ -97,10 +102,10 @@ const chartDefaultOptions2 = {
97 102
     legend: {
98 103
         orient: 'horizontal', // 设置图例为水平方向  
99 104
         bottom: '2%',        // 设置图例离容器底部的距离为10%  
100
-        itemWidth: 10,
101
-        itemHeight: 10,
105
+        itemWidth: 12,
106
+        itemHeight: 12,
102 107
         textStyle: {
103
-            fontSize: 14
108
+            fontSize: 18,
104 109
         }
105 110
     },
106 111
     color: colors,
@@ -151,7 +156,7 @@ const chartDefaultOptions3 = {
151 156
     legend: { show: false },
152 157
     grid: {
153 158
         left: '0%',
154
-        right: '10%',
159
+        right: '5%',
155 160
         bottom: '3%',
156 161
         top: '5%',
157 162
         containLabel: true
@@ -188,7 +193,9 @@ const chartDefaultOptions3 = {
188 193
             }
189 194
         },
190 195
         axisLabel: {
191
-            color: '#606060'
196
+            color: '#606060',
197
+            fontSize:14
198
+            
192 199
         },
193 200
         nameTextStyle: {
194 201
             color: '#606060'
@@ -232,7 +239,8 @@ const chartDefaultOptions4 = {
232 239
         type: 'category',
233 240
         data: mouthData,
234 241
         axisLabel: {
235
-            interval: 0
242
+            interval: 0,
243
+            fontSize: 14,
236 244
         },
237 245
         axisTick: { show: false },
238 246
     },
@@ -243,9 +251,13 @@ const chartDefaultOptions4 = {
243 251
         nameTextStyle: {
244 252
             color: '#606060',
245 253
             align: 'right',
246
-            padding: [0, 8, 0, 0]
254
+            padding: [0, 8, 0, 0],
255
+            fontSize:14
247 256
         },
248
-        splitLine: { show: false }
257
+        splitLine: { show: false },
258
+        axisLabel:{
259
+            fontSize: 14,
260
+        }
249 261
 
250 262
     },
251 263
     legend: {
@@ -253,11 +265,14 @@ const chartDefaultOptions4 = {
253 265
         left: '2%',
254 266
         itemWidth: 10,
255 267
         itemHeight: 10,
268
+        textStyle: {
269
+            fontSize: 18,
270
+        }
256 271
         // 其他legend配置,如type、top、left、right、bottom、orient、textStyle等,根据需要设置  
257 272
     },
258 273
     grid: {
259 274
         left: '10%',
260
-        right: '8%',
275
+        right: '0',
261 276
         top: '33%',
262 277
         bottom: '20%',
263 278
     },
@@ -297,10 +312,13 @@ const chartDefaultOptions5 = {
297 312
         trigger: 'item'
298 313
     },
299 314
     legend: {
300
-        top: '5%',
301
-        left: 'center',
315
+        top: '1%',
316
+        left: '40%',
302 317
         itemWidth: 10,
303 318
         itemHeight: 10,
319
+        textStyle: {
320
+            fontSize: 18,
321
+        }
304 322
     },
305 323
     grid: {
306 324
         left: '0%',
@@ -311,7 +329,7 @@ const chartDefaultOptions5 = {
311 329
             name: '国内外订单对比',
312 330
             type: 'pie',
313 331
             radius: ['87%', '135%'],
314
-            center: ['50%', '100%'],
332
+            center: ['58%', '100%'],
315 333
             // adjust the start and end angle
316 334
             startAngle: 180,
317 335
             endAngle: 360,
@@ -387,7 +405,8 @@ const chartDefaultOptions6 = {
387 405
             }
388 406
         },
389 407
         axisLabel: {
390
-            color: '#606060'
408
+            color: '#606060',
409
+            fontSize: 14,
391 410
         },
392 411
         splitLine: {
393 412
             show: false // 隐藏网格线
@@ -469,6 +488,7 @@ const chartDefaultOptions7 = {
469 488
         },
470 489
         axisLabel: {
471 490
             color: '#606060',
491
+            fontSize: 14,
472 492
             formatter: function (value) {
473 493
               if (value.length > 5) {
474 494
                 return value.substring(0, 5) + '...';
@@ -513,7 +533,7 @@ const chartDefaultOptions8 = {
513 533
             // name: 'Access From',
514 534
             type: 'pie',
515 535
             radius: '85%',
516
-            center: ['50%', '50%'],
536
+            center: ['50%', '55%'],
517 537
             data: [].sort(function (a, b) {
518 538
                 return b.value - a.value;
519 539
             }),
@@ -531,13 +551,16 @@ const chartDefaultOptions8 = {
531 551
 }
532 552
 
533 553
 const chartDefaultOptions9 = {
534
-    color: colors.concat('#8AC0F6'),
554
+    color: colors.concat('#8AC0F6').reverse(),
535 555
     legend: {
536 556
         top: 0,
537 557
         left: '2%',
538 558
         itemWidth: 10,
539 559
         itemHeight: 10,
540
-        selectedMode: false
560
+        selectedMode: false,
561
+        textStyle: {
562
+            fontSize: 18,
563
+        }
541 564
     },
542 565
     yAxis: [{
543 566
         type: 'value',
@@ -545,7 +568,11 @@ const chartDefaultOptions9 = {
545 568
         nameTextStyle: {
546 569
             color: '#606060',
547 570
             align: 'right',
548
-            padding: [0, 8, 0, 0]
571
+            padding: [0, 8, 0, 0],
572
+            fontSize:14
573
+        },
574
+        axisLabel: {
575
+            fontSize: 14,
549 576
         },
550 577
     },{
551 578
         
@@ -560,6 +587,9 @@ const chartDefaultOptions9 = {
560 587
     xAxis: {
561 588
         type: 'category',
562 589
         data: mouthData,
590
+        axisLabel: {
591
+            fontSize: 14,
592
+        },
563 593
     },
564 594
     grid: {
565 595
         top: '33%',
@@ -1161,7 +1191,7 @@ function chartPopDefaultOptions9Fun(data:any) {
1161 1191
     })
1162 1192
 
1163 1193
     return {
1164
-        color: colors.concat('#8AC0F6'),
1194
+        color: colors.concat('#8AC0F6').reverse(),
1165 1195
         legend: {
1166 1196
             orient: 'horizontal', // 设置图例为水平方向  
1167 1197
             top: '15%',        // 设置图例离容器底部的距离为10%  

Ładowanie…
Anuluj
Zapisz