wjc
2025-05-07 b9cc7390e8e8ce64c41c26fb369c98ce669d660c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
package com.hdl.photovoltaic.ui.home.aachart;
 
import static com.github.AAChartModel.AAChartCore.AATools.AAColor.AARgba;
 
import com.github.AAChartModel.AAChartCore.AAChartCreator.AAChartModel;
import com.github.AAChartModel.AAChartCore.AAChartCreator.AASeriesElement;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartAlignType;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartAnimationType;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartFontWeightType;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartStackingType;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartSymbolStyleType;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartSymbolType;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartType;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartVerticalAlignType;
import com.github.AAChartModel.AAChartCore.AAChartEnum.AAChartZoomType;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAColumn;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AADataElement;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AADataLabels;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAHalo;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAHover;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAInactive;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAMarker;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAMarkerHover;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAMarkerStates;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AASVGAttributes;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AASelect;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAShadow;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAStates;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAStyle;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AATooltip;
import com.github.AAChartModel.AAChartCore.AAOptionsModel.AAZonesElement;
import com.github.AAChartModel.AAChartCore.AATools.AAColor;
import com.github.AAChartModel.AAChartCore.AATools.AAGradientColor;
import com.github.AAChartModel.AAChartCore.AATools.AALinearGradientDirection;
 
import java.util.ArrayList;
import java.util.Map;
 
/**
 * 图表数据渲染
 */
public class CustomStyleChartComposer {
 
    public static AAChartModel configureColorfulChart() {
        String[] colorsNameArr = {
                "red",
                "orange",
                "yellow",
                "green",
                "cyan",
                "blue",
                "purple",
                "gray",
                "darkGray",
                "lightGray",
                "magenta",
                "brown",
                "black"
        };
 
        String[] colorsArr = {
                AAColor.Red,
                AAColor.Orange,
                AAColor.Yellow,
                AAColor.Green,
                AAColor.Cyan,
                AAColor.Blue,
                AAColor.Purple,
                AAColor.Gray,
                AAColor.DarkGray,
                AAColor.LightGray,
                AAColor.Magenta,
                AAColor.Brown,
                AAColor.Black,
        };
 
        return new AAChartModel()
                .chartType(AAChartType.Bar)
                .animationType(AAChartAnimationType.Bounce)
                .title("Colorful Chart")
                .subtitle("use AAColor to get color string")
                .dataLabelsEnabled(false)
                .categories(colorsNameArr)
                .colorsTheme(colorsArr)
                .stacking(AAChartStackingType.Percent)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo")
                                .data(new Object[]{
                                        149.9, 171.5, 106.4, 129.2, 144.0, 176.0, 135.6, 188.5, 276.4, 214.1, 95.6, 54.4})
                                .colorByPoint(true)
                });
 
    }
 
    public static AAChartModel configureColorfulGradientColorChart() {
        String[] gradientColorNamesArr = {
                "oceanBlue",
                "sanguine",
                "lusciousLime",
                "purpleLake",
                "freshPapaya",
                "ultramarine",
                "pinkSugar",
                "lemonDrizzle",
                "victoriaPurple",
                "springGreens",
                "mysticMauve",
                "reflexSilver",
                "newLeaf",
                "cottonCandy",
                "pixieDust",
                "fizzyPeach",
                "sweetDream",
                "firebrick",
                "wroughtIron",
                "deepSea",
                "coastalBreeze",
                "eveningDelight",
                "neonGlowColor",
                "berrySmoothieColor"
        };
 
        Map[] gradientColorArr = {
                AAGradientColor.OceanBlue,
                AAGradientColor.Sanguine,
                AAGradientColor.LusciousLime,
                AAGradientColor.PurpleLake,
                AAGradientColor.FreshPapaya,
                AAGradientColor.Ultramarine,
                AAGradientColor.PinkSugar,
                AAGradientColor.LemonDrizzle,
                AAGradientColor.VictoriaPurple,
                AAGradientColor.SpringGreens,
                AAGradientColor.MysticMauve,
                AAGradientColor.ReflexSilver,
                AAGradientColor.NewLeaf,
                AAGradientColor.CottonCandy,
                AAGradientColor.PixieDust,
                AAGradientColor.FizzyPeach,
                AAGradientColor.SweetDream,
                AAGradientColor.Firebrick,
                AAGradientColor.WroughtIron,
                AAGradientColor.DeepSea,
                AAGradientColor.CoastalBreeze,
                AAGradientColor.EveningDelight,
                AAGradientColor.NeonGlow,
                AAGradientColor.BerrySmoothie
        };
 
        return new AAChartModel()
                .chartType(AAChartType.Bar)
                .title("Colorful Column Chart")
                .subtitle("single data array colorful column chart")
                .categories(gradientColorNamesArr)
                .colorsTheme(gradientColorArr)
                .yAxisTitle("gradient color")
                .stacking(AAChartStackingType.Percent)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo")
                                .data(new Object[]{
                                        149.9, 171.5, 106.4, 129.2, 144.0, 176.0, 135.6, 188.5, 276.4, 214.1, 95.6, 54.4,
                                        149.9, 171.5, 106.4, 129.2, 144.0, 176.0, 135.6, 188.5, 276.4, 214.1, 95.6, 54.4})
                                .colorByPoint(true)
                });
 
    }
 
    public static AAChartModel configureDiscontinuousDataChart() {
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .title("Discontinuous Data Chart")
                .dataLabelsEnabled(true)
                .tooltipEnabled(true)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo")
                                .data(new Object[]{6.9, 9.5, 14.5, 18.2, 21.5, null, null, null, null, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6})
                                .color(AAGradientColor.DeepSea)
 
                });
 
    }
 
    public static AAChartModel configureColorfulColumnChart(String tipSuspendName, String[] categories, Object[] data) {
        Object[][] stopsArr = {
                {1.00, "#38C494"},
        };//颜色字符串设置支持十六进制类型和 rgba 类型
 
        Map<String, Object> linearGradientColor = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToBottom,
                stopsArr
        );
        AATooltip aaTooltip = new AATooltip()
                .enabled(true)
                .valueDecimals(2);
 
 
//        return configureBasicOptions()
//                .backgroundColor("#1C1C1E")
//                .legendEnabled(false)
//                .markerRadius(0)
////                .markerSymbol(AAChartSymbolType.Circle)
////                .markerSymbolStyle(AAChartSymbolStyleType.Normal)
//                .chartType(AAChartType.Area)
//                .categories(categories)
//                .zoomType(AAChartZoomType.None)//手势缩放
//                .yAxisGridLineWidth(0.10)
//                .yAxisAllowDecimals(true)
//                .xAxisVisible(true)
//                .xAxisLineWidth(0)
////                    .yAxisMax(10)
//                .yAxisMin(0)
//                .titleStyle(aaStyle)//坐标轴字体颜色
////                .axesTextColor("#FFFFFF")//背景颜色
//                .series(new AASeriesElement[]{element1});
 
 
 
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .backgroundColor("#1C1C1E")
                .titleStyle(AAStyle.style("#66FFFFFF", 12))//坐标轴字体颜色
                .colorsTheme(new String[]{"#38C494",})
                .categories(categories)
                .yAxisGridLineWidth(0.10)
                .xAxisVisible(true)
                .xAxisLineWidth(0)
                .xAxisLabelsEnabled(true)
                .zoomType(AAChartZoomType.None)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
//                                .color(linearGradientColor)
                                .name(tipSuspendName)
                                .data(data)
