当前位置: 首页 > news >正文

echarts插件-liquidFill(水球图)

echarts插件-liquidFill(水球图)

    • 1.下载
    • 2.引入:
    • 3.使用

在这里插入图片描述

1.下载

echarts.js下载:https://cdnjs.com/libraries/echarts
echarts-liquidfill.js下载:https://github.com/ecomfe/echarts-liquidfill

2.引入:

<script src='echarts.js'></script>
<script src='echarts-liquidfill.js'></script>

3.使用

 option = {series: [{type: 'liquidFill',amplitude: -10,//水面振幅waveAnimation: true,//静止水面// color:['#0460CA'],//设置波颜色,radius: '85%',outline: {//最外层边框设置sshow: true,borderDistance: 5,//最外层挨着的白色区域itemStyle: {color: 'none',borderColor: '#0460CA',//外边框颜色borderWidth: 3,//最外层宽度shadowBlur: 20,shadowColor: 'rgba(0, 0, 0, 0.25)'}},backgroundStyle: {color: '#ffffff',       // 内部球背景颜色borderWidth: 2,         // 内部球边框宽度borderColor: '#e3e3e3'  // 内部球边框颜色},shape: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow' 或者 svg路径data: [{value:0.5,itemStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,//0%时的颜色 从上往下看 最上面是0%color: '#7DB6F7'}, {offset: 1,//100%时的颜色 从上往下看 最上面是0%color: '#015FC9'}],),}}},],label: {position: ['50%', '36%'],formatter: function(params) {//自定义样式console.log(params,222);return '当月xxx' +'\n\n' +'{value|'+params.data.value+'}'+'  m³';},fontSize: 16,color: '#666666',rich: { //特定样式value: {fontSize: 23, fontWeight: 'bolder',color: '#000000',},},}}]};
http://www.lryc.cn/news/205590.html

相关文章:

  • c++ vscode cmake debug for mac
  • 17 结构型模式-享元模式
  • 创建Secret(手动)
  • 基于PHP的线上购物商城,MySQL数据库,PHPstudy,原生PHP,前台用户+后台管理,完美运行,有一万五千字论文。
  • Lua 事件触发机制(注册,触发)
  • c++ 并发与多线程(12)线程安全的单例模式-1
  • Python学习笔记--迭代
  • idea免费插件分享
  • Pytorch使用torch.utils.data.random_split拆分数据集,拆分后的数据集状况
  • 每日一练 | 华为认证真题练习Day122
  • SQL sever中函数(2)
  • win10专业版驱动开发
  • 【JavaEE】网络编程---TCP数据报套接字编程
  • 用 Go 访问 MySql 数据库
  • mac 升级node到指定版本
  • 欢迎进QQ群讨论交流
  • C语言解决八皇后问题
  • springboot集成canal,将数据发送至接口
  • Selenum八种常用定位(案例解析)
  • Web前端接入Microsoft Azure AI文本翻译
  • 容联七陌助力鱼跃医疗升级智能联络中心,让客户服务更“鱼跃”
  • 【Redis系列】在Centos7上安装Redis5.0保姆级教程!
  • 线性代数-Python-03:矩阵的变换 - 手写Matrix Transformation及numpy中的用法
  • 【单片机基础】按键状态机实现短按、长按、双击、三击和N击
  • Ubuntu虚拟机部署OpenStack
  • ES在企业项目中的实战总结,彻底掌握ES的使用
  • QT的Qporcess功能的使用
  • 【图灵诸葛】jvm笔记
  • 数据安全小课堂开讲啦!看这里!
  • 单片机矩阵键盘