惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
Kaspersky official blog
L
Lohrmann on Cybersecurity
T
Tenable Blog
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
Security Latest
Security Latest
V
Vulnerabilities – Threatpost
The Hacker News
The Hacker News
P
Palo Alto Networks Blog
I
Intezer
T
Threatpost
C
Cisco Blogs
A
Arctic Wolf
C
Cyber Attacks, Cyber Crime and Cyber Security
WordPress大学
WordPress大学
月光博客
月光博客
博客园 - 聂微东
Last Week in AI
Last Week in AI
V
V2EX
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Simon Willison's Weblog
Simon Willison's Weblog
T
The Exploit Database - CXSecurity.com
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
Spread Privacy
Spread Privacy
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
T
Threat Research - Cisco Blogs
博客园 - Franky
S
Schneier on Security
Know Your Adversary
Know Your Adversary
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
T
Tor Project blog
C
Cybersecurity and Infrastructure Security Agency CISA
腾讯CDC
Project Zero
Project Zero
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
量子位
The GitHub Blog
The GitHub Blog
I
InfoQ
P
Proofpoint News Feed
Cyberwarzone
Cyberwarzone
P
Privacy & Cybersecurity Law Blog
B
Blog RSS Feed

博客园 - ^Mao^

不同缩放下适配 vxe-table 3D饼图 openlayer实现给线的附近添加点,点支持移动 element-plus el-select html导出pdf openlayers增加移动功能 适配 部分页面统计用户访问时长 openlayers基本使用(街景+标注+绘制) 使用openlayer绘制街景地图 正则表达式--取对应表达式的值 vue2实现el-table-column多级效果 echarts--地图 散点图效果 echarts散点图区域设置 vant 的vant-uploader组件问题 Threejs学习 Echarts-普通地图和3D地图实现 test
echarts-雷达图
^Mao^ · 2025-05-21 · via 博客园 - ^Mao^

效果-1

代码-1

var legendData = ["车辆数"]; //图例
var indicator = [
  {
    text: "小型车",
    max: 6000,
  },
  {
    text: "中型车",
    max: 5000,
  },
  {
    text: "大型车",
    max: 5000,
  },
  {
    text: "货车",
    max: 5000,
  },
  {
    text: "特种车",
    max: 5000,
  },
  {
    text: "贵宾车",
    max: 5000,
  },
  {
    text: "特种车",
    max: 5000,
  },
  {
    text: "贵宾车",
    max: 5000,
  },
];
var dataArr = [
  {
    value: [4000, 700, 3600, 3900, 1800, 4200, 700, 3600],
    name: legendData[0],
    itemStyle: {
      normal: {
        lineStyle: {
          color: "#55d7f2",
        },
        // shadowColor: '#4A99FF',
        // shadowBlur: 10,
      },
    },
    areaStyle: {
      normal: {
        // 单项区域填充样式
        color: {
          type: "linear",
          x: 1, //右
          y: 0, //下
          x2: 1, //左
          y2: 1, //上
          colorStops: [
            {
              offset: 0,
              color: "#4A99FF",
            },
            {
              offset: 1,
              color: "rgba(0,0,0,0)",
            },
          ],
          globalCoord: false,
        },
        opacity: 1, // 区域透明度
      },
    },
  },
];
var colorArr = ["#55d7f2", "#4BFFFC"]; //颜色
option = {
  backgroundColor: "#101736",
  color: colorArr,
  legend: {
    orient: "vertical",
    // icon: 'circle', //图例形状
    data: legendData,
    top: 20,
    left: 20,
    itemWidth: 8, // 图例标记的图形宽度。[ default: 25 ]
    itemHeight: 8, // 图例标记的图形高度。[ default: 14 ]
    itemGap: 22, // 图例每项之间的间隔。[ default: 10 ]横向布局时为水平间隔,纵向布局时为纵向间隔。
    textStyle: {
      fontSize: 16,
      fontWeight: "bold",
      color: "#00E4FF",
    },
  },
  radar: {
    // shape: 'circle',
    name: {
      textStyle: {
        color: "#fff",
        fontSize: 16,
      },
    },
    indicator: indicator,
    splitArea: {
      // 坐标轴在 grid 区域中的分隔区域,默认不显示。
      show: true,
      areaStyle: {
        // 分隔区域的样式设置。
        color: ["rgba(255,255,255,0)", "rgba(255,255,255,0)"], // 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
      },
    },
    axisLine: {
      //指向外圈文本的分隔线样式
      lineStyle: {
        color: "#153269",
      },
    },
    splitLine: {
      lineStyle: {
        color: "#2b75d2", // 分隔线颜色
        width: 2, // 分隔线线宽
      },
    },
  },
  series: [
    {
      type: "radar",
      symbolSize: 8,
      symbol: "circle",
      data: dataArr,
    },
  ],
};

