zoukankan      html  css  js  c++  java
  • 雷达图暂无数据

    var option = {
                        title: {
                            show: Object.keys(radar).length === 0,
                            // show: Object.keys(this.quanguoData).length === 0,
                            text: '暂无数据' ,
                            x: 'center' ,
                            y: 'center' ,
                            textStyle: {
                                color: '#bcbcbc',
                                fontWeight: 600,
                                fontSize:  16
                            }
                        },
                        tooltip: {
                            trigger: 'item',
                        },
                        legend: {
                            orient: 'vertical',
                            left: '80%',
                            bottom: '20%',
                            itemWidth: 8,  // 设置宽度
                            itemHeight: 8,
                            textStyle: {
                                color: '#B2D2E3'
                            },
                            data: ['本地值', '网络值'],
                        },
                        radar: [
                            {
                                indicator: radar.length == 0 ? [{}] : radar,     //indicator必须是数组的空对象
    // indicator: this.radarData,  name: { formatter: '{value}', textStyle: { color: '#B2D2E3' // 文字颜色  } }, radius: 80 } ], series: [ { type: 'radar', areaStyle: {}, data: [ { name: '本地值', value: bend, // value: this.bendiData,  itemStyle: { normal: { color: "rgba(244, 94, 35, 0.8)", opacity: 0.2, } }, }, { name: '网络值', value: quan, // value: this.quanguoData,  itemStyle: { normal: { color: "rgba(34, 143, 254, 1)", } }, } ] } ] }; this.netWorkEc.setOption(option)
  • 相关阅读:
    Lambda表达式的演变
    反射小例
    进程外Session
    页面缓存的几种方式
    数据缓存的几种方式
    Session
    Cookie
    AJAX学习
    验证码的实现
    ASP.NET动态显示数据的两种方式
  • 原文地址:https://www.cnblogs.com/xhrr/p/12620049.html
Copyright © 2011-2022 走看看