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

站长之家网页模板阿里云怎么做淘客网站

站长之家网页模板,阿里云怎么做淘客网站,郴州高新区,点击关注进入公众号在uniapp中可以引入echarts创建数据可视化图表。 1. 安装Echarts 使用npm安装echarts插件#xff0c;命令如下#xff1a; npm install echarts --save2. 引入Eharts 在需要使用Echarts的页面引入#xff1a; import *as echarts from echarts3. 创建实例 创建画布元素…在uniapp中可以引入echarts创建数据可视化图表。 1. 安装Echarts 使用npm安装echarts插件命令如下 npm install echarts --save2. 引入Eharts 在需要使用Echarts的页面引入 import *as echarts from echarts3. 创建实例 创建画布元素 view idchart stylewidth: 100%;height: 300px;/view配置图表 scriptimport * as echarts from echarts;export default {data() {return {};},onReady() {this.initChart();},methods: {initChart() {let chartDom document.getElementById(chart);let myChart echarts.init(chartDom);const option this.getChartOption();option myChart.setOption(option);},getChartOption() {const dataList [{name: 周一,value: 120},{name: 周二,value: 200},{name: 周三,value: 150},{name: 周四,value: 80},{name: 周五,value: 70},{name: 周六,value: 110},{name: 周天,value: 130}]const option {xAxis: {type: category,data: dataList.map(item item.name),axisLabel: {margin: 20}},yAxis: {type: value},series: [{// /数据图data: dataList.map(item item.value),type: bar,barWidth: 20,itemStyle: {color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{offset: 0,color: #3C7AB9},{offset: 1,color: #3398BC}])},z: 1,},{// /数据图data: dataList.map(item item.value),type: bar,barGap: 0,barWidth: 20,itemStyle: {color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{offset: 0,color: #4DACFF},{offset: 1,color: #44D9FC}])},z: 1,},{// 最上面菱形data: dataList.map(item item.value),type: pictorialBar,symbol: diamond,symbolSize: [40, 30],symbolPosition: end,symbolOffset: [, -50%],itemStyle: {color: #44D5FC},z: 2},{// 最下面菱形data: dataList.map(item item.value),type: pictorialBar,symbol: diamond,symbolSize: [40, 30],symbolPosition: start,symbolOffset: [, 50%],itemStyle: {color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{offset: 0,color: #3C7AB9},{offset: 0.5,color: #3C7AB9},{offset: 0.51,color: #4DACFF},{offset: 1,color: #4DACFF}])},z: 1},]};return option;}}} /script总结 我们可以单页面引入Echarts也可以全局注册使用Echarts在main.js中引入 import * as echarts from echarts Vue.prototype.echarts echarts;
http://www.hkea.cn/news/14592282/

相关文章:

  • 徐州做网站的公司哪家好四川网站建设有哪些
  • 亚马逊注册没有公司网站怎么做适合写个人博客的平台
  • 网站不足百度权重站长工具
  • 椒江网站建设公司如何网上找加工订单
  • 哪个省份做网站的多如何在门户网站做推广方案
  • 电子商务网站开发时间进度表网站域名到期
  • 自己网站怎么建设个人空间网站
  • 男女做羞羞羞的网站网站推广优化外包公司
  • 网站开发公司的衡水做网站哪家好
  • 手机网站实例用自己网站做邮箱域名
  • 长沙建网站设计公司用手机怎么做免费网站
  • 去哪个网站有客户找做标书的wordpress主题开发层级
  • 城乡建设门户网站怎么屏蔽优酷网站的广告
  • 旅游网站建设的经济评价seo查询网站
  • 站长平台怎么添加网站网站的创新点
  • 我们的爱情网站制作微信是哪个公司开发的
  • 商标设计logo网站wordpress 页面文章列表
  • 做山西杂粮的网站镇江建网站
  • 沈阳市网站建设公司网站建设烟台
  • 中企高呈网站建设为网站做seo需要什么
  • 做网站的视频教学网站备案号在哪里
  • 丹阳建站推广管理山西推广网站建设
  • 大悟网站开发小型教育网站的开发与建设
  • 北京高端网站建设服务宁波易通建设网站
  • 比价网站 源码wordpress 两栏
  • 山东网站制作应用wordpress安装 后
  • 武昌网站建设公司商城app开发模板
  • 标书制作公司网站有那些做自媒体短视频的网站
  • 知乎建站平台如何查询一个网站的空间大小
  • 免费建站好不好深圳网深圳网站开发公司