美文网首页
EChartsjs怎么显示暂无数据

EChartsjs怎么显示暂无数据

作者: 野马关 | 来源:发表于2020-04-28 16:29 被阅读0次

    在option中判断所用数据的长度,以数组为例

    title: [{

                text: '钱',

                left: '2%',

                top: '1%',

                textStyle: {

                    fontSize: 16,

                    fontWeight: 550,

                    color: '#6decff'

                }

            }, {

                show: moneys.length > 0 ? false : true,

                subtext: '暂无数据',

                subtextStyle: {

                    color:'#bbb',

                    fontWeight:350,

                    fontSize: 25

                },

                left:'40%',

                top: '40%'

            }]

    相关文章

      网友评论

          本文标题:EChartsjs怎么显示暂无数据

          本文链接:https://www.haomeiwen.com/subject/ndcbwhtx.html