中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當前位置: 首頁 > news >正文

沈陽網(wǎng)站建設公司排名南昌企業(yè)網(wǎng)站建設

沈陽網(wǎng)站建設公司排名,南昌企業(yè)網(wǎng)站建設,珠海市網(wǎng)站,做哪一類的網(wǎng)站可以短時間變現(xiàn)插件地址:echarts-for-uniapp - DCloud 插件市場 圖例: 一、uniapp 安裝 npm i uniapp-echarts --save 二、文件夾操作 將 node_modules 下的 uniapp-echarts 文件夾復制到 components 文件夾下 當前不操作此步驟的話,運行 -> 運行到小…

?插件地址:echarts-for-uniapp - DCloud 插件市場

圖例:

?

一、uniapp 安裝?

npm i uniapp-echarts --save

?二、文件夾操作

將?node_modules 下的 uniapp-echarts 文件夾復制到 components 文件夾下

?當前不操作此步驟的話,運行 -> 運行到小程序模擬器 -> 微信開發(fā)者工具 時,echarts圖表顯示不出來

原因:運行到小程序打包過程中,此插件不在小程序文件包內

三、地址引入

根據(jù)當前插件放的地址進行引入

import * as echarts from "@/components/uniapp-echarts/static/echarts.min.js";
import uniChart from "@/components/uniapp-echarts/components/uni-chart/uni-chart.vue"; 

四、組件封裝 echartLine.vue

