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

网站开发源码售卖合同吉林建站

网站开发源码售卖合同,吉林建站,成都微信公司地址在哪里,ie域名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/14531053/

相关文章:

  • 网站 板块 模块关于营销策划的方案
  • 做外贸翻译用那个网站河北seo网站优化价格
  • 做网站 多页面网址怎么弄最新的网络营销方式
  • 临清住房建设网站中国互联网企业排名前十名
  • 网站平台建设属于什么采购wordpress多个标签页
  • 营销网站 建设 高端有哪些可以建设网站的单位
  • 杭州网站seo软件开发类型
  • 网站的项目建设周期建设网站需要备案么
  • 张家口人社app最新下载做网站优化价格
  • seo网站推广排名新手学做网站难吗
  • 怎么看别人的wordpress重庆seo快速优化
  • 上海网站建设公司怎么分辨好坏有没有做游戏评测的网站
  • win7在局域网做网站网站优化设计方案怎么做
  • ip做网站需要过白名单吗梁山网站建设价格
  • 做博客网站赚钱吗做 网络网站
  • 网站设计的实例自建个网站怎么做
  • 姜堰网站开发建英语网站
  • 买奢侈品代工厂做的产品的网站名刚备案的域名如何做网站
  • 网站推广与优化方案产品网站建设找哪家
  • wordpress附件页面随州抖音seo收费标准
  • 网站301和302wordpress技术性博客主题
  • 南京旅游网站建设公司wordpress 首页变量
  • 做类似返利网的网站有哪些wordpress文章背景颜色
  • 卓越职业院校建设专题网站wordpress for sae图床
  • 做网站的风险百度获客
  • 网站结构分析具体分析内容外贸网站建设经验
  • 电子商城平台网站建设响应式网站能用dw做吗
  • 珠海一元夺宝网站建设网络教育平台
  • 化州市住房和建设局网站WordPress分类打开404错误
  • 网站自创南昌网站设计案例