Front-end Controls Collection: A Complete Guide to UI Components (48) - Boxplot (with title attached) [source code with explanation at the end of the article]

Front-end Controls Collection: A Complete Guide to UI Components (48) - Boxplot (with title attached) [source code with explanation at the end of the article]

In today's digital age, web applications have become an important part of our lives. Whether it's a social media platform, e-commerce website or online tool, the heart of a modern web application is its user interface (UI). One of the key components of the user interface is the front-end controls.

Front-end controls are an indispensable element in web development. They provide us with the tools to build a variety of interactive and feature-rich web applications. Whether you are a new front-end developer or an experienced engineer, understanding and mastering front-end controls is key to improving your web development skills.

This blog series will take you deep into the world of front-end controls. We'll look at a variety of UI components in detail, ranging from simple buttons and form controls to complex charting and map integration. Whether you're looking to improve your skills or find ways to build impressive user experiences, this series will provide you with valuable knowledge.

Over the next few articles, we'll explore the different types of front-end controls, discussing their uses, best practices, and real-world examples. Whether your interest is building beautiful UIs, improving user experience, or learning the latest web development techniques, this series will help.

Are you ready to explore the power of front-end controls? let's start!

1. Demo address

Visit URL: http://59.110.22.223:8080/Model_qianduan/calendar_label_setting.html

image-20230915093625571

2. Common sense of controls

Custom controls
Custom controls are compiled server-side controls that encapsulate user interface and other functions into reusable packages. Compared with standard controls, custom controls have a different tag prefix. And having to do it shows no difference other than registration and deployment. In addition, custom controls have their own object model, can fire events, and support all Microsoft Visual Studio design features, such as the Properties Window, Visual Designer, Property Builder, and Toolbox.

The user controls are mentioned above. Just like creating a page, drag and drop the system controls in the designer to design the interface, and then add the necessary event codes to these controls. It is purely a combination. The custom control is to "implement from scratch" the underlying function of the control. Write a class that inherits from Control and implements the INamingContainer interface. It even overrides the Render method of the control, controls the html code generated by the control, and implements the response to return data from the browser. Events and processing of returned data are not only called custom controls, they can also be called composite controls.

When using custom controls, you can click on the toolbox on the right side of the vs software, right-click on the blank space on the toolbox to select an item – click “Browse” under the .NET Framework component tab – and find the custom control you want to add ( .dll file)–Open–OK. This way you can drag that custom control out of the toolbox and use it. Commonly used controls include: paging controls, text editors, Crystal Reports, ActiveReports, etc.

Development method:
1. Development of custom controls, that is, inheriting the accumulation of Control to implement server controls.

2. Develop user controls.

Creating a user control is similar to creating a regular ASP.NET web page, but there are some differences. The steps are:

① Create an .ascx text file. This is the first difference between user controls and asp.net web pages, which use the extension .aspx.

② Add the @Control directive at the top of the text file and set the selected programming language through the language attribute. This is the second difference between user controls and web pages. (The latter uses the @page directive).

③Add HTML markup text and asp.net server controls to the text file. You can add any html tag other than html, body and form. This is because user controls cannot be used alone and must be used as part of the web page. This is the third difference between user controls and web pages.

Three, source code

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
                <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>