<template><view class="content"><uniChart :option="person.option" /></view>
</template><script setup>
import { reactive, shallowRef, onMounted } from 'vue'
import * as echarts from "@/components/uniapp-echarts/static/echarts.min.js";
import uniChart from "@/components/uniapp-echarts/components/uni-chart/uni-chart.vue"; const props = defineProps({id: {type: String,required: true},datas:{type: Array,required: true}
})
let person=reactive({userScore:[],userAvgScore:[], xTime:[], // x軸數(shù)據(jù)max: 600, // 最大數(shù)值option: {}
})onMounted(()=>{load()GetEchar()
})
const load=()=>{// 指定配置項和數(shù)據(jù)person.userScore = props.datas.map(f => { return f.score })person.userAvgScore = props.datas.map(f => { return f.avgScore })person.xTime = props.datas.map(f => { return f.name })
}const GetEchar = () => {person.option = {tooltip: {trigger: 'axis',formatter: function (params) {return params[0].name+'\n'+option.legend.data[0].name+':'+person.userScore[params[0].dataIndex]+'分\n'+option.legend.data[1].name+':'+person.userAvgScore[params[0].dataIndex]+'分'}},legend: {data: [{ name: '學生/張小雨', icon: 'circle' },{ name: '年級平均', icon: 'circle' }],icon: 'circle',y: 'bottom',itemWidth: 12, //寬度itemHeight: 12, //高度itemGap: 25, //間距textStyle: {color: '#333',fontSize: 12,lineHight: 40}},grid: {top: '3%',left: '3%',right: '5%',bottom: '12%',containLabel: true},xAxis: [{type: 'category',axisTick: {show:false},axisLine: {onZero: false,lineStyle: {color: '#2A2A2A',width: 2}},axisLabel: {//坐標軸刻度標簽的相關設置。textStyle: {color: '#6F6F70',fontSize: 12},formatter: function (params) {return params;}},data: person.xTime}],yAxis: [{type: 'value',axisTick: {show:false},axisLine: {show:false},max: person.max,min: 0,// y軸文字顏色axisLabel: {textStyle: {color: '#6F6F70',fontSize: 12}},splitLine: {show: true,lineStyle: {color: ['#5E5E5E'],width: 1,type: 'dashed'}}}],series: [{name: '學生/張小雨',type: 'line',symbol: 'circle', //拐點樣式symbolSize: 4, //拐點大小// 折線拐點的樣式itemStyle: {normal: {// 靜止時:color: '#6B86FF',borderColor: '#6B86FF', //拐點的邊框顏色borderWidth: 2},emphasis: {// 鼠標經(jīng)過時:color: '#fff'}},data: person.userScore},{name: '年級平均',type: 'line',symbol: 'circle', //拐點樣式symbolSize: 4, //拐點大小// 折線拐點的樣式itemStyle: {normal: {// 靜止時:color: '#FFA755',borderColor: '#FFA755', //拐點的邊框顏色borderWidth: 2},emphasis: {// 鼠標經(jīng)過時:color: '#fff'}},data: person.userAvgScore}]};
}
</script>
<style>
.content {width: 375px;height: 250px;
}
</style>

五、頁面調用

<EchartLine v-if="person.studentScore && person.studentScore.length > 0" :id="'studentGrade'" :datas="person.studentScore" /><script setup>
import { reactive } from 'vue'
import EchartLine from "@/components/echarts/echartLine.vue"let person=reactive({// 學生總成績studentScore:[{name:'7月5日',score:10,avgScore:90},{name:'7月6日',score:93,avgScore:80},{name:'7月7日',score:60,avgScore:70},{name:'7月8日',score:50,avgScore:70},{name:'7月9日',score:86,avgScore:50}]
})
</script>

? ? ?希望我的愚見能夠幫助你哦~,若有不足之處,還望指出,你們有更好的解決方法,歡迎大家在評論區(qū)下方留言支持,大家一起相互學習參考呀~

http://www.risenshineclean.com/news/29688.html

相關文章:

  • 網(wǎng)站源碼設計搜索詞分析
  • 鞍山網(wǎng)站建設公司新聞頭條最新消息摘抄
  • 牡丹江網(wǎng)站seo伊春seo
  • 做公司的網(wǎng)站有哪些東西網(wǎng)絡營銷計劃書怎么寫
  • 網(wǎng)站建設背景分析論文網(wǎng)上怎么推銷自己的產(chǎn)品
  • 網(wǎng)站設計思想線上營銷有哪些
  • 網(wǎng)站設置反爬蟲的常用方法有哪些中國輿情網(wǎng)
  • 網(wǎng)站頁面怎么設計seo關鍵詞優(yōu)化舉例
  • 龍巖特色seo關鍵詞排名優(yōu)化推薦
  • 廣州網(wǎng)站建設鞍山站長之家站長工具
  • 武漢網(wǎng)站建設公司排名最好最全的搜索引擎
  • wordpress 圖片縮略圖不顯示圖片抖音seo排名優(yōu)化軟件
  • java web做購物網(wǎng)站鄭州抖音seo
  • 夏天做哪些網(wǎng)站致富最新重大新聞
  • 泉州制作網(wǎng)站設計seo搜索引擎優(yōu)化步驟
  • 品牌網(wǎng)站建設還來大蝌蚪開發(fā)新客戶的十大渠道
  • 網(wǎng)頁設計與網(wǎng)站建設課程整合營銷傳播理論
  • 網(wǎng)站建設金手指排名專業(yè)seo排名點擊器
  • 長春新聞最新消息天津搜索引擎seo
  • 花店網(wǎng)站模板下載百度極速版
  • 新網(wǎng)站百度搜不到上海搜索引擎優(yōu)化公司
  • a3電子報在什么網(wǎng)站做培訓公司
  • 有一個網(wǎng)站是做釆購的是什么網(wǎng)互聯(lián)網(wǎng)推廣怎么找客戶
  • wordpress地址如何修改福州seo顧問
  • 企業(yè)網(wǎng)站建設是什么網(wǎng)站關鍵詞排名分析
  • 米拓建設網(wǎng)站合肥做網(wǎng)絡推廣的公司
  • 網(wǎng)站開發(fā)需要python 嗎全國疫情最新消息今天實時
  • 電影網(wǎng)站制作模板搜索引擎營銷的主要模式有哪些
  • wps wordpress廈門網(wǎng)站seo哪家好
  • 網(wǎng)站備案收費么重慶企業(yè)免費建站