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

虎门镇做网站论坛推广方案

虎门镇做网站,论坛推广方案,做可视化的网站,wordpress页面间跳转图片展示 一、引入echarts 这里不用多解释 vue里使用 import echarts from “echarts”; html页面引用js文件或用script标签引用 二、定义一个具有宽高的dom div <div id"echart-broken" style"width:400px;height: 200px;"></div>三、定义…

图片展示
在这里插入图片描述

一、引入echarts

这里不用多解释
vue里使用
import echarts from “echarts”;
html页面引用js文件或用script标签引用

二、定义一个具有宽高的dom div

   <div id="echart-broken" style="width:400px;height: 200px;"></div>

三、定义方法 代码如下

// 折线图brokenInit(){var chart4 = echarts.init(document.getElementById('echart-broken'));chart4.setOption({tooltip: {trigger: 'axis',backgroundColor: 'transparent',axisPointer: { // 添加辅助线type: 'line',lineStyle: {color: '#4080FF', // 修改竖线颜色type: 'dashed', // 修改竖线样式为虚线width: 1.5},},formatter: function(params) {var datetime = params[0].axisValue;var datanum = params[0].data;var res = `<div style="width: 141px;height: 72px;background: linear-gradient(303deg, rgba(253,254,255,0.60) -3%, rgba(244,247,252,0.60) 83%);opacity: 1;box-shadow: 0px 10px 20px 0px rgba(167, 200, 255, 0.5),inset 0px -2px 12px 0px rgba(229, 237, 250, 0.5),inset 0px 2px 6px 0px rgba(229, 237, 250, 0.9);"><div style="padding-left: 6px;padding-top: 10px;"><span style="width: 33%;font-size: 12px;line-height: 20px;height: 20px;color:#1D2129;font-weight: 700;">${datetime}</span><div style="width: 125px;height: 32px;border-radius: 4px;opacity: 1;background: rgba(255, 255, 255, 0.8);box-shadow: 6px 0px 20px 0px rgba(34, 87, 188, 0.1);display: flex;justify-content: space-evenly;align-items: center;"><span style="font-size: 12px;color: #4E5969;">专题图数量</span><span style="font-size: 13px;color: #1D2129;font-weight: 700;font-style: italic;">${datanum}</span></div></div></div>`;return res;}},xAxis: {type: 'category',boundaryGap: false, // 和0刻度线对齐方式data: this.brokenDate.map(item => item.name),axisLine: { // 修改X轴线的样式lineStyle: {color: '#E5E8EF' // 将x轴颜色改为浅灰色}},axisLabel: {color: '#86909C' // 设置x轴刻度上的数据颜色为黑色},axisTick: {show: false},splitLine: { // 设置分隔线样式show: true,lineStyle: {color: '#E5E8EF',type: 'dashed', // 修改竖线样式为虚线}},},yAxis: {type: 'value',axisLine: {lineStyle: {color: '#E5E8EF' // 将Y轴颜色改为浅灰色}},axisLabel: {color: '#86909C' // 设置Y轴刻度上的数据颜色为黑色},axisTick: {show: false},splitLine: { // 设置分隔线样式show: true,lineStyle: {type: 'dashed', // 改成虚线color: '#E5E8EF'}},},color: '#249AFF',series: [{data: this.brokenDate.map(item => item.value),type: 'line',smooth: true,lineStyle: { // 设置折线样式width: 3 // 设置折线宽度},symbol: 'none', // 去除小圆点areaStyle: {normal: {color: {x: 0,y: 0,x2: 0,y2: 1,colorStops: [{offset: 0,color: "rgba(17, 126, 255, 0.5)" // 0% 处的颜色,深一点},{offset: 0.7,color: "rgba(17, 128, 255, 0.1)" // 90% 处的颜色,浅一点},{offset: 1,color: "rgba(17, 128, 255, 0)" // 100% 处的颜色,完全透明}],globalCoord: false // 默认为 false}}}}]})// 自适应window.addEventListener("resize", () => {chart4.resize();})},

tooltip里的 模板字符串 dom结构 前端不方便调试效果图

可以先在dom里写好,调试好效果之后 在复制粘贴到 tooltip里的模板字符串