//                                .colorByPoint(true)
//                                .tooltip(aaTooltip)
 
                });
    }
 
    public static AAChartModel configureNightingaleRoseChart() {
        return new AAChartModel()
                .title("南丁格尔玫瑰图")
                .subtitle("极地图中的一种")
                .yAxisTitle("cm")
                .chartType(AAChartType.Column)
                .xAxisVisible(false)//是否显示最外一层圆环
                .yAxisVisible(true)//是否显示中间的多个圆环
                .legendEnabled(false)//隐藏图例(底部可点按的小圆点)
                .categories(new String[]{"一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"})
                .dataLabelsEnabled(true)
                .polar(true)//极地化图形
                .series(new AASeriesElement[]{
                                new AASeriesElement()
                                        .name("东京")
                                        .data(new Object[]{7.0, 6.9, 9.5, 9.6, 13.9, 14.5, 18.3, 18.2, 21.5, 25.2, 26.5, 23.3}),
                        }
                )
                ;
    }
 
    public static AAChartModel configureChartWithShadowStyle() {
        return new AAChartModel()
                .chartType(AAChartType.Spline)
                .categories(new String[]{"一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"})
                .markerRadius(0)
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo Hot")
                                .lineWidth(8.0)
                                .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6})
                                .shadow(new AAShadow()
                                .offsetX(15.0)
                                .offsetY(15.0)
                                .opacity(0.2f)
                                .width(8.0)
                                .color(AAColor.Red))
                });
    }
 
    public static AAChartModel configureColorfulGradientAreaChart() {
        Object[][] stopsArr = {
                {0.00, "#febc0f"},
                {0.50, "#FF14d4"},
                {1.00, "#0bf8f5"},
        };//颜色字符串设置支持十六进制类型和 rgba 类型
 
        Map<String, Object> linearGradientColor = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToLeft,
                stopsArr
        );//颜色字符串设置支持十六进制类型和 rgba 类型
 
        return new AAChartModel()
                .chartType(AAChartType.Areaspline)
                .categories(new String[]{"一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"})
                .markerRadius(0)
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                                new AASeriesElement()
                                        .name("Tokyo Hot")
                                        .lineWidth(3)
                                        .color(linearGradientColor)
                                        .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6}),
                        }
                );
    }
 
 
    public static AAChartModel configureColorfulGradientSplineChart() {
        Object[][] stopsArr = {
                {0.00, "#febc0f"},
                {0.25, "#FF14d4"},
                {0.50, "#0bf8f5"},
                {0.75, "#F33c52"},
                {1.00, "#1904dd"},
        };//颜色字符串设置支持十六进制类型和 rgba 类型
 
        Map<String, Object> linearGradientColor = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToLeft,
                stopsArr
        );//颜色字符串设置支持十六进制类型和 rgba 类型
 
        return new AAChartModel()
                .chartType(AAChartType.Spline)
                .categories(new String[]{"一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"})
                .markerRadius(0)
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                                new AASeriesElement()
                                        .name("Tokyo Hot")
                                        .lineWidth(15.0)
                                        .color(linearGradientColor)
                                        .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6}),
                        }
                );
    }
 
 
    public static AAChartModel configureGradientColorAreasplineChart() {
        Map<String, Object> linearGradientColor = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToBottom,
                "rgba(2255,20,147,1)",//深粉色, alpha 透明度 1
                "rgba(255,105,180,0.1)"//热情的粉红, alpha 透明度 0.1
        );//颜色字符串设置支持十六进制类型和 rgba 类型
 
        return new AAChartModel()
                .chartType(AAChartType.Areaspline)
                .categories(new String[]{"一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"})
                .markerRadius(8)//marker点半径为8个像素
                .markerSymbolStyle(AAChartSymbolStyleType.InnerBlank)//marker点为空心效果
                .markerSymbol(AAChartSymbolType.Circle)//marker点为圆形点○
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                                new AASeriesElement()
                                        .name("Tokyo Hot")
                                        .lineWidth(5.0)
                                        .color(AARgba(220, 20, 60, 1.0f))//猩红色, alpha 透明度 1
                                        .fillColor(linearGradientColor)
                                        .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6}),
                        }
                );
    }
 
 
    public static AAChartModel configureSpecialStyleMarkerOfSingleDataElementChart() {
        Object[][] stopsArr = {
                {0.00, "#febc0f"},
                {0.25, "#FF14d4"},
                {0.50, "#0bf8f5"},
                {0.75, "#F33c52"},
                {1.00, "#1904dd"},
        };//颜色字符串设置支持十六进制类型和 rgba 类型
 
        Map<String, Object> gradientColorDic1 = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToRight,
                stopsArr
        );
 
        AADataElement singleSpecialData = new AADataElement()
                .marker(new AAMarker()
                        .radius(8)//曲线连接点半径
                        .symbol(AAChartSymbolType.Circle)//曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
                        .fillColor("#FFFFFF")//点的填充色(用来设置折线连接点的填充色)
                        .lineWidth(5)//外沿线的宽度(用来设置折线连接点的轮廓描边的宽度)
                        .lineColor("#FF0000")//外沿线的颜色(用来设置折线连接点的轮廓描边颜色,当值为空字符串时,默认取数据点或数据列的颜色)
                )
                .y(26.5);
 
        return new AAChartModel()
                .chartType(AAChartType.Spline)
                .backgroundColor("#4b2b7f")
                .dataLabelsEnabled(false)//是否显示值
                .tooltipEnabled(true)
                .markerRadius(0)
                .xAxisVisible(false)
                .yAxisVisible(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Virtual Data")
                                .lineWidth(6)
                                .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, singleSpecialData, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6})
                                .color(gradientColorDic1)
                });
    }
 
    public static AAChartModel configureSpecialStyleColumnOfSingleDataElementChart() {
        AADataElement singleSpecialData = new AADataElement()
                .color(AAGradientColor.FreshPapaya)
                .y(49.5);
 
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .dataLabelsEnabled(false)//是否显示值
                .tooltipEnabled(false)
                .markerRadius(0)
                .xAxisVisible(false)
                .yAxisVisible(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Virtual Data")
                                .lineWidth(6)
                                .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, singleSpecialData, 5.2, 26.5, 23.3, 26.5, 13.9, 9.6})
                                .color(AAGradientColor.OceanBlue)
                });
    }
 
    public static AAChartModel configureAreaChartThreshold() {
        Map<String, Object> gradientColorDic1 = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToBottom,
                "rgba(30, 144, 255,1)",//DodgerBlue, alpha 透明度 1
                "rgba(30, 144, 255,0.1)"//DodgerBlue, alpha 透明度 0.1
        );
 
        return new AAChartModel()
                .chartType(AAChartType.Area)
                .yAxisGridLineWidth(0)
                .categories(new String[]{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "July", "Aug", "Spe", "Oct", "Nov", "Dec"})
                .dataLabelsEnabled(false)//是否显示值
                .markerRadius(8)
                .markerSymbol(AAChartSymbolType.Circle)
                .markerSymbolStyle(AAChartSymbolStyleType.InnerBlank)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .threshold((-200))
                                .data(new Object[]{106.4, 129.2, 269.9, -100.5, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4})
                                .lineWidth(6)
                                .color("rgba(30, 144, 255,1)")
                                .fillColor(gradientColorDic1)
                });
    }
 
    //refer to online sample https://jshare.com.cn/github/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-marker-symbol/
    public static AAChartModel customScatterChartMarkerSymbolContent() {
        AASeriesElement element1 = new AASeriesElement()
                .name("Predefined symbol")
                .data(new Object[]{0.45, 0.43, 0.50, 0.55, 0.58, 0.62, 0.83, 0.39, 0.56, 0.67, 0.50, 0.34, 0.50, 0.67, 0.58, 0.29, 0.46, 0.23, 0.47, 0.46, 0.38, 0.56, 0.48, 0.36})
                .marker(new AAMarker()
                        .symbol(AAChartSymbolConst.predefinedSymbol1));
 
        AASeriesElement element2 = new AASeriesElement()
                .name("Image symbol")
                .data(new Object[]{0.38, 0.31, 0.32, 0.32, 0.64, 0.66, 0.86, 0.47, 0.52, 0.75, 0.52, 0.56, 0.54, 0.60, 0.46, 0.63, 0.54, 0.51, 0.58, 0.64, 0.60, 0.45, 0.36, 0.67})
                .marker(new AAMarker()
                        .symbol(AAChartSymbolConst.imageSymbol));
 
        AASeriesElement element3 = new AASeriesElement()
                .name("Base64 symbol (*)")
                .data(new Object[]{0.46, 0.32, 0.53, 0.58, 0.86, 0.68, 0.85, 0.73, 0.69, 0.71, 0.91, 0.74, 0.60, 0.50, 0.39, 0.67, 0.55, 0.49, 0.65, 0.45, 0.64, 0.47, 0.63, 0.64})
                .marker(new AAMarker()
                        .symbol(AAChartSymbolConst.base64Symbol));
 
        AASeriesElement element4 = new AASeriesElement()
                .name("Custom symbol")
                .data(new Object[]{0.60, 0.51, 0.52, 0.53, 0.64, 0.84, 0.65, 0.68, 0.63, 0.47, 0.72, 0.60, 0.65, 0.74, 0.66, 0.65, 0.71, 0.59, 0.65, 0.77, 0.52, 0.53, 0.58, 0.53})
                .marker(new AAMarker()
                        .symbol(AAChartSymbolConst.predefinedSymbol2));
 
        return new AAChartModel()
                .chartType(AAChartType.Scatter)
                .yAxisMax(3.5)
                .yAxisGridLineWidth(0)
                .stacking(AAChartStackingType.Normal)
                .markerRadius(8)
                .series(new AASeriesElement[]{element1, element2, element3, element4});
    }
 
    //refer to online sample https://jshare.com.cn/github/highcharts/highcharts/tree/master/samples/highcharts/plotoptions/series-marker-symbol/
    public static AAChartModel customLineChartMarkerSymbolContent() {
        AAChartModel aaChartModel = customScatterChartMarkerSymbolContent();
        aaChartModel.chartType = AAChartType.Line;
        return aaChartModel;
    }
 
    //三角形雷达图
    public static AAChartModel configureTriangleRadarChart() {
        return new AAChartModel()
                .chartType(AAChartType.Area)
                .yAxisMax(15.0)
                .yAxisGridLineWidth(0)
                .xAxisVisible(false)
                .markerRadius(0)
                .polar(true)//是否极化图形
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .data(new Object[]{15.0, 15.0, 15.0,}),
                        new AASeriesElement()
                                .data(new Object[]{9.0, 9.0, 9.0,}),
                        new AASeriesElement()
                                .data(new Object[]{6.0, 6.0, 6.0,}),
                        new AASeriesElement()
                                .data(new Object[]{3.0, 3.0, 3.0,}),
                });
    }
 
    //四边形雷达图
    public static AAChartModel configureQuadrangleRadarChart() {
        return new AAChartModel()
                .chartType(AAChartType.Area)
                .yAxisMax(15.0)
                .yAxisGridLineWidth(0)
                .xAxisVisible(false)
                .markerRadius(0)
                .polar(true)//是否极化图形
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .data(new Object[]{15.0, 15.0, 15.0, 15.0,}),
                        new AASeriesElement()
                                .data(new Object[]{9.0, 9.0, 9.0, 9.0,}),
                        new AASeriesElement()
                                .data(new Object[]{6.0, 6.0, 6.0, 6.0,}),
                        new AASeriesElement()
                                .data(new Object[]{3.0, 3.0, 3.0, 3.0,}),
                });
    }
 
    //五边形雷达图
    public static AAChartModel configurePentagonRadarChart() {
        return new AAChartModel()
                .chartType(AAChartType.Area)
                .yAxisMax(15.0)
                .yAxisGridLineWidth(0)
                .xAxisVisible(false)
                .markerRadius(0)
                .polar(true)//是否极化图形
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .data(new Object[]{15.0, 15.0, 15.0, 15.0, 15.0,}),
                        new AASeriesElement()
                                .data(new Object[]{9.0, 9.0, 9.0, 9.0, 9.0,}),
                        new AASeriesElement()
                                .data(new Object[]{6.0, 6.0, 6.0, 6.0, 6.0,}),
                        new AASeriesElement()
                                .data(new Object[]{3.0, 3.0, 3.0, 3.0, 3.0,}),
                });
    }
 
    //六边形雷达图
    public static AAChartModel configureHexagonRadarChart() {
        return new AAChartModel()
                .chartType(AAChartType.Area)
                .yAxisMax(15.0)
                .yAxisGridLineWidth(0)
                .xAxisVisible(false)
                .markerRadius(0)
                .polar(true)//是否极化图形
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .data(new Object[]{15.0, 15.0, 15.0, 15.0, 15.0, 15.0,}),
                        new AASeriesElement()
                                .data(new Object[]{9.0, 9.0, 9.0, 9.0, 9.0, 9.0,}),
                        new AASeriesElement()
                                .data(new Object[]{6.0, 6.0, 6.0, 6.0, 6.0, 6.0,}),
                        new AASeriesElement()
                                .data(new Object[]{3.0, 3.0, 3.0, 3.0, 3.0, 3.0,}),
                });
    }
 
    public static AAChartModel adjustYAxisMaxAndMinValues() {
        String[] categoriesArr = {
                "孤岛危机",
                "使命召唤",
                "荣誉勋章",
                "狙击精英",
                "神秘海域",
                "最后生还者",
                "巫师3狂猎",
                "对马之魂",
                "蝙蝠侠阿甘骑士",
                "地狱边境",
                "闪客",
                "忍者之印",
        };
 
        return new AAChartModel()
                .chartType(AAChartType.Areaspline)
                .legendEnabled(false)
                .yAxisVisible(true)
                .markerRadius(6)
                .markerSymbolStyle(AAChartSymbolStyleType.InnerBlank)
                .zoomType(AAChartZoomType.XY)
                .categories(categoriesArr)
                .yAxisMin(2.0)
                .yAxisMax(45.4)
                .xAxisTickInterval(2)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("体重")
                                .color("#2494F3")
                                .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6})
                })
                ;
    }
 
    public static AAChartModel customSpecialStyleDataLabelOfSingleDataElementChart() {
        Object[][] redStopsArr = new Object[][]{
                new Object[]{0.0, AARgba(255, 0, 0, 0.6f)},//颜色字符串设置支持十六进制类型和 rgba 类型
                new Object[]{0.5, AARgba(255, 0, 0, 0.0f)},
                new Object[]{1.0, AARgba(255, 0, 0, 0.0f)}
        };
 
        Map<String, Object> gradientColorDic1 = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToTop,
                AARgba(255, 215, 0, 0.1f),
                AARgba(255, 215, 0, 0.6f)
        );
 
        String formatStr =
                "<img src=\"https://www.highcharts.com/samples/graphics/sun.png\">" +
                        "<span style=\"color:#FFFFFF;font-weight:thin;font-size:25px\">{y}</span>" +
                        "<span style=\"color:#FFFFFF;font-weight:thin;font-size:17px\"> m</span>";
 
 
        AADataElement singleSpecialData = new AADataElement()
                .dataLabels(new AADataLabels()
                        .enabled(true)
                        .useHTML(true)
                        .format(formatStr)
                        .style(new AAStyle()
                                .fontWeight(AAChartFontWeightType.Bold)
                                .color(AAColor.White)
                                .fontSize(16))
                        .y((-35))
                        .align(AAChartAlignType.Center)
                        .verticalAlign(AAChartVerticalAlignType.Top)
                        .overflow("none")
                        .crop(false)
                )
                .y(26.5);
 
        return new AAChartModel()
                .chartType(AAChartType.Areaspline)
                .backgroundColor("#4b2b7f")
                .dataLabelsEnabled(false)//是否显示值
                .tooltipEnabled(true)
                .markerRadius(0)
                .xAxisVisible(false)
                .yAxisVisible(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Virtual Data")
                                .lineWidth(6)
                                .color("rgba(255,215,0,1)")
                                .fillColor(gradientColorDic1)// gold color, alpha: 1.0
                                .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, singleSpecialData, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6})
                });
    }
 
    public static AAChartModel customBarChartHoverColorAndSelectColor() {
        return new AAChartModel()
                .chartType(AAChartType.Bar)
                .title("Custom Bar Chart select color")
                .yAxisReversed(true)
                .xAxisReversed(true)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("ElementOne")
                                .data(new Object[]{211, 183, 157, 133, 111, 91, 73, 57, 43, 31, 21, 13, 7, 3})
                                .allowPointSelect(true)
                                .states(
                                new AAStates()
                                        .hover(new AAHover()
                                                .color("rgba(220,20,60,1)"))//猩红色, alpha 透明度 1
                                        .select(new AASelect()
                                                .color(AAColor.Red)))
                });
    }
 
    public static AAChartModel customChartHoverAndSelectHaloStyle() {
        return new AAChartModel()
                .chartType(AAChartType.Line)
                .title("Custom Chart Hover And Select Halo Style")
                .colorsTheme(new Object[]{AAColor.Red})
                .yAxisReversed(true)
                .xAxisReversed(true)
                .markerRadius(20)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("ElementOne")
                                .data(new Object[]{211, 183, 157, 133, 111, 91, 73, 57, 43, 31, 21, 13, 7, 3})
                                .allowPointSelect(true)
                                .states(
                                new AAStates()
                                        .hover(new AAHover()
                                                .halo(new AAHalo()
                                                        .size(130)
                                                        .opacity(0.8)
                                                        .attributes(new AASVGAttributes()
                                                                .strokeWidth(50)
                                                                .fill("#00BFFF")
                                                                .stroke("#00FA9A"))))
                                        .select(new AASelect()
                                                .halo(new AAHalo()
                                                        .size(130)
                                                        .opacity(1.0)
                                                        .attributes(new AASVGAttributes()
                                                                .strokeWidth(150)
                                                                .fill(AARgba(138, 43, 226, 1f))
                                                                .stroke(AARgba(30, 144, 255, 1f)))))
                        )});
    }
 
    public static AAChartModel customSplineChartMarkerStatesHoverStyle() {
        return new AAChartModel()
                .chartType(AAChartType.Areaspline)
                .title("Custom Spline Chart Marker States Hover Style")
                .categories(new String[]{"一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"})
                .markerRadius(8.0)//marker点半径为8个像素
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo Hot")
                                .lineWidth(5.0)
                                .color("rgba(220,20,60,1)")//猩红色, alpha 透明度 1
                                .marker(new AAMarker()
                                        .states(new AAMarkerStates()
                                                .hover(new AAMarkerHover()
                                                        .fillColor(AAColor.White)
                                                        .radius(40)
                                                        .lineColor(AAColor.Green)
                                                        .lineWidth(20))))
                                .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6}),
                });
    }
 
    //Issue: https://github.com/AAChartModel/AAChartKit/issues/948
    public static AAChartModel splineChartHoverLineWithNoChangeAndCustomMarkerStatesHoverStyle() {
        return new AAChartModel()
                .chartType(AAChartType.Spline)
                .title("Spline Chart Hover Line Width No Change && Custom Marker States Hover Style")
                .categories(new String[]{"一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"})
                .markerRadius(8.0)//marker点半径为8个像素
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(false)
                .markerSymbolStyle(AAChartSymbolStyleType.InnerBlank)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo Hot")
                                .lineWidth(5.0)
                                .color(AAColor.Red)
                                .states(new AAStates()
                                        .hover(new AAHover()
                                                .enabled(true)
                                                //手指盘旋或选中图表时,禁止线条变粗
                                                .lineWidthPlus(0)))
                                .marker(new AAMarker()
                                        .states(new AAMarkerStates()
                                                .hover(new AAMarkerHover()
                                                        .fillColor(AAColor.Red)//设置手指选中点的颜色为红色
                                                        .radius(40))))
                                .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6}),
                });
    }
 
    //Issue: https://github.com/AAChartModel/AAChartKit/issues/827
    public static AAChartModel customNormalStackingChartDataLabelsContentAndStyle() {
        String[] categories = {
                "孤岛危机",
                "使命召唤",
                "荣誉勋章",
                "狙击精英",
                "神秘海域",
                "最后生还者",
                "巫师3狂猎",
                "对马之魂",
                "死亡搁浅",
                "地狱边境",
                "闪客",
                "忍者之印"
        };
 
        String[] colorsTheme = {
                "#fe117c",
                "#ffc069",
                "#06caf4",
                "#7dffc0"
        };
 
        AASeriesElement element1 = new AASeriesElement()
                .name("2017")
                .dataLabels(new AADataLabels()
                        .enabled(true)
                        .y(-10)
                        .format("{total} mm")
                        .color(AAColor.Red)
                        .shape("callout")
                        .backgroundColor(AAColor.White)
                        .borderColor(AAColor.Red)
                        .borderRadius(1)
                        .borderWidth(1)
                )
                .data(new Object[]{7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6});
 
        AASeriesElement element2 = new AASeriesElement()
                .name("2018")
                .data(new Object[]{0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5});
 
        AASeriesElement element3 = new AASeriesElement()
                .name("2019")
                .data(new Object[]{0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0});
 
        AASeriesElement element4 = new AASeriesElement()
                .name("2020")
                .data(new Object[]{3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8});
 
        AASeriesElement[] series = {element1, element2, element3, element4};
 
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .stacking(AAChartStackingType.Normal)
                .yAxisGridLineWidth(0)
                .markerRadius(0)
                .categories(categories)
                .colorsTheme(colorsTheme)
                .series(series);
    }
 
    //Issue: https://github.com/AAChartModel/AAChartKit-Swift/issues/190
