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

网站建设广州天河做亚马逊跨境电商赚钱吗

网站建设广州天河,做亚马逊跨境电商赚钱吗,女同性怎么做的视频网站,高端网站设计有哪些前言:我是自己最近写项目用到的,我做个整理; 一. 基本使用 1.具有大小(宽高)的div ,id唯一; 例如: div idcrewEchart/div 2.在项目中引入: import * as echarts from echarts; 3.写一个关于他的方法,在mounted的时候调用: moun…前言:我是自己最近写项目用到的,我做个整理; 一. 基本使用 1.具有大小(宽高)的div ,id唯一; 例如: div idcrewEchart/div 2.在项目中引入: import * as echarts from echarts; 3.写一个关于他的方法,在mounted的时候调用: mounted() {this.setEcharts()//你自己起一个功能相关的名字就行;} 4.在methods中写他的配置项: methods:{setWarnEcharts(){}, } 二.配置项 以折线图为例: 1.图: 2.代码:  methods:{setWarnEcharts(){let xLabel [9:00, 10:00, 11:00, 12:00, 13:00, 14:00, 15:00, 16:00, 17:00] let online [180, 203, 198, 190, 198, 201, 190, 198, 190] let sum [200, 210, 215, 204, 210, 209, 210, 215, 204,]option {title: {text: 设备数量(单位:台),top: 10,right: 4%,bottom: 2%,textStyle: {color: #0099FF,fontSize: 12,fontFamily: Microsoft YaHei}},grid: {top: 50,left: 6%,right: 5%,bottom: 8%,containLabel: true},tooltip: {trigger: axis,backgroundColor:transparent,axisPointer: {lineStyle: {type: solid,width: 3,color: {type: linear,x: 0,y: 0,x2: 0,y2: 1,colorStops: [{offset: 0,color: rgba(126,199,255,0) // 0% 处的颜色}, {offset: 0.5,color: rgba(126,199,255,1) // 100% 处的颜色}, {offset: 1,color: rgba(126,199,255,0) // 100% 处的颜色}],global: false // 缺省为 false}},},formatter: (p) {let dom div stylewidth: 100px;height: 50px;;color:#fff;position: relative;svg styleposition: absolute;top: 50%;left: 50%;transform: translateX(-50%) translateY(-50%); classsvg xmlnshttp://www.w3.org/2000/svg width100 height71 viewBox0 0 84 55defsstyle.cls-1 {fill: #07172c;fill-opacity: 0.8;stroke: #a7d8ff;stroke-linejoin: round;stroke-opacity: 0.2;stroke-width: 1px;fill-rule: evenodd;}/style/defspath id矩形_419 data-name矩形 419 classcls-1 dM266,595h74v50H266V624.046L261,620l5-3.984V595Ztransformtranslate(-258.5 -592.5) //svgdiv stylepadding: 4px 8px 4px 14px;display: flex;justify-content: center;align-items: center;flex-direction: column;position: relative;z-index: 1;div stylemargin-bottom: 4px;width:100%;display:${p[0]?flex:none};justify-content:space-between;align-items:center;span stylefont-size:14px;color:#7ec7ff;${p[0]?p[0].seriesName:}/spanspan stylefont-size:14px;color:#fff;${p[0]?p[0].data:}/span/divdiv stylewidth:100%;height:100%;display:${p[1]?flex:none};justify-content:space-between;align-items:center;span stylefont-size:14px;color:#7ec7ff;${p[1]?p[1].seriesName:}/spanspan stylefont-size:14px;color:#fff;${p[1]?p[1].data:}/span/div/div/divreturn dom}},xAxis: [{type: category,boundaryGap: false,axisLine: { //坐标轴轴线相关设置。数学上的x轴lineStyle: {color: #0099FF},},axisLabel: { //坐标轴刻度标签的相关设置textStyle: {show: true,color: #DBDBDB,padding: 16,fontSize: 14},formatter: function(data) {return data}},splitLine: {show: true,lineStyle: {color: #192a44},},axisTick: {show: true,inside: true},data: xLabel}],yAxis: [{//name: 数量,nameTextStyle: {color: #7ec7ff,fontSize: 16,padding: 10},min: 0,splitLine: {show: false,lineStyle: {color: #2AF4F7},},axisLine: {show: true,lineStyle: {color: #0099FF},},axisLabel: {show: true,textStyle: {color: #DBDBDB,padding: 16},formatter: function(value) {if (value 0) {return value}return value}},axisTick: {show: false,},}],series: [{name: 在线,type: line,symbol: circle, showAllSymbol: true,symbolSize: 8,smooth: true,lineStyle: {normal: {width: 1,color: rgba(10,219,250,1), // 线条颜色},//borderColor: rgba(0,0,0,.4),},itemStyle: {color: rgba(25,163,223,1),borderColor: #646ace,borderWidth: 0},tooltip: {show: true},areaStyle: { //区域填充样式normal: {//线性渐变前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’则该四个值是绝对像素位置。color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: rgba(50,228,228,0.3)},{offset: 1,color: rgba(50,228,228,0)}], false),shadowColor: rgba(25,163,223,0.5), //阴影颜色shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。}},data: online}, {name: 总数,type: line,symbol: circle, showAllSymbol: true,symbolSize: 8,smooth: true,lineStyle: {normal: {width: 1,color: #19a3df, // 线条颜色},borderColor: rgba(0,0,0,.4),},itemStyle: {color: rgba(10,219,250,1),borderColor: #646ace,borderWidth: 0},tooltip: {show: true},areaStyle: { //区域填充样式normal: {stack: true,//线性渐变前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’则该四个值是绝对像素位置。color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: rgba(10,810,224,0.1)},{offset: 1,color: rgba(10,810,224,0)}], false),shadowColor: rgba(10,219,250, 0.5), //阴影颜色shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。}},data: sum}] };let len 0 setInterval((){if(len xLabel.length){len 0}myChart.dispatchAction({type: showTip,seriesIndex: 0,dataIndex: len,})len }, 1000)}, } 三.单项介绍 1.以上图为例,简单介绍几个修改echarts的方法 主要是通过修改option来调整echarts图 1.修改标题: title: {text: 设备数量(单位:台),//修改文字内容top: 10,//文字位置right: 4%,bottom: 2%,textStyle: {//文字样式color: #0099FF,//文字颜色fontSize: 12,//文字大小fontFamily: Microsoft YaHei//文字字体}}, 2.grid网格 grid: {//这个是调整echarts图片整体的位置top: 50,//距离上面多少left: 6%,//左边right: 5%,//右边bottom: 8%,//下面containLabel: true,//我不知道这个}, 3.tooltip提示信息 tooltip: {//提示信息,当鼠标放在图表上展示的内容,红框选中部分trigger: axis,backgroundColor:red,axisPointer: {lineStyle: {//线的样式,绿框选中部分type: solid,width: 3,color: {type: linear,x: 0,y: 0,x2: 0,y2: 1,colorStops: [{offset: 0,color: rgba(126,199,255,0) // 0% 处的颜色}, {offset: 0.5,color: rgba(126,199,255,1) // 100% 处的颜色}, {offset: 1,color: rgba(126,199,255,0) // 100% 处的颜色}],global: false // 缺省为 false}},},formatter: (p) {//这个可以用来自定义let dom div stylewidth: 100px;height: 50px;;color:#fff;position: relative;svg styleposition: absolute;top: 50%;left: 50%;transform: translateX(-50%) translateY(-50%); classsvg xmlnshttp://www.w3.org/2000/svg width100 height71 viewBox0 0 84 55defsstyle.cls-1 {fill: #07172c;fill-opacity: 0.8;stroke: #a7d8ff;stroke-linejoin: round;stroke-opacity: 0.2;stroke-width: 1px;fill-rule: evenodd;}/style/defspath id矩形_419 data-name矩形 419 classcls-1 dM266,595h74v50H266V624.046L261,620l5-3.984V595Ztransformtranslate(-258.5 -592.5) //svgdiv stylepadding: 4px 8px 4px 14px;display: flex;justify-content: center;align-items: center;flex-direction: column;position: relative;z-index: 1;div stylemargin-bottom: 4px;width:100%;display:${p[0]?flex:none};justify-content:space-between;align-items:center;span stylefont-size:14px;color:#7ec7ff;${p[0]?p[0].seriesName:}/spanspan stylefont-size:14px;color:#fff;${p[0]?p[0].data:}/span/divdiv stylewidth:100%;height:100%;display:${p[1]?flex:none};justify-content:space-between;align-items:center;span stylefont-size:14px;color:#7ec7ff;${p[1]?p[1].seriesName:}/spanspan stylefont-size:14px;color:#fff;${p[1]?p[1].data:}/span/div/div/divreturn dom}}, 4.x轴设置: xAxis xAxis: [{type: category,boundaryGap: false,axisLine: { //坐标轴轴线相关设置。数学上的x轴lineStyle: {color: red,//x轴线的颜色},},axisLabel: { //坐标轴刻度标签的相关设置textStyle: {//x轴文字的样式设置show: true,color: red,//x轴文字的颜色padding: 16,fontSize: 14},formatter: function(data) {return data}},splitLine: {show: true,lineStyle: {color: red,//竖线颜色},},axisTick: {show: true,inside: true},data: xLabel,//x轴数据}], 5.y轴设置:yAxis yAxis: [{name: 数量,//y轴名字nameTextStyle: {//y轴文字样式设置color: #7ec7ff,fontSize: 16,padding: 10},min: 10,//y轴的最小值splitLine: {show: false,lineStyle: {color: #2AF4F7},},axisLine: {//y轴线的颜色show: true,lineStyle: {color: #0099FF},},axisLabel: {show: true,textStyle: {color: green,//y轴文字的颜色padding: 16},formatter: function(value) {//这里可以自定义,对y轴数据进行处理if (value 0) {return value}return value}},axisTick: {show: false,},}], 6.series 主要是调整他,折线图 饼图 等等,上面设置了横纵坐标,接下来设置内容... series: [{//一个{}表示第一条数据name: 在线1111,type: line,symbol: circle, showAllSymbol: true,symbolSize: 8,smooth: true,lineStyle: {normal: {width: 1,color: red, // 线条颜色},//borderColor: rgba(0,0,0,.4),},itemStyle: {color: yellow,borderColor: #646ace,borderWidth: 0},tooltip: {show: true},areaStyle: { //区域填充样式normal: {//线性渐变前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’则该四个值是绝对像素位置。color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: rgba(50,228,228,0.3)},{offset: 1,color: rgba(50,228,228,0)}], false),shadowColor: rgba(25,163,223,0.5), //阴影颜色shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。}},data: online}, {name: 总数2222,type: line,symbol: circle, showAllSymbol: true,symbolSize: 8,smooth: true,lineStyle: {normal: {width: 1,color: #19a3df, // 线条颜色},borderColor: rgba(0,0,0,.4),},itemStyle: {color: rgba(10,219,250,1),borderColor: #646ace,borderWidth: 0},tooltip: {show: true},areaStyle: { //区域填充样式normal: {stack: true,//线性渐变前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’则该四个值是绝对像素位置。color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: rgba(10,810,224,0.1)},{offset: 1,color: rgba(10,810,224,0)}], false),shadowColor: rgba(10,219,250, 0.5), //阴影颜色shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。}},data: sum}] 7.还有饼图的两个属性 radius和 center let datas [{name: 出租居住,value: 1,},{name: 自营,value: 2,},{name: 出租经营,value: 3,},{name: 合作入股,value: 4,},];var option {color: [#F56463, #00C6FF, #F09615, #0079E6],legend: {itemHeight: 14,itemWidth: 14,icon: rect,orient: vertical,top: center,right: 5%,textStyle: {align: left,color: #,verticalAlign: middle,rich: {name: {width:80, fontSize: 16,},value: { width:20, align:right,fontFamily: Medium,fontSize: 16,},rate: {width:10,align:right,fontSize: 16,},},},data: datas,formatter: (name) {if (datas.length) {const item datas.filter((item) item.name name)[0];return {name|${name}}{value| ${item.value}} {rate| 宗};}},},tooltip: {trigger: item,formatter: {d}%,},series: [{name: ,type: pie,radius: [30%, 80%],center: [35%, 50%],roseType: radius,label: {formatter: {d}%,},labelLine: {length: 1,length2: 20,},data: datas,},],}; radius:[里面的圆的大小,外圆大小]; center: [echarts距离左边的距离, echarts距离上边的距离],
http://www.dnsts.com.cn/news/260210.html

相关文章:

  • 网站可以做无形资产森普网站建设
  • 谷城建设局网站凡科互动小游戏怎么刷高分
  • 江门网站开发河北秦皇岛建设局网站
  • 微信网站建设方案网站制作开发及优化是什么
  • 有关设计的网站wordpress api文档下载
  • 网站建设目的内容输出广州seo优化代理
  • 嘉兴网站建设设计制作福州专业网站建设公司
  • 网站怎么屏蔽ip做网站最专业
  • 苏州艺术家网站建设wordpress 会员聊天
  • 华为企业网站规划建设方案泗阳住房建设局网站
  • 网站维护的工作内容模板工
  • 个人的网站卡盟网站怎么做图片
  • 苏州网站开发公司排名wordpress画廊怎么用
  • 建设部门三类人员官方网站汕头seo按天付费
  • 建设部监理工程师报名网站手机app 网站
  • 官方网站查询高考分数申请企业资助建设网站
  • 淄博网站推广价格软件开发培训机构课程
  • 网站名称图标如何做才能显示怎样做 网站做seo
  • 河南省住建厅网站豫建设标地方门户网站推广方案
  • 湖北建设网站四库一平台wordpress论坛程序
  • 网站程序怎么备份wordpress隐秘链接打开
  • 南县中国建设银行网站免费中文wordpress主题下载
  • 网站开发前端赣州seo公司
  • 东莞网站建站模板idc网站备案
  • wordpress文章站主题兰州网站设计有限公司
  • 建设银行网站打不开用什么浏览器西安专业网站制作
  • 凡科建站网址少儿编程官网
  • 网站制作公司全域营销获客公司设计类网站排名
  • 乐器销售网站模板想学ui设计从哪里入手
  • 网站建设saas织梦免费模板dede源码