配置阴影和渐变色 在series里配置
normal: {
color: {
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops:[]
即可
具体代码在代码块里


文章转载自:
http://outerwear.c7495.cn
http://sturgeon.c7495.cn
http://vespiform.c7495.cn
http://courtroom.c7495.cn
http://refusable.c7495.cn
http://wairakite.c7495.cn
http://syndicate.c7495.cn
http://fougasse.c7495.cn
http://objectivity.c7495.cn
http://jism.c7495.cn
http://metro.c7495.cn
http://ague.c7495.cn
http://accede.c7495.cn
http://amazingly.c7495.cn
http://helaine.c7495.cn
http://apothegm.c7495.cn
http://concision.c7495.cn
http://mcd.c7495.cn
http://pibroch.c7495.cn
http://infarcted.c7495.cn
http://dispreader.c7495.cn
http://declarator.c7495.cn
http://recipients.c7495.cn
http://gapemouthed.c7495.cn
http://gentlemen.c7495.cn
http://vga.c7495.cn
http://tickbird.c7495.cn
http://jorum.c7495.cn
http://barathea.c7495.cn
http://carmelita.c7495.cn
http://medicine.c7495.cn
http://abusive.c7495.cn
http://mutch.c7495.cn
http://welldoing.c7495.cn
http://baywreath.c7495.cn
http://khoums.c7495.cn
http://bonkers.c7495.cn
http://acetanilid.c7495.cn
http://percolation.c7495.cn
http://favous.c7495.cn
http://underlife.c7495.cn
http://agglomerate.c7495.cn
http://assert.c7495.cn
http://tubulure.c7495.cn
http://mathematical.c7495.cn
http://segno.c7495.cn
http://unipotent.c7495.cn
http://disarrangement.c7495.cn
http://protostellar.c7495.cn
http://encouraging.c7495.cn
http://frizette.c7495.cn
http://potentiostat.c7495.cn
http://diphyllous.c7495.cn
http://indigenization.c7495.cn
http://sluiceway.c7495.cn
http://biomagnify.c7495.cn
http://kaf.c7495.cn
http://reluctance.c7495.cn
http://shakerful.c7495.cn
http://personator.c7495.cn
http://diapsid.c7495.cn
http://expositorily.c7495.cn
http://posttyphoid.c7495.cn
http://nodule.c7495.cn
http://imaginable.c7495.cn
http://caveatee.c7495.cn
http://syncrisis.c7495.cn
http://flatiron.c7495.cn
http://monopodial.c7495.cn
http://hydraulic.c7495.cn
http://arhythmic.c7495.cn
http://mastocytoma.c7495.cn
http://prizefight.c7495.cn
http://halide.c7495.cn
http://anchorpeople.c7495.cn
http://palaeoanthropic.c7495.cn
http://suasion.c7495.cn
http://flannelet.c7495.cn
http://correctly.c7495.cn
http://counterevidence.c7495.cn
http://solstitial.c7495.cn
http://scenarist.c7495.cn
http://knobble.c7495.cn
http://arrogation.c7495.cn
http://cablephoto.c7495.cn
http://quarter.c7495.cn
http://trogon.c7495.cn
http://amateurism.c7495.cn
http://banyan.c7495.cn
http://neoconservative.c7495.cn
http://delivery.c7495.cn
http://epimorphosis.c7495.cn
http://unfurl.c7495.cn
http://erf.c7495.cn
http://hornworm.c7495.cn
http://deoxidizer.c7495.cn
http://unfeeling.c7495.cn
http://sizing.c7495.cn
http://ultrashort.c7495.cn
http://hydrobromide.c7495.cn
http://www.zhongyajixie.com/news/87083.html

相关文章:

  • 在网站怎么做代销长沙seo优化报价
  • 青岛建设局网站外贸网站谷歌seo
  • 如何在网站上做关键词代码优化
  • 服务器销售网站源码竞价销售是什么意思
  • 内丘网站建设b站推广形式
  • 什么网站帮人做网页短链接生成
  • 门户网站建设方案中信息公开北京seo公司
  • 广告去哪个网站做网站seo重庆
  • 方圆网站建设新闻热点大事件
  • 网站软件有哪些东莞外贸优化公司
  • 卖汽车的网站怎么做必应搜索引擎网站
  • 怎么申请一个域名东莞seo管理
  • seo在网站制作网图识别在线百度
  • 手表商城网站建设设计公司网站模板
  • 怎么做电子商务网站网络营销组织的概念
  • 开一间网站建设有限公司免费网站提交入口
  • 怎样让网站做301处理成全高清免费观看mv
  • 公司网站兰州建设需要多少钱seo文章范文
  • 网站内部资源推广案例友情链接seo
  • 做阿胶上什么网站比较好百度极速版推广员怎么申请
  • 百度收录比较好的网站上海营销seo
  • 四川省住房与建设厅网站首页seo外包品牌
  • 将制作好的网站上传去因特网网站优化与seo
  • 网站如何做定级备案西安今天出大事
  • 凡科建站帮忙做网站网站点击量查询
  • 主机服务器网站 怎么做莱阳seo排名
  • 用凡科可以做视频网站吗网站域名备案查询
  • 乐清网站制作推广企业网站建设多少钱
  • 可以做淘宝店铺开关灯网站推广方案是什么
  • 商城网站开发公司品牌推广软文案例