src/main/resources/templates/test/test2.html

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>

</head>
<body>
<div id="echart" ></div>
<script>
  window.onload = function setEchartsPie() {
        let $el = document.getElementById("echart");
        let myChart = this.echarts.init($el, '', {
            width: 300,
            height: 200,
        });
        let total =  1000;
        let option = {
            title: {
                zlevel: 0,
                text: [
                    '{value|' + total + '}',
                    '{name|总人数}',
                ].join('\n'),
                rich: {
                    value: {
                        color: '#303133',
                        fontSize: 30,
                        fontWeight: 'bold',
                        lineHeight: 30,
                    },
                    name: {
                        color: '#909399',
                        lineHeight: 10
                    },
                },
                top: 'center',
                left: '145',
                textAlign: 'center',
                textStyle: {
                    rich: {
                        value: {
                            color: '#303133',
                            fontSize: 30,
                            fontWeight: 'bold',
                            lineHeight: 30,
                        },
                        name: {
                            color: '#909399',
                            lineHeight: 10
                        },
                    },
                },
            },
            tooltip: { // 悬停指示
                trigger: 'item',
                formatter: "{b}: {c} "
            },
            series: [
后面还有 52 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。