代码实现

option = {backgroundColor: '#080b30',tooltip: {trigger: 'axis',axisPointer: {lineStyle: {color: {type: 'linear',x: 0,y: 0,x2: 0,y2: 1,colorStops: [{offset: 0,color: 'rgba(0, 255, 233,0)'}, {offset: 0.5,color: 'rgba(255, 255, 255,1)',}, {offset: 1,color: 'rgba(0, 255, 233,0)'}],global: false}},},},legend: {data: ['趋势'],itemHeight  :10,textStyle: {color: 'white'},icon: 'circle',right:0,},grid: {top: '15%',left: '5%',right: '5%',bottom: '15%',containLabel: true},xAxis: [{type: 'category',axisLine: {show: false},axisTick: {show: false,},splitArea: {color: '#f00',lineStyle: {color: '#f00'},},axisLabel: {color: '#fff'},splitLine: {show: false},boundaryGap: false,data: ['1', '2', '3', '4', '5', '6','7','8','9','10','11', '12', '13', '14', '15', '16','17','18','19','20','21', '22', '23', '24', '25', '26','27','28','29','30','31'],}],yAxis: [{type: 'value',splitNumber: 4,splitLine: {show: true,lineStyle: {color: 'rgba(255,255,255,0.1)'}},axisLine: {show: true,},axisLabel: {show: true,textStyle: {color: 'white',},},axisTick: {show: false,},}],series: [{name: '趋势',type: 'line',smooth: true, //是否平滑symbol: 'none',lineStyle: {normal: {color: "#fa517a",shadowColor: 'rgba(0, 0, 0, .3)',shadowBlur: 0,shadowOffsetY: 5,shadowOffsetX: 5,},},label: {show: false,position: 'top',textStyle: {color: '#00ca95',}},itemStyle: {color: "#f9527d",borderColor: "#fff",borderWidth: 3,shadowColor: 'rgba(0, 0, 0, .3)',shadowBlur: 0,shadowOffsetY: 2,shadowOffsetX: 2,show:false,},tooltip: {show: true},areaStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: 'rgba(250,81,122,0.3)'},{offset: 1,color: 'rgba(250,81,122,0)'}], false),shadowColor: 'rgba(250,81,122,0.1)',shadowBlur: 20}},data: [632 ,760, 980, 911, 922, 857, 712, 660, 999, 731,768 ,964, 888, 596, 423, 776, 992, 574, 629, 922, 857,672, 757, 658, 885, 760, 679, 813, 645, 988, 802],},]
};

Echart常用效果(一)相关推荐

  1. js常用效果代码封装

    我们在工作中经常需要写很多效果或方法,但是有些效果和方法我们都已经写过无数次了,因此我们会把这些代码给封闭起来,以便以后使用,以下就是我个人在工作中整理出的一些常用代码,以后会不定期更新. 1.时间格 ...

  2. 【UnityShader】常用效果内外发光、 描边

    这篇博客记录一下常用的几种效果:内发光.外发光以及描边的几种实现方法 内发光 实现方法 一般实现方法就是使用Empricial菲涅尔近似公式来实现: F (v,n)=saturate(base + p ...

  3. Echarts饼图常用效果

    基本实现 <!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8 ...

  4. 前端常用效果(2)带效果的tab切换

    先上效果, 代码引用了jquery的框架 复制代码 功能实现比较简单,代码如下所示: html代码如下 <div class='tabchouse'> <!--设置元素位置--> ...

  5. jQuery 常用效果

    hide和show 同样有 fadeInhe fadeOut 的功能 $(document).ready(function(){$("#hide").click(function( ...

  6. java 银行卡号格式化_JS银行卡号格式化 - JavaScript常用效果 - Front-End - NalanXue's Blog...

    最近微站中有个需求,用户在输入银行卡号时,需要以4位4位的形式显示,就是每隔4位加个空格,方便用户校对输入的银行卡是否正确,这也算是提高用户体验吧. 主要用了正则匹配和字符串的替换方法replace. ...

  7. 前端常用效果(3)带动画的比较型柱状图

    先上效果, 代码引用了jquery的框架 复制代码 在项目中我们经常会遇到需要用图的形式展示数据,数据不是很多,用插件感觉没必要,而且有时候我们需要一些自定义的功能来展示,而这些功能可能是插件没有的, ...

  8. div常用效果方法-transform

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  9. 用js做购物界面的常用效果

    文章目录 1.实现导航栏中"下载App",和"购物车",的下拉效果 效果展示: 代码展示: 2.实现侧边导航栏中商品显示效果 效果展示: 代码展示: 3.轮播图 ...

最新文章

  1. CSS Float(浮动)
  2. 分享一套超棒的iOS “空状态” (empty state) 界面UI设计
  3. Nebula3的Input系统
  4. sklearn onehot
  5. 元宇宙iwemeta: 北交所开创,资本市场服务创新型中小企业掀开新篇章,上市企业小盘点
  6. Python函数(2)
  7. 你真敢ZAO吗?解读换脸AI “细思极恐” 的用户协议
  8. 大数据WEB阶段 TransientDateAccessResourceException
  9. ODBC学习(一)基本理论
  10. There is no configured/running web-servers found! Please, run any web-configuration and hit the Refr
  11. Airflow安装与使用
  12. Linux作者批评英特尔指令集,英特尔回应 Linus Torvalds 对 AVX512 的批评
  13. matlab算法大全 pdf_遗传模拟退火算法求解旅行商(TSP)问题
  14. flutter 拖拽布局_使用Flutter模仿SOUL可任意拖动的悬浮按钮
  15. 拓端tecdat|互联网行业各大岗位分析,全是干货,不看你就OUT了
  16. imageio.write页面怎么显示_微信吃喝玩乐怎么没有了?微信支付页面吃喝玩乐在哪里...
  17. 在幼儿园实施亲自然生态教育的思考
  18. 手把手教您编写第一个单片机程序
  19. 读书有益——》小朋友的诗(一)
  20. 软件检测报告可用于即征即退政策

热门文章

  1. @transaction 提交事务_Kafka 事务实现原理
  2. zend怎么保存php,Zend Framework页面缓存实例
  3. java同步锁售票_Java基础学习笔记: 多线程,线程池,同步锁(Lock,synchronized )(Thread类,ExecutorService ,Future类)(卖火车票案例)...
  4. 抗原试剂盒也卷起来了,我的塑料袋不会影响房价吧?
  5. Linux 实时查看日志文件的 4 种方法
  6. Spring Boot 2.x基础教程:默认数据源Hikari的配置详解
  7. Spring 体系常用项目一览
  8. 2的1000 次是超出python表示范围的整数。_第4卷讲解Python语言计算机等级考试二级操作题...
  9. 自考计算机和行政管理哪个好考,自考行政管理好考吗?自考行政管理都考哪些科目?...
  10. css样式脱离标准文档流