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

网站开发哪种语言好wordpress文章内容宽度

网站开发哪种语言好,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.tj-hxxt.cn/news/225708.html

相关文章:

  • 嘉兴 做网站 推广led灯什么网站做推广好
  • 博罗做网站技术网站生成app客户端
  • 免费建立网站哪个好买个域名就可以建立网站吗
  • hpsocket 网站开发吉安网站建设jajjjc
  • 微网站解决方案赣州网站建设案例
  • 搭建网站需要做什么绵阳企业品牌网站建设
  • 免费创建属于自己的网站网站群建设论文
  • 新开传奇网站发布网施工企业成立技术中心的好处
  • 三只松鼠网站谁做的合同下载网站
  • 广州 seo的网站南京做征信服务的公司网站
  • 深圳网站制作建设服务公司网站二级页面怎么做
  • ppt模板资源网站深圳网站建设公司排名
  • 查pv uv的网站导购wordpress
  • 做电子商务网站 除了域名 网页设计 还有服务器 和网站空间成都市建设网站
  • php安防企业网站源码收银会员卡管理系统
  • 北京网站建设公司分形科技微信广告推广价格表
  • asp.net网站登录wordpress主题点赞
  • 北京网站优化软件网站 流程 工具
  • ftp免费网站空间百度网站建设教程
  • 网站突然打不开的原因是wordpress配置邮件服务器
  • 如何做logo模板下载网站广州万户网络技术有限公司深圳分公司
  • 网站创建费用商务网站建设需要多少钱
  • 网站系统的建设与管理工作服定制无锡帛裳 服饰实力
  • 网站好友邀请链接生成 php做网站维护有前途吗
  • 做网站会遇到的问题有没有电脑做兼职的网站
  • 企业网站建设湖南岚鸿易企秀h5页面怎么制作
  • 东莞网站营销公司美容类 营销型网站
  • 青岛开发区网站建设哪家好字体中国设计网
  • 网站首页代码红安建设局投诉网站
  • 教做家常菜的视频网站淄博网站快照优化公司