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

哪方面网站网页设计毕业设计理念

哪方面网站,网页设计毕业设计理念,广州系统软件app开发公司,深圳福田区有哪些大公司1 前言 本章主要对常用的echars图表展示进行基本的组件封装。使用该组件前需要在项目中引入echarts。官网#xff1a;Apache ECharts npm install echarts --save 2 图表组件 2.1 折线图组件 组件属性#xff1a;chartId#xff0c;指定图表挂载div的id#xff0c;注意不…1 前言 本章主要对常用的echars图表展示进行基本的组件封装。使用该组件前需要在项目中引入echarts。官网Apache ECharts npm install echarts --save 2 图表组件 2.1 折线图组件 组件属性chartId指定图表挂载div的id注意不要出现重复。当获取到数据后在父组件中调用该组件的initChart() 方法初始化图表。方法参数格式范例 {xAxis:[项1, 项2, 项3], yAxis:[12, 11, 122] } xAxis横坐标名称yAxis每项对应的数据量 组件代码 script setup langts import * as echarts from echartsconst props defineProps{chartId: string }()const initChart (data: any) {const chartDom document.getElementById(props.chartId);var myChart echarts.init(chartDom);var option;option {tooltip: {trigger: axis,axisPointer: {type: shadow}},xAxis: {type: category,data: data.xAxis,},yAxis: {type: value},series: [{data: data.yAxis,type: line}]};option myChart.setOption(option); }defineExpose({ initChart }) /scripttemplatediv :idchartId stylewidth: 100%; height: 100%/div /templatestyle scoped/style2.2 柱状图组件 组件属性chartId指定图表挂载div的id注意不要出现重复。当获取到数据后在父组件中调用该组件的initChart() 方法初始化图表。方法参数格式范例 {xAxis:[项1, 项2, 项3], yAxis:[12, 11, 122] } xAxis横坐标名称yAxis每项对应的数据量 组件代码 script setup langts import * as echarts from echartsconst props defineProps{chartId: string }()const initChart (data: any) {const chartDom document.getElementById(props.chartId);var myChart echarts.init(chartDom);var option;option {tooltip: {trigger: axis,axisPointer: {type: shadow}},xAxis: {type: category,data: data.xAxis,},yAxis: {type: value},series: [{data: data.yAxis,type: bar}]};option myChart.setOption(option); }defineExpose({ initChart }) /scripttemplatediv :idchartId stylewidth: 100%; height: 100%/div /templatestyle scoped/style2.3 饼图组件 组件属性chartId指定图表挂载div的id注意不要出现重复。当获取到数据后在父组件中调用该组件的initChart() 方法初始化图表。方法参数格式范例 [{ value: 1048, name: 数据项1 },{ value: 735, name: 数据项2 },{ value: 580, name: 数据项3 },{ value: 484, name: 数据项4 },{ value: 300, name: 数据项5 }] 组件代码 script setup langts import * as echarts from echartsconst props defineProps{chartId: string }()const initChart (data: any) {type EChartsOption echarts.EChartsOption;const chartDom document.getElementById(props.chartId)!const myChart echarts.init(chartDom)let option: EChartsOptionoption {tooltip: {trigger: item},legend: {top: 5%,left: center},series: [{name: 数据量,type: pie,radius: [40%, 70%],avoidLabelOverlap: false,itemStyle: {borderRadius: 10,borderColor: #fff,borderWidth: 2},label: {show: false,position: center},emphasis: {label: {show: true,fontSize: 20,fontWeight: bold}},labelLine: {show: false},data: data}]}option myChart.setOption(option) }defineExpose({ initChart }) /scripttemplatediv :idchartId stylewidth: 100%; height: 100%/div /templatestyle scoped/style
http://www.w-s-a.com/news/841056/

相关文章:

  • 网站做接口到app 价格大地资源免费视频观看
  • 怎么给钓鱼网站做防红网站建设相关的
  • 教育培训的网站建设湖南网站建设小公司
  • 福建南平网站建设创意交易平台网
  • 做直播网站要哪些技术内容营销理论
  • 价格划算的网站开发怎么找有赞做网站
  • 做网站店铺图片用什么软件网络营销方案格式
  • 做外贸要自己建网站吗有效的网络营销方式
  • 精通网站开发书籍做网站获取手机号码
  • 论坛做视频网站有哪些济南新站seo外包
  • 哪类型网站容易做冷水滩做微网站
  • 搭建企业网站流程保定徐水网站建设
  • 建设单位到江川区住房和城乡建设局网站伦敦 wordpress 设计
  • 响应式网站的服务麦德龙网站建设目标
  • 做国外单的网站叫什么海南省海口市网站建设
  • 杭州响应式网站案例wordpress5.2.2
  • 网站建设运营维护合同wordpress资源搜索插件
  • 国外网站流量查询东莞网站建设教程
  • 餐饮类网站建设达到的作用东莞工程建设交易中心网
  • 网站设计 知识产权湖北网站建设xiduyun
  • 猫咪网站模版下载中国风 古典 红色 网站源代码
  • 个人网站备案模板制作网站首页
  • 潍坊正规建设网站网站建设设计作业
  • 推荐一下网站谢谢辽宁住房城乡建设部官方网站
  • 网站文件大小英选 网站开发
  • 济南建网站哪家好wordpress编辑器排行
  • 在福州做搬家网站多少钱画册设计网站有哪些
  • 如何让别人浏览我做的网站哪些方法可以建设网站
  • 网站建设与管理网络推广的优点
  • 美食网站的设计与制作做网站的电销话术