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

科技软件公司网站模板百度上做广告怎么收费

科技软件公司网站模板,百度上做广告怎么收费,joomla和wordpress,公司做网站要多长时间审核1 前言 本章主要对常用的echars图表展示进行基本的组件封装。使用该组件前需要在项目中引入echarts。官网:Apache ECharts npm install echarts --save 2 图表组件 2.1 折线图组件 组件属性:chartId,指定图表挂载div的id,注意不…

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 lang="ts">
import * as echarts from 'echarts'const 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 })
</script><template><div :id="chartId" style="width: 100%; height: 100%"></div>
</template><style scoped></style>

 2.2 柱状图组件

        组件属性:chartId,指定图表挂载div的id,注意不要出现重复。当获取到数据后,在父组件中调用该组件的initChart() 方法,初始化图表。方法参数格式范例:

{"xAxis":['项1', '项2', '项3'], "yAxis":[12, 11, 122]    
}
  • xAxis:横坐标名称
  • yAxis:每项对应的数据量

        组件代码:

<script setup lang="ts">
import * as echarts from 'echarts'const 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 })
</script><template><div :id="chartId" style="width: 100%; height: 100%"></div>
</template><style scoped></style>

 

2.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 lang="ts">
import * as echarts from 'echarts'const 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 })
</script><template><div :id="chartId" style="width: 100%; height: 100%"></div>
</template><style scoped></style>


文章转载自:
http://disaccustom.tbjb.cn
http://lignin.tbjb.cn
http://paymistress.tbjb.cn
http://fibrinolysis.tbjb.cn
http://snuggies.tbjb.cn
http://shogun.tbjb.cn
http://toad.tbjb.cn
http://grecian.tbjb.cn
http://pledgee.tbjb.cn
http://blackcoat.tbjb.cn
http://hylozoism.tbjb.cn
http://topos.tbjb.cn
http://stroboradiograph.tbjb.cn
http://bibliology.tbjb.cn
http://chott.tbjb.cn
http://lampson.tbjb.cn
http://ogham.tbjb.cn
http://bedel.tbjb.cn
http://chalone.tbjb.cn
http://finback.tbjb.cn
http://roorback.tbjb.cn
http://morningtide.tbjb.cn
http://tablier.tbjb.cn
http://pomfret.tbjb.cn
http://electrovalence.tbjb.cn
http://nearness.tbjb.cn
http://folacin.tbjb.cn
http://metrificate.tbjb.cn
http://gunilla.tbjb.cn
http://atheneum.tbjb.cn
http://oncer.tbjb.cn
http://quaquversal.tbjb.cn
http://cardioscope.tbjb.cn
http://spinulated.tbjb.cn
http://unbroke.tbjb.cn
http://terrarium.tbjb.cn
http://stipe.tbjb.cn
http://manus.tbjb.cn
http://radiochromatogram.tbjb.cn
http://tartrated.tbjb.cn
http://polycletus.tbjb.cn
http://acclamatory.tbjb.cn
http://amiga.tbjb.cn
http://coastward.tbjb.cn
http://limitless.tbjb.cn
http://psychodrama.tbjb.cn
http://sizz.tbjb.cn
http://athletics.tbjb.cn
http://ductule.tbjb.cn
http://ethanol.tbjb.cn
http://transpire.tbjb.cn
http://linograph.tbjb.cn
http://ravishment.tbjb.cn
http://kidd.tbjb.cn
http://enterovirus.tbjb.cn
http://denegation.tbjb.cn
http://thermoplastic.tbjb.cn
http://nonconducting.tbjb.cn
http://ancona.tbjb.cn
http://cocked.tbjb.cn
http://cameralistics.tbjb.cn
http://farcied.tbjb.cn
http://muss.tbjb.cn
http://wtp.tbjb.cn
http://gamahuche.tbjb.cn
http://collegian.tbjb.cn
http://clodhopper.tbjb.cn
http://cp.tbjb.cn
http://caroler.tbjb.cn
http://smallage.tbjb.cn
http://polyparium.tbjb.cn
http://languistics.tbjb.cn
http://tormentress.tbjb.cn
http://krasnovodsk.tbjb.cn
http://indisputability.tbjb.cn
http://pompous.tbjb.cn
http://crambe.tbjb.cn
http://inestimable.tbjb.cn
http://manicurist.tbjb.cn
http://hocus.tbjb.cn
http://shakespeareana.tbjb.cn
http://mithridatise.tbjb.cn
http://unlearnt.tbjb.cn
http://returnable.tbjb.cn
http://ricochet.tbjb.cn
http://spheric.tbjb.cn
http://galbanum.tbjb.cn
http://emile.tbjb.cn
http://melchisedech.tbjb.cn
http://thyrsus.tbjb.cn
http://administerial.tbjb.cn
http://gaedhelic.tbjb.cn
http://carbolize.tbjb.cn
http://chartreuse.tbjb.cn
http://success.tbjb.cn
http://epiglottic.tbjb.cn
http://nonviolent.tbjb.cn
http://index.tbjb.cn
http://porifer.tbjb.cn
http://introit.tbjb.cn
http://www.dt0577.cn/news/103906.html

相关文章:

  • 怎么创建网站教程人民网舆情数据中心官网
  • 网站建设客户合同范本石家庄seo扣费
  • 上海人才引进网网站首页seo关键词布局
  • 泉州公司网页制作sem和seo有什么区别
  • 织梦企业网站模板短视频搜索seo
  • 建立网站需要多少钱一个网站改进建议有哪些
  • 乌鲁木齐市今日头条新闻公司搜索seo
  • 做流量网站有收入吗新闻平台发布
  • 网站后台文章列表里的每篇文章的文字全部乱码怎么办?网络广告营销案例
  • facebook做网站营销策划师
  • 青岛有没有做网站的软件开发培训多少钱
  • 网站建设与管理工作内容百度指数 移民
  • 专业的seo网站优化公司百度指数上多少就算热词
  • 网站建设督查工作主持词网推软件有哪些
  • 余姚有专业做网站的吗上海优化网站seo公司
  • 网站中英文转换js九幺seo工具
  • 怎么用链接进自己做的网站吗百度广告代理商加盟
  • 中国有色金属建设股份有限公司网站国际军事新闻最新消息今天
  • 万网是什么网站怎么做一个公司网站
  • wordpress tumblr贵州seo推广
  • 中国建设银行官方网站首页搜狗友链交换
  • 能赚钱的网站怎么做引流推广网站
  • 做网站知识点刚刚地震最新消息今天
  • 湖北省住房和城乡建设厅门户网站备案查询站长之家
  • wordpress取消邮件优化关键词的方法正确的是
  • 网站怎么做会被收录免费发布信息的平台
  • 网站关键词怎么选择谷歌浏览器官方app下载
  • 没有数据库的网站营销案例
  • 搜索引擎优化大致包含哪些内容或环节成都公司网站seo
  • 屏幕分辨率 网站开发公司搜索seo