效果-2

代码-2

var legendData = ['高一(1)班', '高一(2)班']; //图例

var indicator = [{
        text: '二面角的定义',
        max: 30,
    },
    {
        text: '正棱锥的定义',
        max: 30
    },
    {
        text: '二面角的面',
        max: 30
    },
    {
        text: '直二面角',
        max: 30,
        //  axisLabel: {show: true, textStyle: {fontSize: 18, color: '#333'}}
    },
    {
        text: '棱锥的定义',
        max: 30
    },
    {
        text: '棱锥的性质',
        max: 30
    }
    
];
var dataArr = [{
        value: [28, 12, 17 ,18, 10, 12],
        name: legendData[0],
        itemStyle: {
            normal: {
                lineStyle: {
                    color: '#4A99FF',
                    // shadowColor: '#4A99FF',
                    // shadowBlur: 10,
                },
                shadowColor: '#4A99FF',
                shadowBlur: 10,
            },
        },
        areaStyle: {
                normal: { // 单项区域填充样式
                    color: {
                        type: 'linear',
                        x: 0, //右
                        y: 0, //下
                        x2: 1, //左
                        y2: 1, //上
                        colorStops: [{
                            offset: 0,
                            color: '#4A99FF'
                        }, {
                            offset: 0.5,
                            color: 'rgba(0,0,0,0)'
                        }, {
                            offset: 1,
                            color: '#4A99FF'
                        }],
                        globalCoord: false
                    },
                    opacity: 1 // 区域透明度
                }
            }
    },
    {
        value: [6, 11, 15, 14, 20, 16],
        name: legendData[1],
        itemStyle: {
            normal: {
                lineStyle: {
                    color: '#4BFFFC',
                    // shadowColor: '#4BFFFC',
                    // shadowBlur: 10,
                },
                shadowColor: '#4BFFFC',
                shadowBlur: 10,
            },
        },
         areaStyle: {
                normal: { // 单项区域填充样式
                    color: {
                        type: 'linear',
                        x: 0, //右
                        y: 0, //下
                        x2: 1, //左
                        y2: 1, //上
                        colorStops: [{
                            offset: 0,
                            color: '#4BFFFC'
                        }, {
                            offset: 0.5,
                            color: 'rgba(0,0,0,0)'
                        }, {
                            offset: 1,
                            color: '#4BFFFC'
                        }],
                        globalCoord: false
                    },
                    opacity: 1 // 区域透明度
                }
            }
    }
];
var colorArr = ['#4A99FF', '#4BFFFC']; //颜色
option = {
    backgroundColor: '#101736',
    title: {
        show: false,
        text: "数学薄弱知识点分析",
        x: "4%",

        textStyle: {
            color: '#fff',
            fontSize: '22'
        },
        subtextStyle: {
            color: '#90979c',
            fontSize: '16',

        },
    },
    color: colorArr,
    legend: {
        orient:'vertical',
        icon: 'circle', //图例形状
        data: legendData,
        bottom:35,
        right:40,
        itemWidth: 14, // 图例标记的图形宽度。[ default: 25 ]
        itemHeight: 14, // 图例标记的图形高度。[ default: 14 ]
        itemGap: 21, // 图例每项之间的间隔。[ default: 10 ]横向布局时为水平间隔,纵向布局时为纵向间隔。
        textStyle: {
            fontSize: 14,
            color: '#00E4FF',
        },
    },
    radar: {
        // shape: 'circle',
        name: {
            textStyle: {
                color: '#fff',
                fontSize: 16
            },
        },
        indicator: indicator,
        splitArea: { // 坐标轴在 grid 区域中的分隔区域,默认不显示。
            show: true,
            areaStyle: { // 分隔区域的样式设置。
                color: ['rgba(255,255,255,0)', 'rgba(255,255,255,0)'], // 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
            }
        },
        axisLine: { //指向外圈文本的分隔线样式
            lineStyle: {
                color: '#153269'
            }
        },
        splitLine: {
            lineStyle: {
                color: '#113865', // 分隔线颜色
                width: 1, // 分隔线线宽
            }
        },
    },
    series: [{
        type: 'radar',
        symbolSize: 8,
        // symbol: 'angle',
        data: dataArr
    }]
};