//API Doc: https://api.highcharts.com.cn/highcharts#series%3Cpyramid%3E.reversed
    public static AAChartModel upsideDownPyramidChart() {
        return new AAChartModel()
                .chartType(AAChartType.Pyramid)
                .yAxisTitle("摄氏度")
                .inverted(true)
                .legendEnabled(true)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2020")
                                .reversed(true)
                                .data(new Object[][]{
                                {"Swift", 15654},
                                {"Objective-C", 4064},
                                {"JavaScript", 1987},
                                {"GO", 976},
                                {"Python", 846}
                        })
                });
    }
 
    //Issue: https://github.com/AAChartModel/AAChartKit/issues/888
    public static AAChartModel doubleLayerPieChart() {
        return new AAChartModel()
                .chartType(AAChartType.Pie)
                .title("浏览器市场占比历史对比")
                .subtitle("无任何可靠依据的虚拟数据")
                .dataLabelsEnabled(true)//是否直接显示扇形图数据
                .yAxisTitle("摄氏度")
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Past")
                                .size("40%")//尺寸大小
                                .innerSize("30%")//内部圆环半径大小占比
                                .borderWidth(0)//描边的宽度
                                .allowPointSelect(false)//是否允许在点击数据点标记(扇形图点击选中的块发生位移)
                                .data(new Object[][]{
                                {"Firefox Past", 3336.2},
                                {"Chrome Past", 26.8},
                                {"Safari Past", 88.5},
                                {"Opera Past", 46.0},
                                {"Others Past", 223.0},
                        }),
 
                        new AASeriesElement()
                                .name("Now")
                                .size("80%")//尺寸大小
                                .innerSize("70%")//内部圆环半径大小占比
                                .borderWidth(0)//描边的宽度
                                .allowPointSelect(false)//是否允许在点击数据点标记(扇形图点击选中的块发生位移)
                                .data(new Object[][]{
                                {"Firefox Now", 336.2},
                                {"Chrome Now", 6926.8},
                                {"Safari Now", 388.5},
                                {"Opera Now", 446.0},
                                {"Others Now", 223.0},
                        })
                });
    }
 
    //GitHub issue https://github.com/AAChartModel/AAChartKit/issues/903
    public static AAChartModel disableSomeOfLinesMouseTrackingEffect() {
        return new AAChartModel()
                .chartType(AAChartType.Line)//图表类型
                .tooltipValueSuffix("万元")//设置浮动提示框单位后缀
                .yAxisTitle("万元")//设置 Y 轴标题
                .categories(new String[]{
                        "一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"
                })
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2017")
                                .data(new Object[]{7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6}),
                        new AASeriesElement()
                                .name("2018")
                                .enableMouseTracking(false)
                                .data(new Object[]{0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5}),
                        new AASeriesElement()
                                .name("2019")
                                .enableMouseTracking(false)
                                .data(new Object[]{0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0}),
                        new AASeriesElement()
                                .name("2020")
                                .enableMouseTracking(false)
                                .data(new Object[]{3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8}),
                });
    }
 
 
    // GitHub issue https://github.com/AAChartModel/AAChartKit/issues/904
    public static AAChartModel configureColorfulShadowSplineChart() {
        return new AAChartModel()
                .chartType(AAChartType.Spline)
                .yAxisVisible(false)
                .stacking(AAChartStackingType.Normal)
                .colorsTheme(new String[]{"#1e90ff", "#ef476f", "#ffd066", "#04d69f"})
                .markerSymbol(AAChartSymbolType.Circle)
                .markerRadius(8.0)
                .markerSymbolStyle(AAChartSymbolStyleType.BorderBlank)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2017")
                                .lineWidth(5)
                                .data(new Object[]{0.45, 0.43, 0.50, 0.55, 0.58, 0.62, 0.83, 0.39, 0.56, 0.67, 0.50, 0.34, 0.50, 0.67, 0.58, 0.29, 0.46, 0.23, 0.47, 0.46, 0.38, 0.56, 0.48, 0.36})
                                .shadow(
                                new AAShadow()
                                        .offsetX(15.0)
                                        .offsetY(15.0)
                                        .opacity(0.2f)
                                        .width(8.0)
                                        .color("#1e90ff")),
                        new AASeriesElement()
                                .name("2018")
                                .lineWidth(5)
                                .data(new Object[]{0.38, 0.31, 0.32, 0.32, 0.64, 0.66, 0.86, 0.47, 0.52, 0.75, 0.52, 0.56, 0.54, 0.60, 0.46, 0.63, 0.54, 0.51, 0.58, 0.64, 0.60, 0.45, 0.36, 0.67})
                                .shadow(
                                new AAShadow()
                                        .offsetX(15.0)
                                        .offsetY(15.0)
                                        .opacity(0.2f)
                                        .width(8.0)
                                        .color("#ef476f")),
                        new AASeriesElement()
                                .name("2019")
                                .lineWidth(5)
                                .data(new Object[]{0.46, 0.32, 0.53, 0.58, 0.86, 0.68, 0.85, 0.73, 0.69, 0.71, 0.91, 0.74, 0.60, 0.50, 0.39, 0.67, 0.55, 0.49, 0.65, 0.45, 0.64, 0.47, 0.63, 0.64})
                                .shadow(
                                new AAShadow()
                                        .offsetX(15.0)
                                        .offsetY(15.0)
                                        .opacity(0.2f)
                                        .width(8.0)
                                        .color("#ffd066")),
                        new AASeriesElement()
                                .name("2020")
                                .lineWidth(5)
                                .data(new Object[]{0.60, 0.51, 0.52, 0.53, 0.64, 0.84, 0.65, 0.68, 0.63, 0.47, 0.72, 0.60, 0.65, 0.74, 0.66, 0.65, 0.71, 0.59, 0.65, 0.77, 0.52, 0.53, 0.58, 0.53})
                                .shadow(
                                new AAShadow()
                                        .offsetX(15.0)
                                        .offsetY(15.0)
                                        .opacity(0.2f)
                                        .width(8.0)
                                        .color("#04d69f")),
                });
    }
 
    // GitHub issue https://github.com/AAChartModel/AAChartKit/issues/905
    public static AAChartModel configureColorfulDataLabelsStepLineChart() {
        return new AAChartModel()
                .chartType(AAChartType.Line)
                .yAxisVisible(false)
                .stacking(AAChartStackingType.Normal)
                .colorsTheme(new String[]{"#1e90ff", "#ef476f", "#ffd066", "#04d69f"})
                .markerSymbol(AAChartSymbolType.Circle)
                .markerRadius(8.0)
                .markerSymbolStyle(AAChartSymbolStyleType.InnerBlank)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2017")
                                .step((true))
                                .dataLabels(new AADataLabels()
                                        .style(new AAStyle()
                                                .color("#1e90ff")
                                                .fontSize(11)))
                                .data(new Object[]{2.10, 2.54, 2.78, 3.62, 4.41, 4.09, 3.83, 4.47, 4.20, 3.94, 3.80, 3.58, 3.19, 4.30, 3.69, 3.52, 3.02, 3.30}),
                        new AASeriesElement()
                                .name("2018")
                                .step((true))
                                .dataLabels(new AADataLabels()
                                        .style(new AAStyle()
                                                .color("#ef476f")
                                                .fontSize(11)))
                                .data(new Object[]{1.56, 1.91, 2.45, 3.87, 3.24, 4.90, 4.61, 4.10, 4.17, 3.85, 4.17, 3.46, 3.46, 3.55, 3.50, 4.13, 2.58, 2.28}),
                        new AASeriesElement()
                                .name("2019")
                                .step((true))
                                .dataLabels(new AADataLabels()
                                        .style(new AAStyle()
                                                .color("#ffd066")
                                                .fontSize(11)))
                                .data(new Object[]{1.16, 1.67, 2.64, 2.86, 3.00, 3.21, 4.14, 4.07, 3.68, 3.11, 3.41, 3.25, 3.32, 3.07, 3.92, 3.05, 2.18, 3.24}),
                        new AASeriesElement()
                                .name("2020")
                                .step((true))
                                .dataLabels(new AADataLabels()
                                        .style(new AAStyle()
                                                .color("#04d69f")
                                                .fontSize(11)))
                                .data(new Object[]{5.59, 3.09, 4.09, 6.14, 5.33, 6.05, 5.71, 6.22, 6.56, 4.75, 5.27, 6.02, 5.22, 5.77, 6.19, 5.68, 4.33, 5.48}),
                });
    }
 
 
    // GitHub issue https://github.com/AAChartModel/AAChartKit-Swift/issues/223
    public static AAChartModel configureColorfulGradientColorAndColorfulDataLabelsStepAreaChart() {
        Object[][] blueStopsArr = new Object[][]{
                {0.0, AARgba(30, 144, 255, 1.0f)},//颜色字符串设置支持十六进制类型和 rgba 类型
                {0.5, AARgba(30, 144, 255, 0.2f)},
                {1.0, AARgba(30, 144, 255, 0.0f)}
        };
        Map<String, Object> gradientBlueColorDic = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToBottom,
                blueStopsArr
        );
 
        Object[][] redStopsArr = new Object[][]{
                {0.0, AARgba(255, 0, 0, 1.0f)},//颜色字符串设置支持十六进制类型和 rgba 类型
                {0.5, AARgba(255, 0, 0, 0.2f)},
                {1.0, AARgba(255, 0, 0, 0.0f)}
        };
        Map<String, Object> gradientRedColorDic = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToBottom,
                redStopsArr
        );
 
        Object[][] goldStopsArr = new Object[][]{
                {0.0, AARgba(255, 215, 0, 1.0f)},//颜色字符串设置支持十六进制类型和 rgba 类型
                {0.5, AARgba(255, 215, 0, 0.2f)},
                {1.0, AARgba(255, 215, 0, 0.0f)}
        };
        Map<String, Object> gradientGoldColorDic = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToBottom,
                goldStopsArr
        );
 
        Object[][] greenStopsArr = new Object[][]{
                {0.0, AARgba(50, 205, 50, 1.0f)},//颜色字符串设置支持十六进制类型和 rgba 类型
                {0.5, AARgba(50, 205, 50, 0.2f)},
                {1.0, AARgba(50, 205, 50, 0.0f)}
        };
        Map<String, Object> gradientGreenColorDic = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToBottom,
                greenStopsArr
        );
 
        return new AAChartModel()
                .chartType(AAChartType.Area)
                .yAxisVisible(false)
                .stacking(AAChartStackingType.Normal)
                .colorsTheme(new String[]{"#1e90ff", "#ef476f", "#ffd066", "#04d69f"})
                .markerSymbol(AAChartSymbolType.Circle)
                .markerRadius(5)
                .dataLabelsEnabled(true)
                .markerSymbolStyle(AAChartSymbolStyleType.InnerBlank)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2017")
                                .fillColor(gradientBlueColorDic)
                                .lineWidth(6)
                                .step((true))
                                .dataLabels(new AADataLabels()
                                        .style(AAStyle.style("#1e90ff", 11)))
                                .data(new Object[]{2.10, 2.54, 2.78, 3.62, 4.41, 4.09, 3.83, 4.47, 4.20, 3.94, 3.80, 3.58, 3.19, 4.30, 3.69, 3.52, 3.02, 3.30}),
                        new AASeriesElement()
                                .name("2018")
                                .fillColor(gradientRedColorDic)
                                .lineWidth(6)
                                .step((true))
                                .dataLabels(new AADataLabels()
                                        .style(AAStyle.style("#ef476f", 11))
                                )
                                .data(new Object[]{1.56, 1.91, 2.45, 3.87, 3.24, 4.90, 4.61, 4.10, 4.17, 3.85, 4.17, 3.46, 3.46, 3.55, 3.50, 4.13, 2.58, 2.28}),
                        new AASeriesElement()
                                .name("2019")
                                .fillColor(gradientGoldColorDic)
                                .lineWidth(6)
                                .step((true))
                                .dataLabels(new AADataLabels()
                                        .style(AAStyle.style("#ffd066", 11)))
                                .data(new Object[]{1.16, 1.67, 2.64, 2.86, 3.00, 3.21, 4.14, 4.07, 3.68, 3.11, 3.41, 3.25, 3.32, 3.07, 3.92, 3.05, 2.18, 3.24}),
                        new AASeriesElement()
                                .name("2020")
                                .fillColor(gradientGreenColorDic)
                                .lineWidth(6)
                                .step((true))
                                .dataLabels(new AADataLabels()
                                        .style(AAStyle.style("#04d69f", 11)))
                                .data(new Object[]{5.59, 3.09, 4.09, 6.14, 5.33, 6.05, 5.71, 6.22, 6.56, 4.75, 5.27, 6.02, 5.22, 5.77, 6.19, 5.68, 4.33, 5.48}),
                });
    }
 
    // Refer to https://api.highcharts.com.cn/highcharts#plotOptions.spline.marker.states.hover.enabled
    public static AAChartModel disableSplineChartMarkerHoverEffect() {
        return new AAChartModel()
                .chartType(AAChartType.Spline)
                .title("Disable Spline Chart Marker Hover Effect")
                .categories(new String[]{
                        "一月", "二月", "三月", "四月", "五月", "六月",
                        "七月", "八月", "九月", "十月", "十一月", "十二月"})
                .markerRadius(0)//marker点半径为0个像素
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo Hot")
                                .lineWidth(5.0)
                                .color("rgba(220,20,60,1)")//猩红色, alpha 透明度 1
                                .marker(new AAMarker()
                                        .states(new AAMarkerStates()
                                                .hover(new AAMarkerHover()
                                                        .enabled(false))))
                                .data(new Object[]{7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6}),
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1203
    public static AAChartModel configureMaxAndMinDataLabelsForChart() {
        AADataLabels aaDataLabels = new AADataLabels()
                .enabled(true)
                .format("{y} 美元")
                .shape("callout")
                .style(AAStyle.style(AAColor.Red, 15f, AAChartFontWeightType.Bold))
                .backgroundColor(AAColor.White)// white color
                .borderColor(AAColor.Red)// red color
                .borderRadius(1.5)
                .borderWidth(1.3);
 
        AADataElement minData = new AADataElement()
                .dataLabels(aaDataLabels)
                .y(2.5);
 
        AADataElement maxData = new AADataElement()
                .dataLabels(aaDataLabels)
                .y(49.5);
 
        return new AAChartModel()
                .chartType(AAChartType.Spline)
                .dataLabelsEnabled(false)//是否显示值
                .tooltipEnabled(false)
                .markerRadius(0)
                .xAxisVisible(false)
                .yAxisVisible(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Show The Max and Min values Data Labels")
                                .lineWidth(7)
                                .data(new Object[]{7.0, 6.9, minData, 14.5, 18.2, maxData, 5.2, 26.5, 23.3, 26.5, 13.9, 9.6})
                                .color(AAGradientColor.OceanBlue)
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1201
    public static AAChartModel customVerticalXAxisCategoriesLabelsByHTMLBreakLineTag() {
        return new AAChartModel()
                .chartType(AAChartType.Area)
                .categories(new String[]{
                        "孤<br>岛<br>危<br>机",
                        "使<br>命<br>召<br>唤",
                        "荣<br>誉<br>勋<br>章",
                        "狙<br>击<br>精<br>英",
                        "神<br>秘<br>海<br>域",
                        "最<br>后<br>生<br>还<br>者",
                        "巫<br>师<br>3<br>狂<br>猎",
                        "对<br>马<br>之<br>魂",
                        "蝙<br>蝠<br>侠<br>阿<br>甘<br>骑<br>士<br>",
                        "地<br>狱<br>边<br>境",
                        "闪<br>客",
                        "忍<br>者<br>之<br>印"
                })
                .tooltipEnabled(false)
                .borderRadius(3)
                .markerSymbolStyle(AAChartSymbolStyleType.InnerBlank)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2017")
                                .data(new Object[]{7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6}),
                        new AASeriesElement()
                                .name("2018")
                                .data(new Object[]{0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5}),
                        new AASeriesElement()
                                .name("2019")
                                .data(new Object[]{0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0}),
                        new AASeriesElement()
                                .name("2020")
                                .data(new Object[]{3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8}),
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1269
    public static AAChartModel noMoreGroupingAndOverlapEachOtherColumnChart() {
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .categories(new String[]{"11/23", "11/24", "11/25", "11/26", "11/27", "11/28", "11/29"})
//            .yAxisTickPositions([0, 10, 20, 30, 40, 50])
                .yAxisMax(50)
                .yAxisMin(0)
                .borderRadius(5)
                .series(new AAColumn[]{
                        new AAColumn()
                                .name("总做题")
                                .color("#D8D8D8")
                                .data(new Object[]{30, 20, 28, 40, 42, 48, 50})
                                .grouping(false)
                        ,
                        new AAColumn()
                                .name("正确做题")
                                .color("#00D9CD")
                                .data(new Object[]{28, 18, 26, 40, 40, 46, 39})
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1271
    public static AAChartModel noMoreGroupingAndNestedColumnChart() {
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .categories(new String[]{"11/23", "11/24", "11/25", "11/26", "11/27", "11/28", "11/29"})
//            .yAxisTickPositions([0, 10, 20, 30, 40, 50])
                .yAxisMax(50)
                .yAxisMin(0)
                .borderRadius(5)
                .series(new Object[]{
                        new AAColumn()
                                .name("总目标")
                                .color("DeepSkyBlue")
                                .data(new Object[]{30, 20, 28, 40, 42, 48, 50})
                                .grouping(false)
                                .pointPadding(0.05f)
                        ,
                        new AAColumn()
                                .name("完成度")
                                .color("#FF3030") //Firebrick1 color
                                .data(new Object[]{28, 18, 26, 40, 40, 46, 39})
                                .grouping(false)
                                .pointPadding(0.2f)
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/842
    public static AAChartModel topRoundedCornersStackingColumnChart() {
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .stacking(AAChartStackingType.Normal)
                .title("Top Rounded Corners Stacking Column Chart")
                .colorsTheme(new String[]{"#fe117c", "#ffc069", "#06caf4",})
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo Hot")
                                .borderRadiusTopLeft("50%")
                                .borderRadiusTopRight("50%")
                                .data(new Object[]{2.10, 2.54, 2.78, 3.62, 4.41, 4.09, 3.83, 4.47, 4.20, 3.94, 3.80, 3.58, 3.19, 4.30, 3.69, 3.52, 3.02, 3.30}),
 
                        new AASeriesElement()
                                .name("Berlin Hot")
                                .data(new Object[]{1.56, 1.91, 2.45, 3.87, 3.24, 4.90, 4.61, 4.10, 4.17, 3.85, 4.17, 3.46, 3.46, 3.55, 3.50, 4.13, 2.58, 2.28}),
 
                        new AASeriesElement()
                                .name("Beijing Hot")
                                .data(new Object[]{1.16, 1.67, 2.64, 2.86, 3.00, 3.21, 4.14, 4.07, 3.68, 3.11, 3.41, 3.25, 3.32, 3.07, 3.92, 3.05, 2.18, 3.24}),
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit-Swift/issues/323
    //https://github.com/AAChartModel/AAChartKit-Swift/issues/346
    //https://github.com/highcharts/rounded-corners
    public static AAChartModel freeStyleRoundedCornersStackingColumnChart() {
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .stacking(AAChartStackingType.Percent)
                .title("Free-Style Rounded Corners Stacking Column Chart")
                .xAxisVisible(false)
                .yAxisGridLineWidth(0)
                .colorsTheme(new Object[]{
                        AAGradientColor.linearGradient(AAColor.rgbColor(128, 255, 165), AAColor.rgbColor(1, 191, 236)),
                        AAGradientColor.linearGradient(AAColor.rgbColor(0, 221, 255), AAColor.rgbColor(77, 119, 255)),
                        AAGradientColor.linearGradient(AAColor.rgbColor(55, 162, 255), AAColor.rgbColor(116, 21, 219)),
                        AAGradientColor.linearGradient(AAColor.rgbColor(255, 0, 135), AAColor.rgbColor(135, 0, 157)),
                        AAGradientColor.linearGradient(AAColor.rgbColor(255, 191, 0), AAColor.rgbColor(224, 62, 76)),
                        AAGradientColor.PixieDust,
                        AAGradientColor.SweetDream,
                        AAGradientColor.LusciousLime,
                        AAGradientColor.WroughtIron,
                })
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .borderRadiusTopLeft("50%")
                                .borderRadiusTopRight("50%")
                                .data(new Object[]{2.10, 2.54, 2.78, 3.62, 4.41, 4.09, 3.83, 4.47, 4.20, 3.94, 3.80, 3.58, 3.19, 4.30, 3.69, 3.52, 3.02, 3.30}),
 
                        new AASeriesElement()
                                .borderRadiusBottomLeft("50%")
                                .borderRadiusBottomRight("50%")
                                .data(new Object[]{1.56, 1.91, 2.45, 3.87, 3.24, 4.90, 4.61, 4.10, 4.17, 3.85, 4.17, 3.46, 3.46, 3.55, 3.50, 4.13, 2.58, 2.28}),
 
                        new AASeriesElement()
                                .borderRadiusTopLeft("50%")
                                .borderRadiusBottomRight("50%")
                                .data(new Object[]{1.16, 1.67, 2.64, 2.86, 3.00, 3.21, 4.14, 4.07, 3.68, 3.11, 3.41, 3.25, 3.32, 3.07, 3.92, 3.05, 2.18, 3.24}),
 
                        new AASeriesElement()
                                .borderRadiusTopRight("50%")
                                .borderRadiusBottomRight("50%")
                                .data(new Object[]{5.59, 3.09, 4.09, 6.14, 5.33, 6.05, 5.71, 6.22, 6.56, 4.75, 5.27, 6.02, 5.22, 5.77, 6.19, 5.68, 4.33, 5.48}),
 
                        new AASeriesElement()
                                .borderRadius(20)
                                .data(new Object[]{2.10, 2.54, 2.78, 3.62, 4.41, 4.09, 3.83, 4.47, 4.20, 3.94, 3.80, 3.58, 3.19, 4.30, 3.69, 3.52, 3.02, 3.30}),
 
                        new AASeriesElement()
                                .borderRadiusTopLeft("50%")
                                .borderRadiusBottomLeft("50%")
                                .data(new Object[]{5.59, 3.09, 4.09, 6.14, 5.33, 6.05, 5.71, 6.22, 6.56, 4.75, 5.27, 6.02, 5.22, 5.77, 6.19, 5.68, 4.33, 5.48}),
 
                        new AASeriesElement()
                                .borderRadiusTopRight("50%")
                                .borderRadiusBottomLeft("50%")
                                .data(new Object[]{1.16, 1.67, 2.64, 2.86, 3.00, 3.21, 4.14, 4.07, 3.68, 3.11, 3.41, 3.25, 3.32, 3.07, 3.92, 3.05, 2.18, 3.24}),
 
                        new AASeriesElement()
                                .borderRadiusBottomLeft("50%")
                                .borderRadiusBottomRight("50%")
                                .data(new Object[]{2.10, 2.54, 2.78, 3.62, 4.41, 4.09, 3.83, 4.47, 4.20, 3.94, 3.80, 3.58, 3.19, 4.30, 3.69, 3.52, 3.02, 3.30}),
 
                        new AASeriesElement()
                                .borderRadiusTopLeft("50%")
                                .borderRadiusTopRight("50%")
                                .data(new Object[]{1.56, 1.91, 2.45, 3.87, 3.24, 4.90, 4.61, 4.10, 4.17, 3.85, 4.17, 3.46, 3.46, 3.55, 3.50, 4.13, 2.58, 2.28}),
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit-Swift/issues/365
    public static AAChartModel customColumnChartBorderStyleAndStatesHoverColor() {
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .stacking(AAChartStackingType.Normal)
                .colorsTheme(new Object[]{AAColor.DarkGray, AAColor.LightGray})//Colors theme
                .categories(new String[]{
                        "January", "February", "March", "April", "May", "June",
                        "July", "August", "September", "October", "November", "December"
                })
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Berlin Hot")
                                .borderColor(AAColor.White)
                                .borderWidth(3)
                                .borderRadius(10)
                                .states(new AAStates()
                                        .hover(new AAHover()
                                                .color(AAColor.Red)))
                                .data(new Object[]{7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6}),
 
                        new AASeriesElement()
                                .name("Beijing Hot")
                                .borderColor(AAColor.White)
                                .borderWidth(3)
                                .borderRadius(10)
                                .states(new AAStates()
                                        .hover(new AAHover()
                                                .color("dodgerblue")))// Dodgerblue/道奇藍/#1e90ff十六进制颜色代码
                                .data(new Object[]{0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5}),
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1291
    public static AAChartModel customLineChartWithColorfulMarkersAndLines() {
        return new AAChartModel()
                .chartType(AAChartType.Line)
                .title("Custom Line Chart With Colorful Markers And Lines")
                .markerRadius(18.0)//marker点半径为8个像素
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Tokyo Hot")
                                .lineWidth(5.0)
                                .marker(new AAMarker()
                                        .states(new AAMarkerStates()
                                                .hover(new AAMarkerHover()
                                                        .radius(40)
                                                        .lineWidth(5))))
                                .data(new Object[]{
                                        2, 4, 8, 16, 32, 64, 128,
                                        new AADataElement()
                                                .y(256.0)
                                                .color(AAColor.Red)
                                })
                                .zoneAxis("x")
                                .zones(new AAZonesElement[]{
                                new AAZonesElement()
                                        .value(1)
                                        .color(AAColor.Red),
                                new AAZonesElement()
                                        .value(2)
                                        .color(AAColor.Orange),
                                new AAZonesElement()
                                        .value(3)
                                        .color(AAColor.Yellow),
                                new AAZonesElement()
                                        .value(4)
                                        .color(AAColor.Green),
                                new AAZonesElement()
                                        .value(5)
                                        .color(AAColor.Cyan),
                                new AAZonesElement()
                                        .value(6)
                                        .color(AAColor.Blue),
                                new AAZonesElement()
                                        .value(7)
                                        .color(AAColor.Purple),
                        })
                        ,
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1291
    //https://github.com/AAChartModel/AAChartKit/issues/1293
    public static AAChartModel customLineChartWithColorfulMarkersAndLines2() {
        return new AAChartModel()
                .chartType(AAChartType.Line)
                .title("Custom Line Chart With Colorful Markers And Lines")
                .markerRadius(25.0)//marker点半径为8个像素
                .markerSymbol(AAChartSymbolType.Circle)
                .yAxisLineWidth(0)
                .yAxisGridLineWidth(0)
                .legendEnabled(true)
                .stacking(AAChartStackingType.Normal)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name(AAColor.Blue)
                                .lineWidth(20.0)
                                .data(new Object[]{
                                        2048, 1024, 1024, 1024, 1024,
                                        new AADataElement()
                                                .y(2048)
                                                .color(AARgba(30, 144, 255, 1.0f)),
                                })
                                .zoneAxis("x")
                                .zones(new AAZonesElement[]{
                                new AAZonesElement()
                                        .value(1)
                                        .color(AARgba(30, 144, 255, 1.0f)),
                                new AAZonesElement()
                                        .value(2)
                                        .color(AARgba(30, 144, 255, 0.8f)),
                                new AAZonesElement()
                                        .value(3)
                                        .color(AARgba(30, 144, 255, 0.6f)),
                                new AAZonesElement()
                                        .value(4)
                                        .color(AARgba(30, 144, 255, 0.4f)),
                                new AAZonesElement()
                                        .value(5)
                                        .color(AARgba(30, 144, 255, 0.2f)),
                        })
                        ,
                        new AASeriesElement()
                                .name(AAColor.Red)
                                .lineWidth(20.0)
                                .data(new Object[]{
                                        2048, 1024, 1024, 1024, 1024,
                                        new AADataElement()
                                                .y(2048)
                                                .color(AARgba(255, 0, 0, 1.0f)),
                                })
                                .zoneAxis("x")
                                .zones(new AAZonesElement[]{
                                new AAZonesElement()
                                        .value(1)
                                        .color(AARgba(255, 0, 0, 1.0f)),
                                new AAZonesElement()
                                        .value(2)
                                        .color(AARgba(255, 0, 0, 0.8f)),
                                new AAZonesElement()
                                        .value(3)
                                        .color(AARgba(255, 0, 0, 0.6f)),
                                new AAZonesElement()
                                        .value(4)
                                        .color(AARgba(255, 0, 0, 0.4f)),
                                new AAZonesElement()
                                        .value(5)
                                        .color(AARgba(255, 0, 0, 0.2f)),
                        })
                        ,
                        new AASeriesElement()
                                .name(AAColor.Yellow)
                                .lineWidth(20.0)
                                .data(new Object[]{
                                        2048, 1024, 1024, 1024, 1024,
                                        new AADataElement()
                                                .y(2048)
                                                .color(AARgba(255, 215, 0, 1.0f)),
                                })
                                .zoneAxis("x")
                                .zones(new AAZonesElement[]{
                                new AAZonesElement()
                                        .value(1)
                                        .color(AARgba(255, 215, 0, 1.0f)),
                                new AAZonesElement()
                                        .value(2)
                                        .color(AARgba(255, 215, 0, 0.8f)),
                                new AAZonesElement()
                                        .value(3)
                                        .color(AARgba(255, 215, 0, 0.6f)),
                                new AAZonesElement()
                                        .value(4)
                                        .color(AARgba(255, 215, 0, 0.4f)),
                                new AAZonesElement()
                                        .value(5)
                                        .color(AARgba(255, 215, 0, 0.2f)),
                        })
                        ,
                        new AASeriesElement()
                                .name(AAColor.Green)
                                .lineWidth(20.0)
                                .data(new Object[]{
                                        2048, 1024, 1024, 1024, 1024,
                                        new AADataElement()
                                                .y(2048)
                                                .color(AARgba(50, 205, 50, 1.0f)),
                                })
                                .zoneAxis("x")
                                .zones(new AAZonesElement[]{
                                new AAZonesElement()
                                        .value(1)
                                        .color(AARgba(50, 205, 50, 1.0f)),
                                new AAZonesElement()
                                        .value(2)
                                        .color(AARgba(50, 205, 50, 0.8f)),
                                new AAZonesElement()
                                        .value(3)
                                        .color(AARgba(50, 205, 50, 0.6f)),
                                new AAZonesElement()
                                        .value(4)
                                        .color(AARgba(50, 205, 50, 0.4f)),
                                new AAZonesElement()
                                        .value(5)
                                        .color(AARgba(50, 205, 50, 0.2f)),
                        })
                        ,
                        new AASeriesElement()
                                .name(AAColor.Purple)
                                .lineWidth(20.0)
                                .data(new Object[]{
                                        2048, 1024, 1024, 1024, 1024,
                                        new AADataElement()
                                                .y(2048)
                                                .color(AARgba(138, 43, 226, 1.0f)),
                                })
                                .zoneAxis("x")
                                .zones(new AAZonesElement[]{
                                new AAZonesElement()
                                        .value(1)
                                        .color(AARgba(138, 43, 226, 1.0f)),
                                new AAZonesElement()
                                        .value(2)
                                        .color(AARgba(138, 43, 226, 0.8f)),
                                new AAZonesElement()
                                        .value(3)
                                        .color(AARgba(138, 43, 226, 0.6f)),
                                new AAZonesElement()
                                        .value(4)
                                        .color(AARgba(138, 43, 226, 0.4f)),
                                new AAZonesElement()
                                        .value(5)
                                        .color(AARgba(138, 43, 226, 0.2f)),
                        })
                        ,
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1294
    public static AAChartModel drawLineChartWithPointsCoordinates() {
        Object[][] dataArr = new Object[][]{
                {0, 200},
                {0, 300},
                {0, 400},
                {1, 100},
                {2, 120},
                {3, 130}
        };
 
        return new AAChartModel()
                .chartType(AAChartType.Scatter)
                .title("Draw Line Chart With Points Coordinates")
                .markerSymbol(AAChartSymbolType.Circle)
                .markerSymbolStyle(AAChartSymbolStyleType.BorderBlank)
                .markerRadius(8)
                .colorsTheme(new String[]{AAColor.Red})
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .type(AAChartType.Line)
                                .enableMouseTracking(false)
                                .showInLegend(false)
                                .marker(new AAMarker()
                                        .enabled(false))
                                .states(new AAStates()
                                        .inactive(new AAInactive()
                                                .enabled(false)))
                                .data(dataArr),
                        new AASeriesElement()
                                .name("Red Dot")
                                .type(AAChartType.Scatter)
                                .data(dataArr),
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1351
    public static AAChartModel configureSpecialStyleColumnForNegativeDataMixedPositiveData() {
        String[] categoriesArr = new String[]{
                "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满", "芒种", "夏至", "小暑", "大暑",
                "立秋", "处暑", "白露", "秋分", "寒露", "霜降", "立冬", "小雪", "大雪", "冬至", "小寒", "大寒"
        };
 
        Integer[] dataArr = new Integer[]{
                -70, -69, -25, -145, -182, -215, -52, -265, -233, -453, -139, -96,
                +70, +69, +25, +145, +182, +215, +52, +265, +233, +453, +139, +96,
        };
        ArrayList<AADataElement> newDataArr = new ArrayList<>();
 
        for (Integer dataElementValue : dataArr) {
            AADataLabels aaDataLabels = new AADataLabels()
                    .enabled(true)
                    .verticalAlign(AAChartVerticalAlignType.Middle)
                    .x(0)
                    .y(-10);
 
            if (dataElementValue < 0) {
                AADataElement negativeDataElement = new AADataElement()
                        .y((-dataElementValue))
                        .color(AAColor.Green)
                        .dataLabels(aaDataLabels
                                .format("-{y} 美元")
                                .style(AAStyle.style(AAColor.Green, 11, AAChartFontWeightType.Thin)));
                newDataArr.add(negativeDataElement);
            } else {
                AADataElement positiveDataElement = new AADataElement()
                        .y((dataElementValue))
                        .color(AAColor.Red)
                        .dataLabels(aaDataLabels
                                .format("+{y} 美元")
                                .style(AAStyle.style(AAColor.Red, 11, AAChartFontWeightType.Thin)));
                newDataArr.add(positiveDataElement);
            }
        }
 
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .categories(categoriesArr)
                .tooltipEnabled(false)
                .yAxisVisible(false)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("虚构数据")
                                .data(newDataArr.toArray())
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit-Swift/issues/389
    public static AAChartModel configureMultiLevelStopsArrGradientColorAreasplineMixedLineChart() {
        ArrayList<Object> randomNumArrA = new ArrayList<>();
        ArrayList<Object> randomNumArrB = new ArrayList<>();
        double y1;
        double y2;
        int Q = (int) (Math.random() * 50);
        int range = 129;
        for (int x = 0; x < range; x++) {
            y1 = Math.sin(Q * (x * Math.PI / 180)) + x * 2.0 * 0.01;
            y2 = Math.cos(Q * (x * Math.PI / 180)) + x * 3.0 * 0.01;
            randomNumArrA.add(y1);
            randomNumArrB.add(y2);
        }
 
        Object[][] redStopsArr = new Object[][]{
                {0.0, AARgba(255, 0, 0, 1.0f)},//颜色字符串设置支持十六进制类型和 rgba 类型
                {0.2, AARgba(255, 0, 0, 0.2f)},
                {0.4, AARgba(255, 0, 0, 0.1f)},
                {0.6, AARgba(255, 0, 0, 0.05f)},
                {0.8, AARgba(255, 0, 0, 0.01f)},
                {1.0, AAColor.Clear}
        };
 
        Map<String, Object> gradientRedColorDic = AAGradientColor.linearGradient(
                AALinearGradientDirection.ToBottom,
                redStopsArr
        );
 
        return new AAChartModel()
                .chartType(AAChartType.Areaspline)
                .stacking(AAChartStackingType.Normal)
                .backgroundColor(AAColor.Black)
                .colorsTheme(new String[]{"#1e90ff", "#04d69f", "#ef476f", "#ffd066",})
                .dataLabelsEnabled(false)
                .markerSymbol(AAChartSymbolType.Circle)
                .markerRadius(5)
                .markerSymbolStyle(AAChartSymbolStyleType.InnerBlank)
                .yAxisGridLineWidth(0.5f)
                .xAxisGridLineWidth(0.5f)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2017")
                                .type(AAChartType.Spline)
                                .lineWidth(6f)
                                .data(randomNumArrA.toArray()),
                        new AASeriesElement()
                                .name("2018")
                                .type(AAChartType.Spline)
                                .lineWidth(6f)
                                .data(randomNumArrB.toArray()),
                        new AASeriesElement()
                                .name("2020")
                                .fillColor(gradientRedColorDic)
                                .lineWidth(6f)
                                .threshold(-4f)
                                .data(randomNumArrA.toArray()),
                });
    }
 
    //https://github.com/AAChartModel/AAChartKit/issues/1401
    public static AAChartModel connectNullsForSingleAASeriesElement() {
        Object[] dataArr = new Object[]{
                0.45, null, null,
                0.55, 0.58, 0.62, null, null,
                0.56, 0.67, 0.50, 0.34, 0.50, null, null, null, null,
                0.23, 0.47, 0.46, 0.38, 0.56, 0.48, 0.36, null, null, null, null, null, null, null, null,
                0.74, 0.66, 0.65, 0.71, 0.59, 0.65, 0.77, 0.52, 0.53, 0.58, 0.53,
        };
 
        return new AAChartModel()
                .chartType(AAChartType.Spline)
                .subtitle("虚拟数据")
                .colorsTheme(new String[]{"#1e90ff", "#ef476f", "#ffd066", "#04d69f"})
                .yAxisTitle("摄氏度")
                .dataLabelsEnabled(false)
                .yAxisGridLineWidth(0f)
                .stacking(AAChartStackingType.Normal)
                .markerRadius(8f)
                .markerSymbolStyle(AAChartSymbolStyleType.BorderBlank)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("Do NOT Connect Nulls")
                                .lineWidth(5f)
                                .connectNulls(false)
                                .data(dataArr),
                        new AASeriesElement()
                                .name("Connect Nulls")
                                .lineWidth(5f)
                                .connectNulls(true)
                                .data(dataArr),
                        new AASeriesElement()
                                .name("Do NOT Connect Nulls")
                                .lineWidth(5f)
                                .connectNulls(false)
                                .data(dataArr),
                        new AASeriesElement()
                                .name("Connect Nulls")
                                .lineWidth(5f)
                                .connectNulls(true)
                                .data(dataArr)
                });
    }
 
 
//- (NSArray *)generateRandomNumberArrayWithLength:(NSUInteger)length
//    randomRange:(NSUInteger)randomRange
//    minNum:(NSUInteger)minNum {
//        NSMutableArray *randomNumArrA = [NSMutableArray array];
//        for (NSUInteger x = 0; x < length; x++) {
//            NSUInteger randomNum = arc4random() % randomRange + minNum;
//        [randomNumArrA addObject:@(randomNum)];
//        }
//        return randomNumArrA;
//    }
 
    public static ArrayList<Object> generateRandomNumberArrayWithLength(int length, int randomRange, int minNum) {
        ArrayList<Object> randomNumArrA = new ArrayList<>();
        for (int x = 0; x < length; x++) {
            int randomNum = (int) (Math.random() * randomRange + minNum);
            randomNumArrA.add(randomNum);
        }
        return randomNumArrA;
    }
 
 
//    - (NSArray *)generateRandomNumberMixedNullArrayWithLength:(NSUInteger)length
//    randomRange:(NSUInteger)randomRange
//    minNum:(NSUInteger)minNum {
//        NSMutableArray *randomNumArrA = [NSMutableArray array];
//        for (NSUInteger x = 0; x < length; x++) {
//            if ((100 < x && x < 150) || (300 < x && x < 350)) {
//                NSUInteger randomNum = arc4random() % randomRange + minNum;
//            [randomNumArrA addObject:@(randomNum)];
//            } else {
//            [randomNumArrA addObject:NSNull.null];
//            }
//        }
//        return randomNumArrA;
//    }
 
    public static ArrayList<Object> generateRandomNumberMixedNullArrayWithLength(int length, int randomRange, int minNum) {
        ArrayList<Object> randomNumArrA = new ArrayList<>();
        for (int x = 0; x < length; x++) {
            if ((100 < x && x < 150) || (300 < x && x < 350)) {
                int randomNum = (int) (Math.random() * randomRange + minNum);
                randomNumArrA.add(randomNum);
            } else {
                randomNumArrA.add(null);
            }
        }
        return randomNumArrA;
    }
 
 
////https://github.com/AAChartModel/AAChartKit/issues/1419
//- (AAChartModel *)lineChartsWithLargeDifferencesInTheNumberOfDataInDifferentSeriesElement {
//    return AAChartModel.new
//        .chartTypeSet(AAChartTypeLine)
//        .backgroundColorSet(AAColor.blackColor)
//        .colorsThemeSet(@[@"#1e90ff",@"#04d69f",@"#ef476f",@"#ffd066",])
//        .dataLabelsEnabledSet(false)
//        .markerRadiusSet(@0)
//        .seriesSet(@[
//            AASeriesElement.new
//                .nameSet(@"2017")
//                .lineWidthSet(@6)
//                .dataSet([self generateRandomNumberMixedNullArrayWithLength:3550 randomRange:5 minNum:100]),
//            AASeriesElement.new
//                .nameSet(@"2018")
//                .lineWidthSet(@6)
//                .dataSet([self generateRandomNumberArrayWithLength:3550 randomRange:100 minNum:200]),
//            AASeriesElement.new
//                .nameSet(@"2019")
//                .lineWidthSet(@6)
//                .dataSet([self generateRandomNumberArrayWithLength:3550 randomRange:150 minNum:400]),
//            AASeriesElement.new
//                .nameSet(@"2020")
//                .lineWidthSet(@6)
//                .dataSet([self generateRandomNumberArrayWithLength:3550 randomRange:150 minNum:600]),
//        ]);
//}
 
    //https://github.com/AAChartModel/AAChartKit/issues/1419
    public static AAChartModel lineChartsWithLargeDifferencesInTheNumberOfDataInDifferentSeriesElement() {
        return new AAChartModel()
                .chartType(AAChartType.Line)
                .backgroundColor("#000000")
                .colorsTheme(new String[]{"#1e90ff", "#04d69f", "#ef476f", "#ffd066"})
                .dataLabelsEnabled(false)
                .markerRadius(0f)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2017")
                                .lineWidth(6f)
                                .data(generateRandomNumberMixedNullArrayWithLength(3550, 5, 100).toArray()),
                        new AASeriesElement()
                                .name("2018")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 100, 200).toArray()),
                        new AASeriesElement()
                                .name("2019")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 150, 400).toArray()),
                        new AASeriesElement()
                                .name("2020")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 150, 600).toArray()),
                });
    }
 
    public static AAChartModel largeDataStackingColumnChart() {
        return new AAChartModel()
                .chartType(AAChartType.Column)
                .backgroundColor("#000000")
                .colorsTheme(new String[]{"#1e90ff", "#04d69f", "#ef476f", "#ffd066"})
                .dataLabelsEnabled(false)
                .stacking(AAChartStackingType.Normal)
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("2018")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 100, 200).toArray()),
                        new AASeriesElement()
                                .name("2019")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 150, 400).toArray()),
                        new AASeriesElement()
                                .name("2020")
                                .lineWidth(6f)
                                .data(generateRandomNumberArrayWithLength(3550, 150, 600).toArray()),
                });
    }
 
    ////https://github.com/AAChartModel/AAChartCore-Kotlin/issues/149
    //- (AAChartModel *)customAreasplineChartWithColorfulGradientColorZones {
    //    NSArray *redStopsArr = @[
    //        @[@0.0, AARgbaColor(255, 0, 0, 1.0)],//颜色字符串设置支持十六进制类型和 rgba 类型
    //        @[@1.0, AAColor.clearColor]
    //    ];
    //
    //    NSArray *greenStopsArr = @[
    //        @[@0.0, AARgbaColor(0, 255, 0, 1.0)],//颜色字符串设置支持十六进制类型和 rgba 类型
    //        @[@1.0, AAColor.clearColor]
    //    ];
    //
    //    NSArray *blueStopsArr = @[
    //        @[@0.0, AARgbaColor(0, 0, 255, 1.0)],//颜色字符串设置支持十六进制类型和 rgba 类型
    //        @[@1.0, AAColor.clearColor]
    //    ];
    //
    //    NSDictionary *redGradientColorDic = [AAGradientColor gradientColorWithDirection:AALinearGradientDirectionToBottom stopsArray:redStopsArr];
    //    NSDictionary *greenGradientColorDic = [AAGradientColor gradientColorWithDirection:AALinearGradientDirectionToBottom stopsArray:greenStopsArr];
    //    NSDictionary *blueGradientColorDic = [AAGradientColor gradientColorWithDirection:AALinearGradientDirectionToBottom stopsArray:blueStopsArr];
    //
    //    AADataElement *singleSpecialData = AADataElement.new
    //        .markerSet(AAMarker.new
    //                   .radiusSet(@8)//曲线连接点半径
    //                   .symbolSet(AAChartSymbolTypeCircle)//曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
    //                   .fillColorSet(AAColor.whiteColor)//点的填充色(用来设置折线连接点的填充色)
    //                   .lineWidthSet(@5)//外沿线的宽度(用来设置折线连接点的轮廓描边的宽度)
    //                   //外沿线的颜色(用来设置折线连接点的轮廓描边颜色,当值为空字符串时,默认取数据点或数据列的颜色)
    //                   .lineColorSet(@"#1E90FF")//道奇蓝
    //                   )
    //        .dataLabelsSet(AADataLabels.new
    //                       .enabledSet(true)
    //                       .allowOverlapSet(true)
    //                       .useHTMLSet(true)
    //                       .backgroundColorSet(AARgbaColor(65, 111, 166, 1.0))
    //                       .borderRadiusSet(@10)
    //                       .shapeSet(@"callout")
    //                       .formatSet(@"{point.category}<br>{series.name}: {point.y} %")
    //                       .styleSet(AAStyleColorSizeWeight(AAColor.whiteColor, 12, AAChartFontWeightTypeBold))
    //                       .xSet(@-80).ySet(@(5))
    //                       .alignSet(AAChartAlignTypeCenter)
    //                       .verticalAlignSet(AAChartVerticalAlignTypeTop)
    //                       .overflowSet(@"none")
    //                       .cropSet(false)
    //                       )
    //        .ySet(@85.3);
    //
    //    AAStyle *axisLabelsStyle = AAStyleColorSizeWeight(AAColor.whiteColor, 12, AAChartFontWeightTypeBold);
    //
    //    return AAChartModel.new
    //        .chartTypeSet(AAChartTypeAreaspline)
    //        .backgroundColorSet(AAColor.blackColor)
    //        .categoriesSet(@[
    //            @"Jan", @"Feb", @"Mar", @"Apr", @"May", @"Jun",
    //            @"Jul", @"Aug", @"Sep", @"Oct", @"Nov", @"Dec"
    //        ])
    //        .dataLabelsEnabledSet(false)
    //        .legendEnabledSet(false)
    //        .markerRadiusSet(@0)
    //        .xAxisLabelsStyleSet(axisLabelsStyle)
    //        .yAxisLabelsStyleSet(axisLabelsStyle)
    //        .xAxisGridLineStyleSet([AALineStyle styleWithColor:AAColor.whiteColor dashStyle:AAChartLineDashStyleTypeLongDashDotDot width:@0.5])
    //        .yAxisGridLineStyleSet([AALineStyle styleWithWidth:@0])
    //        .seriesSet(@[
    //            AASeriesElement.new
    //                .nameSet(@"空气湿度")
    //                .lineWidthSet(@6)
    //                .zoneAxisSet(@"x")
    //                .zonesSet(@[
    //                    AAZonesElement.new
    //                        .valueSet(@2)
    //                        .colorSet(AAColor.redColor)
    //                        .fillColorSet((id)redGradientColorDic ),
    //                    AAZonesElement.new
    //                        .valueSet(@5)
    //                        .colorSet(AAColor.greenColor)
    //                        .fillColorSet((id)greenGradientColorDic),
    //                    AAZonesElement.new
    //                        .colorSet(AAColor.blueColor)
    //                        .fillColorSet((id)blueGradientColorDic),
    //                ])
    //                .dataSet(@[@56.5, @33.3, @85.3, @23.9, @29.6, @34.5, @28.2, @26.5, @15.2, @56.5, @33.3, singleSpecialData]),
    //        ]);
    //}
 
    //https://github.com/AAChartModel/AAChartCore-Kotlin/issues/149
    public static AAChartModel customAreasplineChartWithColorfulGradientColorZones() {
        Object[][] redStopsArr = new Object[][]{
                new Object[]{0.0f, AARgba(255, 0, 0, 1.0f)},//颜色字符串设置支持十六进制类型和 rgba 类型
                new Object[]{1.0f, AAColor.Clear}
        };
 
        Object[][] greenStopsArr = new Object[][]{
                new Object[]{0.0f, AARgba(0, 255, 0, 1.0f)},
                new Object[]{1.0f, AAColor.Clear}
        };
 
        Object[][] blueStopsArr = new Object[][]{
                new Object[]{0.0f, AARgba(0, 0, 255, 1.0f)},
                new Object[]{1.0f, AAColor.Clear}
        };
 
        Map<String, Object> redGradientColorDic = AAGradientColor.linearGradient(AALinearGradientDirection.ToBottom, redStopsArr);
        Map<String, Object> greenGradientColorDic = AAGradientColor.linearGradient(AALinearGradientDirection.ToBottom, greenStopsArr);
        Map<String, Object> blueGradientColorDic = AAGradientColor.linearGradient(AALinearGradientDirection.ToBottom, blueStopsArr);
 
        AADataElement singleSpecialData = new AADataElement()
                .marker(new AAMarker()
                        .radius(8f)//曲线连接点半径
                        .symbol(AAChartSymbolType.Circle)//曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
                        .fillColor(AAColor.White)//点的填充色(用来设置折线连接点的填充色)
                        .lineWidth(5f)//外沿线的宽度(用来设置折线连接点的轮廓描边的宽度)
                        //外沿线的颜色(用来设置折线连接点的轮廓描边颜色,当值为空字符串时,默认取数据点或数据列的颜色)
                        .lineColor(AAColor.Red)
                )
                .dataLabels(new AADataLabels()
                        .enabled(true)
                        .allowOverlap(true)
                        .useHTML(true)
                        .backgroundColor(AARgba(65, 111, 166, 1.0f))
                        .borderRadius(10f)
                        .shape("callout")
                        .format("{point.category}<br>{series.name}: {point.y} %")
                        .style(new AAStyle()
                                .color(AAColor.White)
                                .fontSize(12f)
                                .fontWeight(AAChartFontWeightType.Bold)
                        )
                        .x(-80f)
                        .y(5f)
                        .align(AAChartAlignType.Center)
                        .verticalAlign(AAChartVerticalAlignType.Top)
                        .overflow("none")
                        .crop(false)
                )
                .y(85.3f);
 
        AAStyle axisLabelsStyle = new AAStyle()
                .color(AAColor.White)
                .fontSize(12f)
                .fontWeight(AAChartFontWeightType.Bold);
 
        return new AAChartModel()
                .chartType(AAChartType.Areaspline)
                .backgroundColor(AAColor.Black)
                .categories(new String[]{
                        "Jan", "Feb", "Mar", "Apr", "May", "Jun",
                        "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
                })
                .dataLabelsEnabled(false)
                .legendEnabled(false)
                .markerRadius(0f)
//                .xAxisLabelsStyle(axisLabelsStyle)
//                .yAxisLabelsStyle(axisLabelsStyle)
//                .xAxisGridLineStyle(new AALineStyle()
//                        .color(AAColor.White)
//                        .dashStyle(AAChartLineDashStyleType.LongDashDotDot)
//                        .width(0.5f)
//                )
//                .yAxisGridLineStyle(new AALineStyle()
//                        .width(0f)
//                )
                .series(new AASeriesElement[]{
                        new AASeriesElement()
                                .name("空气湿度")
                                .lineWidth(6f)
                                .zoneAxis("x")
                                .zones(new AAZonesElement[]{
                                        new AAZonesElement()
                                                .value(2)
                                                .color(AAColor.Red)
                                                .fillColor(redGradientColorDic),
                                        new AAZonesElement()
                                                .value(5)
                                                .color(AAColor.Green)
                                                .fillColor(greenGradientColorDic),
                                        new AAZonesElement()
                                                .color(AAColor.Blue)
                                                .fillColor(blueGradientColorDic),
                                })
                                .data(new Object[]{
                                56.5f, 33.3f, 85.3f, 23.9f, 29.6f, 34.5f, 28.2f, 26.5f, 15.2f, 56.5f, 33.3f, singleSpecialData
                        }),
                });
 
 
    }
 
}