前端笔记:可视化大屏

本文探讨了数据可视化的价值,特别是在科技、投资和企业中的应用。展示了作者使用ECharts创建的可视化大屏截图,并列举了多种可视化图形类型。同时,介绍了包括ECharts在内的多种可视化工具,覆盖客户端、Web、脚本和拖曳生成等多种方式,适合不同需求和场景。
摘要由CSDN通过智能技术生成

数据可视化,可以让我们的眼睛对数据有一个更加直观的感知。而可视化大屏,更会给人带来一种高大上的、酷炫的、有科技感的感觉。尤其是在科技行业、投资行业、上市企业,可视化大屏用得比较多。下图是我制作的一份可视化大屏截图。前端合成代码如下:

在这里插入图片描述

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>可视化大屏</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts-wordcloud.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts-liquidfill.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/maps/guangdong.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/maps/china.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery-ui.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/ResizeSensor.js"></script>

            <link rel="stylesheet"  href="https://assets.pyecharts.org/assets/jquery-ui.css">

</head>
<body>
    <style>.box {
       }; </style>
        
    <div class="box">
                <div id="72707bb40d3445259eb798969800df64" class="chart-container" style="position: absolute; width: 456px; height: 500px; top: 31px; left: 8px;"></div>
    <script>
        var chart_72707bb40d3445259eb798969800df64 = echarts.init(
            document.getElementById('72707bb40d3445259eb798969800df64'), 'white', {
     renderer: 'canvas'});
        var option_72707bb40d3445259eb798969800df64 = {
     
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
     
            "type": "bar",
            "name": "\u7545\u9500\u54c1",
            "legendHoverLink": true,
            "data": [
                10,
                13,
                17,
                22,
                29,
                38,
                49,
                64,
                83,
                108,
                140,
                182,
                237,
                308,
                400,
                520,
                676,
                879,
                1143,
                1486
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
     
                "show": true,
                "position": "right",
                "margin": 8
            },
            "markPoint": {
     
                "symbolSize": 80,
                "label": {
     
                    "show": true,
                    "position": "inside",
                    "color": "#fff",
                    "margin": 8
                },
                "data": [
                    {
     
                        "type": "average"
                    },
                    {
     
                        "type": "max"
                    },
                    {
     
                        "type": "min"
                    }
                ]
            },
            "rippleEffect": {
     
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    "legend": [
        {
     
            "data": [
                "\u7545\u9500\u54c1"
            ],
            "selected": {
     
                "\u7545\u9500\u54c1": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
     
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
     
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
     
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "xAxis": [
        {
     
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
     
                "show": false,
                "lineStyle": {
     
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "yAxis": [
        {
     
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
     
                "show": false,
                "lineStyle": {
     
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": [
                "\u56fe\u4e66",
                "\u6bdb\u5dfe",
                "\u6212\u6307",
                "\u8033\u73af",
                "\u9879\u94fe",
                "\u7535\u98ce\u6247",
                "\u7fbd\u7ed2\u670d",
                "\u70ed\u6c34\u5668",
                "\u80cc\u5305",
                "\u6d17\u8863\u6db2",
                "\u7eb8\u5dfe",
                "\u7535\u8111",
                "\u624b\u673a",
                "\u997c\u5e72",
                "\u87ba\u72ee\u7c89",
                "\u7259\u818f",
                "\u889c\u5b50",
                "\u5927\u8863",
                "T\u6064",
                "\u6d17\u9762\u5976"
            ]
        }
    ],
    "title": [
        {
     
            "text": "TOP20\u5546\u54c1\u7545\u9500\u5ea6\u5bf9\u6bd4(\u4e07\u5143)",
            "subtext": "2021\u5e7411\u670811\u65e5",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_72707bb40d3445259eb798969800df64.setOption(option_72707bb40d3445259eb798969800df64);
</script>
<br/>                <div id="1e124c0e04564c91bd04fe0a05fc2741" class="chart-container" style="position: absolute; width: 535px; height: 250px; top: 30px; left: 885px;"></div>
    <script>
        var chart_1e124c0e04564c91bd04fe0a05fc2741 = echarts.init(
            document.getElementById('1e124c0e04564c91bd04fe0a05fc2741'), 'white', {
     renderer: 'canvas'});
        var option_1e124c0e04564c91bd04fe0a05fc2741 = {
     
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
     
            "type": "pie",
            "name": "\u54c8\u4f5b\u5728\u7b49\u6211\u5462~",
            "clockwise": true,
            "data": [
                {
     
                    "name": "\u9996\u9970",
                    "value": 16
                },
                {
     
                    "name": "\u670d\u9970",
                    "value": 12
                },
                {
     
                    "name": "\u5316\u5986\u54c1",
                    "value": 9
                },
                {
     
                    "name": "\u98df\u54c1",
                    "value": 8
                },
                {
     
                    "name": "\u5bb6\u5c45",
                    "value": 7
                },
                {
     
                    "name": "\u6570\u7801",
                    "value": 5
                },
                {
     
                    "name": "\u65e5\u7528",
                    "value": 4
                },
                {
     
                    "name": "\u751f\u9c9c",
                    "value": 3
                },
                {
     
                    "name": "\u6bcd\u5a74",
                    "value": 1
                }
            ],
            "radius": [
                "25%",
                "80%"
            ],
            "center": [
                "45%",
                "60%"
            ],
            "roseType": "radius",
            "label": {
     
                "show": true,
                "position": "top",
                "margin": 8,
                "formatter": "{b}: {d}%"
            },
            "rippleEffect": {
     
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    "legend": [
        {
     
            "data": [
                "\u9996\u9970",
                "\u670d\u9970",
                "\u5316\u5986\u54c1",
                "\u98df\u54c1",
                "\u5bb6\u5c45",
                "\u6570\u7801",
                "\u65e5\u7528",
                "\u751f\u9c9c",
                "\u6bcd\u5a74"
            ],
            "selected": {
     },
            "show": true,
            "left": "80%",
            "top": "10%",
            "orient": "vertical",
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
     
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
     
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
     
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "title": [
        {
     
            "text": "\u5404\u7c7b\u76eeGMV\u8d21\u732e\u5360\u6bd4",
            "subtext": "2021\u5e7411\u670811\u65e5",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_1e124c0e04564c91bd04fe0a05fc2741.setOption(option_1e124c0e04564c91bd04fe0a05fc2741);
</script>
<br/>                <div id="551ba174dcf64c57876d2e339890e4c8" class="chart-container" style="position: absolute; width: 415px; height: 250px; top: 33px; left: 1423px;"></div>
    <script>
        var chart_551ba174dcf64c57876d2e339890e4c8 = echarts.
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值