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

哪里有做网站的素材黄页网络的推广网站有哪些类型

哪里有做网站的素材,黄页网络的推广网站有哪些类型,手机软件怎么写出来的啊,大型网页游戏排行榜实现思路 借助echarts.min.js 搭配l-echart进行配置 废话不多说上代码后自己百度了解配置项的意思就好 下面代码是折线图的 &#xff0c;柱状图和它一摸一样&#xff0c;只需要把line换成bar就好 <template><l-echart ref"chart"></l-echart> …

实现思路

借助echarts.min.js 搭配l-echart进行配置

废话不多说上代码后自己百度了解配置项的意思就好

下面代码是折线图的 ,柱状图和它一摸一样,只需要把line换成bar就好

<template><l-echart ref="chart"></l-echart>
</template>
<script>
import * as echarts from '@/uni_modules/lime-echart/static/echarts.min.js'
export default {props: {// 以下注释部分是从父组件传递过来的options 这仅仅是一个示例 可以很好的展示ui效果options: {type: Object,default: () => {return null}}},data() {return {chart: null}},mounted() {this.$nextTick(() => {this.initChart()})},watch: {options: {handler(n) {if (n) {this.$nextTick(() => {this.initChart()})}},deep: true}},methods: {initChart() {const {labelX,data1,data2,legends,tipLegends,legendIcon,legendWidth,legendColor,gridLeft,gridRight,axisColor,splitColor,lineColor1,lineColor2,formatterAfterTextArr// labels} = this.optionsconst series = [{type: 'line',name: (legends && legends[0].name) || tipLegends,data: data1,symbolSize: 6,smooth: true,areaStyle: {color: 'rgba(' + (lineColor1 || '60, 127, 252') + ', 0.2)'},lineStyle: {color: 'rgba(' + (lineColor1 || '60, 127, 252') + ', 1)'},itemStyle: {color: 'rgba(' + (lineColor1 || '60, 127, 252') + ', 1)'}}]if (data2) {series.push({type: 'line',name: legends && legends[1].name,data: data2,symbolSize: 6,smooth: true,areaStyle: {color: 'rgba(' + (lineColor2 || '254, 189, 145') + ', 0.2)'},lineStyle: {color: 'rgba(' + (lineColor2 || '254, 189, 145') + ', 1)'},itemStyle: {color: 'rgba(' + (lineColor2 || '254, 189, 145') + ', 1)'}})}this.$refs.chart.init(echarts, (chart) => {this.chart = chartthis.chart.setOption({animation: false,tooltip: {trigger: 'axis',// 使用mousemove时,左右滑动会导致图表消失triggerOn: 'click',formatter:formatterAfterTextArr && formatterAfterTextArr.length > 0? function (params) {// x轴文字var result = params[0].axisValue + '\n'params.forEach(function (item) {/*** marker:图例样式;* seriesName:series中每一项的name;* value:data数据中value字段* formatterAfterTextArr: value之后需要补充的文字,数组格式* seriesIndex: series数据索引,当有多条series数据时,会自动获取当前选中索引*/result += `${item.marker}${item.seriesName}:${item.value}${formatterAfterTextArr[item.seriesIndex]}`})return result}: null},legend: legends && {top: '5%', // 控制 板块控制器的位置right: 'center',data: legends,icon: legendIcon || 'roundRect',itemWidth: legendWidth || 14,itemHeight: 8,itemGap: 24, //设置两个legend之间的间距textStyle: {fontSize: 12,color: legendColor || '#69748A',padding: [3, 0, 0, 0],rich: {}}},grid: {left: gridLeft || '5%',top: legends ? '20%' : '10%',right: gridRight || '8%',bottom: '5%',containLabel: true},xAxis: [{type: 'category',boundaryGap: false, // 两端空白axisTick: {show: false},axisLine: {show: false},axisLabel: {color: axisColor || '#333333',fontSize: 12,margin: 10},data: labelX || ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],}],yAxis: [{type: 'value',minInterval: 1,axisTick: {show: false},axisLabel: {color: axisColor || '#333333',fontSize: 12,margin: 10},axisLine: {show: false},splitLine: {lineStyle: {type: 'dashed',dashOffset: 20, // 设置虚线的起始偏移量gap: 20, // 设置虚线间的距离color: [splitColor || '#ccc']},},splitArea: { show: false }}],series: series})})}}
}
</script>

饼图和柱状图也基本一样 稍微改改就好,很简单。大家可以自己搜索,我这里放的是四个之中相对复杂的,也是摸索了一整子,下面附上效果图,希望能帮到大家。

http://www.yayakq.cn/news/816531/

相关文章:

  • 启用中文域名大网站开发微信公众
  • 深圳有做网站的公司有哪些传奇网络游戏
  • 要做网站雨花区师德师风建设专题网站
  • 盘州市城乡建设局网站传媒公司注册需要什么条件
  • 网站有服务器怎么备案公众号开发者模式后自动回复
  • 建网站潞城哪家强?中英双语网站建设
  • 网站注册用户推广如何制作产品网站模板
  • 深圳网站维护wordpress文章勒出
  • 怎么做下载网站吗佛山市建设小学网站
  • 怎建立自己网站做淘宝客数据 导入 wordpress
  • 四川住房和城乡建设厅网站主页wordpress前台登录
  • 开发公司截留占用住宅专项维修资金百度seo按天计费
  • 什么网站做外贸好网站搭建免费官网
  • 县城网站怎么做wordpress 回复邮件
  • 佛山商城网站建设怎样建立自己的个人网站
  • 做ppt找图片的网站有哪些网站建设讯息
  • 静态网站开发软件深圳房产备案查询官网
  • 景德镇网站建设景德镇网站代理浏览器一
  • 正规的网站优化推广公司做文献的ppt模板下载网站
  • 17一起做网站包包企业简介ppt范文大全
  • 网站做专题页面做网站宣传图的网站
  • 网站404是什么意思软件技术外包是什么行业
  • 黄山高端网站建设做茶叶网站公司
  • 江苏成章建设集团有限公司官方网站怎么介绍自己的优势
  • 网站系统分析报告如何做公司介绍视频网站
  • 深圳全网营销型网站怎样做电商网站好视频教学
  • seo网站推广企业网站设计怎么做链接
  • 软件自学网官方网站网站icp备案地
  • 易名中国网站网站网站开发需要多少钱
  • 南京建站公司网站廊坊seo排名优化