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

网站开发哪种语言好济南高端网站制作公司

网站开发哪种语言好,济南高端网站制作公司,wordpress优化打开速度插件,网络维护技术Echarts 利用多X轴实现未来15天天气预报 UI 设计图 Echarts 实现效果 代码实现 代码分解 echarts 图表上下均显示数据 通过设置 grid.top 和 grid.bottom 设置白天和夜间天气展示区域 grid: {top: 36%,bottom: 36%,left: 5%,right: 5%}, 天气图标的设置 由于 axisLabel 的… Echarts 利用多X轴实现未来15天天气预报 UI 设计图 Echarts 实现效果 代码实现 代码分解 echarts 图表上下均显示数据 通过设置 grid.top 和 grid.bottom 设置白天和夜间天气展示区域 grid: {top: 36%,bottom: 36%,left: 5%,right: 5%}, 天气图标的设置 由于 axisLabel 的 formatter 方法中的 value 值没法在富文本中使用所以这里在formatter方法中将 value 的下标设置成了富文本中的 css 名然后在设置天气图标时使用下标获取需要显示的图标名称。 axisLabel: {interval: 0,formatter: function (value) {return {icon${value}|}},//预留rich对象rich: {}}, for (let i 0; i globalData.option.xAxis[xIndex].data.length; i) {const element globalData.option.xAxis[xIndex].data[i];globalData.option.xAxis[xIndex].axisLabel.rich[icon${element}] {backgroundColor: {// image: /assets/images/weather/W${element}.pngimage: getWeatherIcon(element)},width: 30,align: center,height: 30}} 注 image: /assets/images/weather/W${element}.png  此链接也可以实现图片展示但是Vite 打包之后会提示找不到图片资源所以需要配合以下代码实现图片动态对应展示 天气图标动态导入  const getWeatherIcon (iconId) {return new URL(/assets/images/weather/W${iconId}3x.png, import.meta.url).href; } 图表数据置空 for (let i 0; i globalData.option.xAxis.length; i) {globalData.option.xAxis[i].data.length 0}for (let i 0; i globalData.option.series.length; i) {globalData.option.series[i].data.length 0} 全量代码 以下代码可以贴入 Echarts 直接运行 option: {grid: {show: true,backgroundColor: transparent,opacity: 0.3,borderWidth: 0,top: 36%,bottom: 36%,left: 5%,right: 5%},tooltip: {trigger: axis},legend: {show: false},xAxis: [// 星期{name: 星期,nameTextStyle: {fontSize: 0,},type: category,boundaryGap: false,position: top,offset: 110,zlevel: 100,axisLine: {show: false},axisTick: {show: false},axisLabel: {interval: 0,formatter: [{a|{value}}].join(\n),rich: {a: {// color: white,fontSize: 14}}},data: new Array(15).fill(null)},// 日期{name: 日期,nameTextStyle: {fontSize: 0,},type: category,boundaryGap: false,position: top,offset: 80,zlevel: 100,axisLine: {show: false},axisTick: {show: false},axisLabel: {interval: 0,formatter: [{a|{value}}].join(\n),rich: {a: {color: #aaa,fontSize: 12}}},data: new Array(15).fill(null)},// 白天天气{name: 白天天气,nameTextStyle: {fontSize: 0,},type: category,boundaryGap: false,position: top,offset: 50,zlevel: 100,axisLine: {show: false},axisTick: {show: false},axisLabel: {interval: 0,formatter: [{a|{value}}].join(\n),rich: {a: {// color: white,fontSize: 14}}},data: new Array(15).fill(null)},// 白天图标{name: 白天图标,nameTextStyle: {fontSize: 0,},type: category,boundaryGap: false,position: top,offset: 10,zlevel: 100,axisLine: {show: false},axisTick: {show: false},axisLabel: {interval: 0,formatter: function (value) {return {icon${value}|}},//预留rich对象rich: {}},// data: this.weatherdata.weatherdata: new Array(15).fill(null)},// 夜间图标{name: 夜间图标,nameTextStyle: {fontSize: 0,},type: category,boundaryGap: false,position: bottom,offset: 10,zlevel: 100,axisLine: {show: false},axisTick: {show: false},axisLabel: {interval: 0,formatter: function (value) {return {icon${value}|}},//预留rich对象rich: {}},// data: this.weatherdata.weatherdata: new Array(15).fill(null)},// 夜间天气{name: 夜间天气,nameTextStyle: {fontSize: 0,},type: category,boundaryGap: false,position: bottom,offset: 50,zlevel: 100,axisLine: {show: false},axisTick: {show: false},axisLabel: {interval: 0,formatter: [{a|{value}}].join(\n),rich: {a: {// color: white,fontSize: 14}}},data: new Array(15).fill(null)},// 风向{name: 风向,nameTextStyle: {fontSize: 0,},type: category,boundaryGap: false,position: bottom,offset: 80,zlevel: 100,axisLine: {show: false},axisTick: {show: false},axisLabel: {interval: 0,formatter: [{a|{value}}].join(\n),rich: {a: {// color: white,fontSize: 12}}},data: new Array(15).fill(null)},// 风级{name: 风级,nameTextStyle: {fontSize: 0,},type: category,boundaryGap: false,position: bottom,offset: 105,zlevel: 100,axisLine: {show: false},axisTick: {show: false},axisLabel: {interval: 0,formatter: [{a|{value}级}].join(\n),rich: {a: {color: #aaa,fontSize: 12}}},data: new Array(15).fill(null)},],yAxis: {type: value,show: false,axisLabel: {formatter: {value} °C,color: white}},series: [{name: 最高气温,type: line,data: new Array(15).fill(0),symbol: emptyCircle,symbolSize: 6,showSymbol: true,smooth: true,itemStyle: {color: orange},label: {show: true,position: top,color: orange,formatter: {c}},lineStyle: {width: 1,},areaStyle: {opacity: 1,color: transparent}},{name: 最低气温,type: line,data: new Array(15).fill(0),symbol: emptyCircle,symbolSize: 6,showSymbol: true,smooth: true,itemStyle: {color: dodgerblue},label: {show: true,position: bottom,color: dodgerblue,formatter: {c}},lineStyle: {width: 1,},areaStyle: {opacity: 1,color: transparent}},]},
http://www.hkea.cn/news/14494257/

相关文章:

  • 滴道网站建设网站图片等比缩小
  • 中信建设证券官方网站企业网站管理的含义及内容
  • 专业做网站建设公司哪家好免费一键搭建网站
  • 怎么做网站的软文推广成都哪里可以做网站
  • 新手学网站建设视频教程共30课高清版网络运维证
  • 京东商城商务网站建设目的谷歌优化网站链接怎么做
  • 建设银行的网站为什么这么卡大兴快速网站建设哪家好
  • 如何做网站可以吗公司网站建设的要点
  • 北京网站优化效果怎样促销活动推广方法有哪些
  • 青岛即墨网站网页设计英文wordpress变中文
  • wordpress房产中介模板网络优化工程师有前途吗
  • 石景山建网站wordpress忘记管理员密码
  • ps免费模板素材网站网站建设与管理就业前景
  • 企业网站空间选择现在有什么技能培训班
  • 地产网站互动设计最好免费高清影视
  • 上海有几个区和县阳江网站seo公司
  • 英文建站多少钱网站的公告栏怎么做
  • 用网站做淘宝客的人多吗做违法网站程序员犯法吗
  • 商城网站建设机构网站开发费用投入情况
  • 保定网站建设乐陵森木全屋定制
  • 如何在网站页面做标注旅游预定型网站建设
  • 做蔬菜配送有什么网站可下载了解网站轮播图怎么做
  • 廊坊营销网站团队网站建设海之睿
  • 冀icp 网站建设电商网站建设目的
  • 网站seo优缺点公司网站建设与设计制作
  • 做网站专题页的字大小是多少辽宁企业网站建设公司
  • 陕西省建设执业资格注册中心网站wordpress 关闭顶部
  • 做双语网站种子网站开发多少钱
  • 给个免费的网站好人有好报传统外贸网站的seo运用
  • 重庆制作网站公司哪家好电子商务网站开发形式选择