</head>
<body >
    <div id="49226319491d475baee829a7ccebc77d" class="chart-container" style="width:900px; height:500px; "></div>
    <script>
        var chart_49226319491d475baee829a7ccebc77d = echarts.init(
            document.getElementById('49226319491d475baee829a7ccebc77d'), 'white', {renderer: 'canvas'});
        var option_49226319491d475baee829a7ccebc77d = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "aria": {
        "enabled": false
    },
    "color": [
        "#5470c6",
        "#91cc75",
        "#fac858",
        "#ee6666",
        "#73c0de",
        "#3ba272",
        "#fc8452",
        "#9a60b4",
        "#ea7ccc"
    ],
    "series": [
        {
            "type": "heatmap",
            "coordinateSystem": "calendar",
            "data": [
                [
                    "2017-01-01",
                    13660
                ],
                [
                    "2017-01-02",
                    23843
                ],
                [
                    "2017-01-03",
                    11170
                ],
                [
                    "2017-01-04",
                    4654
                ],
                [
                    "2017-01-05",
                    24289
                ],
                [
                    "2017-01-06",
                    16283
                ],
                [
                    "2017-01-07",
                    7137
                ],
                [
                    "2017-01-08",
                    4737
                ],
                [
                    "2017-01-09",
                    2141
                ],
                [
                    "2017-01-10",
                    2777
                ],
                [
                    "2017-01-11",
                    2108
                ],
                [
                    "2017-01-12",
                    24275
                ],
                [
                    "2017-01-13",
                    5520
                ],
                [
                    "2017-01-14",
                    3512
                ],
                [
                    "2017-01-15",
                    19330
                ],
                [
                    "2017-01-16",
                    17955
                ],
                [
                    "2017-01-17",
                    14592
                ],
                [
                    "2017-01-18",
                    16235
                ],
                [
                    "2017-01-19",
                    1647
                ],
                [
                    "2017-01-20",
                    18237
                ],
                [
                    "2017-01-21",
                    13886
                ],
                [
                    "2017-01-22",
                    9926
                ],
                [
                    "2017-01-23",
                    7393
                ],
                [
                    "2017-01-24",
                    16348
                ],
                [
                    "2017-01-25",
                    7143
                ],
                [
                    "2017-01-26",
                    17695
                ],
                [
                    "2017-01-27",
                    15175
                ],
                [
                    "2017-01-28",
                    22663
                ],
                [
                    "2017-01-29",
                    11875
                ],
                [
                    "2017-01-30",
                    3461
                ],
                [
                    "2017-01-31",
                    5590
                ],
                [
                    "2017-02-01",
                    17866
                ],
                [
                    "2017-02-02",
                    9593
                ],
                [
                    "2017-02-03",
                    24795
                ],
                [
                    "2017-02-04",
                    15743
                ],
                [
                    "2017-02-05",
                    17925
                ],
                [
                    "2017-02-06",
                    22301
                ],
                [
                    "2017-02-07",
                    13323
                ],
                [
                    "2017-02-08",
                    7047
                ],
                [
                    "2017-02-09",
                    4318
                ],
                [
                    "2017-02-10",
                    1944
                ],
                [
                    "2017-02-11",
                    24363
                ],
                [
                    "2017-02-12",
                    9185
                ],
                [
                    "2017-02-13",
                    2485
                ],
                [
                    "2017-02-14",
                    5273
                ],
                [
                    "2017-02-15",
                    20846
                ],
                [
                    "2017-02-16",
                    13844
                ],
                [
                    "2017-02-17",
                    5564
                ],
                [
                    "2017-02-18",
                    8474
                ],
                [
                    "2017-02-19",
                    9020
                ],
                [
                    "2017-02-20",
                    23480
                ],
                [
                    "2017-02-21",
                    13653
                ],
                [
                    "2017-02-22",
                    22056
                ],
                [
                    "2017-02-23",
                    14635
                ],
                [
                    "2017-02-24",
                    19275
                ],
                [
                    "2017-02-25",
                    21300
                ],
                [
                    "2017-02-26",
                    17410
                ],
                [
                    "2017-02-27",
                    3536
                ],
                [
                    "2017-02-28",
                    5639
                ],
                [
                    "2017-03-01",
                    13569
                ],
                [
                    "2017-03-02",
                    13222
                ],
                [
                    "2017-03-03",
                    13344
                ],
                [
                    "2017-03-04",
                    6467
                ],
                [
                    "2017-03-05",
                    15856
                ],
                [
                    "2017-03-06",
                    10230
                ],
                [
                    "2017-03-07",
                    23118
                ],
                [
                    "2017-03-08",
                    5780
                ],
                [
                    "2017-03-09",
                    7399
                ],
                [
                    "2017-03-10",
                    23350
                ],
                [
                    "2017-03-11",
                    7885
                ],
                [
                    "2017-03-12",
                    13255
                ],
                [
                    "2017-03-13",
                    9168
                ],
                [
                    "2017-03-14",
                    9319
                ],
                [
                    "2017-03-15",
                    24651
                ],
                [
                    "2017-03-16",
                    14013
                ],
                [
                    "2017-03-17",
                    4005
                ],
                [
                    "2017-03-18",
                    19722
                ],
                [
                    "2017-03-19",
                    18608
                ],
                [
                    "2017-03-20",
                    20310
                ],
                [
                    "2017-03-21",
                    13484
                ],
                [
                    "2017-03-22",
                    8887
                ],
                [
                    "2017-03-23",
                    2516
                ],
                [
                    "2017-03-24",
                    4376
                ],
                [
                    "2017-03-25",
                    20365
                ],
                [
                    "2017-03-26",
                    13401
                ],
                [
                    "2017-03-27",
                    14597
                ],
                [
                    "2017-03-28",
                    22746
                ],
                [
                    "2017-03-29",
                    12774
                ],
                [
                    "2017-03-30",
                    15111
                ],
                [
                    "2017-03-31",
                    10627
                ],
                [
                    "2017-04-01",
                    3410
                ],
                [
                    "2017-04-02",
                    9539
                ],
                [
                    "2017-04-03",
                    11173
                ],
                [
                    "2017-04-04",
                    20228
                ],
                [
                    "2017-04-05",
                    3223
                ],
                [
                    "2017-04-06",
                    18250
                ],
                [
                    "2017-04-07",
                    22334
                ],
                [
                    "2017-04-08",
                    4742
                ],
                [
                    "2017-04-09",
                    4649
                ],
                [
                    "2017-04-10",
                    20315
                ],
                [
                    "2017-04-11",
                    13724
                ],
                [
                    "2017-04-12",
                    9877
                ],
                [
                    "2017-04-13",
                    3697
                ],
                [
                    "2017-04-14",
                    8307
                ],
                [
                    "2017-04-15",
                    5876
                ],
                [
                    "2017-04-16",
                    6305
                ],
                [
                    "2017-04-17",
                    12235
                ],
                [
                    "2017-04-18",
                    4477
                ],
                [
                    "2017-04-19",
                    5987
                ],
                [
                    "2017-04-20",
                    21727
                ],
                [
                    "2017-04-21",
                    3793
                ],
                [
                    "2017-04-22",
                    16032
                ],
                [
                    "2017-04-23",
                    24350
                ],
                [
                    "2017-04-24",
                    3496
                ],
                [
                    "2017-04-25",
                    17762
                ],
                [
                    "2017-04-26",
                    13403
                ],
                [
                    "2017-04-27",
                    10062
                ],
                [
                    "2017-04-28",
                    20212
                ],
                [
                    "2017-04-29",
                    23846
                ],
                [
                    "2017-04-30",
                    17496
                ],
                [
                    "2017-05-01",
                    19941
                ],
                [
                    "2017-05-02",
                    7105
                ],
                [
                    "2017-05-03",
                    7688
                ],
                [
                    "2017-05-04",
                    11994
                ],
                [
                    "2017-05-05",
                    17769
                ],
                [
                    "2017-05-06",
                    17242
                ],
                [
                    "2017-05-07",
                    21032
                ],
                [
                    "2017-05-08",
                    11979
                ],
                [
                    "2017-05-09",
                    11362
                ],
                [
                    "2017-05-10",
                    11860
                ],
                [
                    "2017-05-11",
                    13385
                ],
                [
                    "2017-05-12",
                    19669
                ],
                [
                    "2017-05-13",
                    13839
                ],
                [
                    "2017-05-14",
                    24727
                ],
                [
                    "2017-05-15",
                    24909
                ],
                [
                    "2017-05-16",
                    3346
                ],
                [
                    "2017-05-17",
                    22866
                ],
                [
                    "2017-05-18",
                    23697
                ],
                [
                    "2017-05-19",
                    5471
                ],
                [
                    "2017-05-20",
                    21228
                ],
                [
                    "2017-05-21",
                    24772
                ],
                [
                    "2017-05-22",
                    3894
                ],
                [
                    "2017-05-23",
                    8659
                ],
                [
                    "2017-05-24",
                    16797
                ],
                [
                    "2017-05-25",
                    11906
                ],
                [
                    "2017-05-26",
                    24435
                ],
                [
                    "2017-05-27",
                    1555
                ],
                [
                    "2017-05-28",
                    23777
                ],
                [
                    "2017-05-29",
                    22244
                ],
                [
                    "2017-05-30",
                    10743
                ],
                [
                    "2017-05-31",
                    9357
                ],
                [
                    "2017-06-01",
                    1941
                ],
                [
                    "2017-06-02",
                    14830
                ],
                [
                    "2017-06-03",
                    15069
                ],
                [
                    "2017-06-04",
                    10423
                ],
                [
                    "2017-06-05",
                    4866
                ],
                [
                    "2017-06-06",
                    19451
                ],
                [
                    "2017-06-07",
                    2186
                ],
                [
                    "2017-06-08",
                    7971
                ],
                [
                    "2017-06-09",
                    11926
                ],
                [
                    "2017-06-10",
                    11067
                ],
                [
                    "2017-06-11",
                    21561
                ],
                [
                    "2017-06-12",
                    7475
                ],
                [
                    "2017-06-13",
                    8026
                ],
                [
                    "2017-06-14",
                    7947
                ],
                [
                    "2017-06-15",
                    10760
                ],
                [
                    "2017-06-16",
                    4919
                ],
                [
                    "2017-06-17",
                    5193
                ],
                [
                    "2017-06-18",
                    12136
                ],
                [
                    "2017-06-19",
                    19007
                ],
                [
                    "2017-06-20",
                    24071
                ],
                [
                    "2017-06-21",
                    4705
                ],
                [
                    "2017-06-22",
                    22984
                ],
                [
                    "2017-06-23",
                    9790
                ],
                [
                    "2017-06-24",
                    21117
                ],
                [
                    "2017-06-25",
                    10370
                ],
                [
                    "2017-06-26",
                    23244
                ],
                [
                    "2017-06-27",
                    11593
                ],
                [
                    "2017-06-28",
                    9529
                ],
                [
                    "2017-06-29",
                    7830
                ],
                [
                    "2017-06-30",
                    4502
                ],
                [
                    "2017-07-01",
                    20744
                ],
                [
                    "2017-07-02",
                    3261
                ],
                [
                    "2017-07-03",
                    19104
                ],
                [
                    "2017-07-04",
                    19897
                ],
                [
                    "2017-07-05",
                    1514
                ],
                [
                    "2017-07-06",
                    8639
                ],
                [
                    "2017-07-07",
                    20265
                ],
                [
                    "2017-07-08",
                    22925
                ],
                [
                    "2017-07-09",
                    24971
                ],
                [
                    "2017-07-10",
                    20709
                ],
                [
                    "2017-07-11",
                    2874
                ],
                [
                    "2017-07-12",
                    5762
                ],
                [
                    "2017-07-13",
                    1887
                ],
                [
                    "2017-07-14",
                    16645
                ],
                [
                    "2017-07-15",
                    17568
                ],
                [
                    "2017-07-16",
                    12516
                ],
                [
                    "2017-07-17",
                    4870
                ],
                [
                    "2017-07-18",
                    6418
                ],
                [
                    "2017-07-19",
                    15978
                ],
                [
                    "2017-07-20",
                    4538
                ],
                [
                    "2017-07-21",
                    12081
                ],
                [
                    "2017-07-22",
                    20384
                ],
                [
                    "2017-07-23",
                    5530
                ],
                [
                    "2017-07-24",
                    14585
                ],
                [
                    "2017-07-25",
                    17150
                ],
                [
                    "2017-07-26",
                    16093
                ],
                [
                    "2017-07-27",
                    21051
                ],
                [
                    "2017-07-28",
                    8239
                ],
                [
                    "2017-07-29",
                    6267
                ],
                [
                    "2017-07-30",
                    4012
                ],
                [
                    "2017-07-31",
                    19755
                ],
                [
                    "2017-08-01",
                    11311
                ],
                [
                    "2017-08-02",
                    5594
                ],
                [
                    "2017-08-03",
                    10439
                ],
                [
                    "2017-08-04",
                    2847
                ],
                [
                    "2017-08-05",
                    4328
                ],
                [
                    "2017-08-06",
                    12778
                ],
                [
                    "2017-08-07",
                    8712
                ],
                [
                    "2017-08-08",
                    9627
                ],
                [
                    "2017-08-09",
                    18620
                ],
                [
                    "2017-08-10",
                    19036
                ],
                [
                    "2017-08-11",
                    16276
                ],
                [
                    "2017-08-12",
                    22136
                ],
                [
                    "2017-08-13",
                    4609
                ],
                [
                    "2017-08-14",
                    23435
                ],
                [
                    "2017-08-15",
                    5028
                ],
                [
                    "2017-08-16",
                    23028
                ],
                [
                    "2017-08-17",
                    15979
                ],
                [
                    "2017-08-18",
                    13194
                ],
                [
                    "2017-08-19",
                    1869
                ],
                [
                    "2017-08-20",
                    9012
                ],
                [
                    "2017-08-21",
                    23642
                ],
                [
                    "2017-08-22",
                    2652
                ],
                [
                    "2017-08-23",
                    11123
                ],
                [
                    "2017-08-24",
                    21595
                ],
                [
                    "2017-08-25",
                    22921
                ],
                [
                    "2017-08-26",
                    10870
                ],
                [
                    "2017-08-27",
                    5338
                ],
                [
                    "2017-08-28",
                    1038
                ],
                [
                    "2017-08-29",
                    19981
                ],
                [
                    "2017-08-30",
                    24996
                ],
                [
                    "2017-08-31",
                    14296
                ],
                [
                    "2017-09-01",
                    14800
                ],
                [
                    "2017-09-02",
                    16989
                ],
                [
                    "2017-09-03",
                    17092
                ],
                [
                    "2017-09-04",
                    13180
                ],
                [
                    "2017-09-05",
                    23172
                ],
                [
                    "2017-09-06",
                    9859
                ],
                [
                    "2017-09-07",
                    4999
                ],
                [
                    "2017-09-08",
                    24749
                ],
                [
                    "2017-09-09",
                    14139
                ],
                [
                    "2017-09-10",
                    23866
                ],
                [
                    "2017-09-11",
                    21149
                ],
                [
                    "2017-09-12",
                    11433
                ],
                [
                    "2017-09-13",
                    17429
                ],
                [
                    "2017-09-14",
                    5441
                ],
                [
                    "2017-09-15",
                    14057
                ],
                [
                    "2017-09-16",
                    11445
                ],
                [
                    "2017-09-17",
                    5055
                ],
                [
                    "2017-09-18",
                    6450
                ],
                [
                    "2017-09-19",
                    3009
                ],
                [
                    "2017-09-20",
                    9302
                ],
                [
                    "2017-09-21",
                    21916
                ],
                [
                    "2017-09-22",
                    22217
                ],
                [
                    "2017-09-23",
                    21651
                ],
                [
                    "2017-09-24",
                    18953
                ],
                [
                    "2017-09-25",
                    15179
                ],
                [
                    "2017-09-26",
                    15359
                ],
                [
                    "2017-09-27",
                    8288
                ],
                [
                    "2017-09-28",
                    15288
                ],
                [
                    "2017-09-29",
                    8219
                ],
                [
                    "2017-09-30",
                    16529
                ],
                [
                    "2017-10-01",
                    5748
                ],
                [
                    "2017-10-02",
                    24203
                ],
                [
                    "2017-10-03",
                    17490
                ],
                [
                    "2017-10-04",
                    16901
                ],
                [
                    "2017-10-05",
                    15250
                ],
                [
                    "2017-10-06",
                    19536
                ],
                [
                    "2017-10-07",
                    18532
                ],
                [
                    "2017-10-08",
                    23804
                ],
                [
                    "2017-10-09",
                    9336
                ],
                [
                    "2017-10-10",
                    13588
                ],
                [
                    "2017-10-11",
                    21970
                ],
                [
                    "2017-10-12",
                    7917
                ],
                [
                    "2017-10-13",
                    6455
                ],
                [
                    "2017-10-14",
                    13155
                ],
                [
                    "2017-10-15",
                    19078
                ],
                [
                    "2017-10-16",
                    24962
                ],
                [
                    "2017-10-17",
                    7614
                ],
                [
                    "2017-10-18",
                    8474
                ],
                [
                    "2017-10-19",
                    10545
                ],
                [
                    "2017-10-20",
                    6622
                ],
                [
                    "2017-10-21",
                    20105
                ],
                [
                    "2017-10-22",
                    2100
                ],
                [
                    "2017-10-23",
                    24672
                ],
                [
                    "2017-10-24",
                    2339
                ],
                [
                    "2017-10-25",
                    6974
                ],
                [
                    "2017-10-26",
                    4433
                ],
                [
                    "2017-10-27",
                    23449
                ],
                [
                    "2017-10-28",
                    2692
                ],
                [
                    "2017-10-29",
                    3950
                ],
                [
                    "2017-10-30",
                    16864
                ],
                [
                    "2017-10-31",
                    23193
                ],
                [
                    "2017-11-01",
                    9802
                ],
                [
                    "2017-11-02",
                    15430
                ],
                [
                    "2017-11-03",
                    5353
                ],
                [
                    "2017-11-04",
                    10293
                ],
                [
                    "2017-11-05",
                    19987
                ],
                [
                    "2017-11-06",
                    21028
                ],
                [
                    "2017-11-07",
                    20927
                ],
                [
                    "2017-11-08",
                    3583
                ],
                [
                    "2017-11-09",
                    2430
                ],
                [
                    "2017-11-10",
                    16010
                ],
                [
                    "2017-11-11",
                    15854
                ],
                [
                    "2017-11-12",
                    11963
                ],
                [
                    "2017-11-13",
                    20029
                ],
                [
                    "2017-11-14",
                    12994
                ],
                [
                    "2017-11-15",
                    2502
                ],
                [
                    "2017-11-16",
                    4084
                ],
                [
                    "2017-11-17",
                    14998
                ],
                [
                    "2017-11-18",
                    13942
                ],
                [
                    "2017-11-19",
                    20661
                ],
                [
                    "2017-11-20",
                    16324
                ],
                [
                    "2017-11-21",
                    24128
                ],
                [
                    "2017-11-22",
                    2323
                ],
                [
                    "2017-11-23",
                    23203
                ],
                [
                    "2017-11-24",
                    6421
                ],
                [
                    "2017-11-25",
                    5923
                ],
                [
                    "2017-11-26",
                    19617
                ],
                [
                    "2017-11-27",
                    17387
                ],
                [
                    "2017-11-28",
                    3579
                ],
                [
                    "2017-11-29",
                    9294
                ],
                [
                    "2017-11-30",
                    23082
                ],
                [
                    "2017-12-01",
                    17397
                ],
                [
                    "2017-12-02",
                    11644
                ],
                [
                    "2017-12-03",
                    16235
                ],
                [
                    "2017-12-04",
                    16652
                ],
                [
                    "2017-12-05",
                    11415
                ],
                [
                    "2017-12-06",
                    24575
                ],
                [
                    "2017-12-07",
                    18249
                ],
                [
                    "2017-12-08",
                    16201
                ],
                [
                    "2017-12-09",
                    7560
                ],
                [
                    "2017-12-10",
                    12103
                ],
                [
                    "2017-12-11",
                    9908
                ],
                [
                    "2017-12-12",
                    18899
                ],
                [
                    "2017-12-13",
                    12918
                ],
                [
                    "2017-12-14",
                    2067
                ],
                [
                    "2017-12-15",
                    5880
                ],
                [
                    "2017-12-16",
                    16732
                ],
                [
                    "2017-12-17",
                    6373
                ],
                [
                    "2017-12-18",
                    21591
                ],
                [
                    "2017-12-19",
                    7817
                ],
                [
                    "2017-12-20",
                    14852
                ],
                [
                    "2017-12-21",
                    10926
                ],
                [
                    "2017-12-22",
                    3834
                ],
                [
                    "2017-12-23",
                    13728
                ],
                [
                    "2017-12-24",
                    18065
                ],
                [
                    "2017-12-25",
                    15198
                ],
                [
                    "2017-12-26",
                    1442
                ],
                [
                    "2017-12-27",
                    10124
                ],
                [
                    "2017-12-28",
                    3560
                ],
                [
                    "2017-12-29",
                    15267
                ],
                [
                    "2017-12-30",
                    3537
                ],
                [
                    "2017-12-31",
                    20959
                ]
            ],
            "label": {
                "show": false,
                "position": "inside",
                "margin": 8
            }
        }
    ],
    "legend": [
        {
            "data": [
                ""
            ],
            "selected": {},
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14,
            "backgroundColor": "transparent",
            "borderColor": "#ccc",
            "borderWidth": 1,
            "borderRadius": 0,
            "pageButtonItemGap": 5,
            "pageButtonPosition": "end",
            "pageFormatter": "{current}/{total}",
            "pageIconColor": "#2f4554",
            "pageIconInactiveColor": "#aaa",
            "pageIconSize": 15,
            "animationDurationUpdate": 800,
            "selector": false,
            "selectorPosition": "auto",
            "selectorItemGap": 7,
            "selectorButtonGap": 10
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "enterable": false,
        "confine": false,
        "appendToBody": false,
        "transitionDuration": 0.4,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5,
        "order": "seriesAsc"
    },
    "calendar": {
        "zlevel": 0,
        "z": 2,
        "width": "auto",
        "orient": "horizontal",
        "range": "2017",
        "cellSize": 20,
        "dayLabel": {
            "show": true,
            "firstDay": 0,
            "position": "start",
            "nameMap": "cn",
            "color": "#000",
            "fontStyle": "normal",
            "fontWeight": "normal",
            "fontFamily": "sans-serif",
            "fontSize": 12
        },
        "monthLabel": {
            "show": true,
            "position": "start",
            "nameMap": "cn",
            "color": "#000",
            "fontStyle": "normal",
            "fontWeight": "normal",
            "fontFamily": "sans-serif",
            "fontSize": 12
        },
        "silent": false
    },
    "title": [
        {
            "show": true,
            "text": "Calendar-2017\u5e74\u5fae\u4fe1\u6b65\u6570\u60c5\u51b5(\u4e2d\u6587 Label)",
            "target": "blank",
            "subtarget": "blank",
            "padding": 5,
            "itemGap": 10,
            "textAlign": "auto",
            "textVerticalAlign": "auto",
            "triggerEvent": false
        }
    ],
    "visualMap": {
        "show": true,
        "type": "piecewise",
        "min": 500,
        "max": 20000,
        "inRange": {
            "color": [
                "#50a3ba",
                "#eac763",
                "#d94e5d"
            ]
        },
        "calculable": true,
        "inverse": false,
        "splitNumber": 5,
        "hoverLink": true,
        "orient": "horizontal",
        "left": "100px",
        "top": "230px",
        "padding": 5,
        "showLabel": true,
        "itemWidth": 20,
        "itemHeight": 14,
        "borderWidth": 0
    }
};
        chart_49226319491d475baee829a7ccebc77d.setOption(option_49226319491d475baee829a7ccebc77d);
    </script>
</body>
</html>

4. Source code explanation

Guess you like

Origin blog.csdn.net/m0_63324772/article/details/133042787