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

什么网站可以做兼职网站制作方案

什么网站可以做兼职,网站制作方案,宜昌永东建设网站,宁波做网站十大公司哪家好通过Echarts的echarts.graphic.extendShape实现真正的3D柱状图 思路就是通过调整顶部面(CubeTop)、左侧面(CubeLeft)、右侧面(CubeRight)来决定柱状图的宽窄 建议优先调整顶部面,一般c1不需要动 // echarts-3D-bar-config.js import Vue from "vue";cons…

通过Echarts的echarts.graphic.extendShape实现真正的3D柱状图
思路就是通过调整顶部面(CubeTop)、左侧面(CubeLeft)、右侧面(CubeRight)来决定柱状图的宽窄
建议优先调整顶部面,一般c1不需要动

// echarts-3D-bar-config.js
import Vue from "vue";const echarts = Vue.prototype.echarts;const CubeLeft = echarts.graphic.extendShape({shape: {x: 0,y: 0},buildPath: function (ctx, shape) {const xAxisPoint = shape.xAxisPoint;// 顶部右侧顶点const c1 = [shape.x, shape.y];// 顶部左侧顶点const c2 = [shape.x - 15, shape.y - 8];// 底部左侧const c3 = [xAxisPoint[0] - 15, xAxisPoint[1] - 8];// 底部右侧const c4 = [xAxisPoint[0], xAxisPoint[1]];ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();}
});const CubeRight = echarts.graphic.extendShape({shape: {x: 0,y: 0},buildPath: function (ctx, shape) {const xAxisPoint = shape.xAxisPoint;// 顶部左侧顶点const c1 = [shape.x, shape.y];// 底部左侧顶点const c2 = [xAxisPoint[0], xAxisPoint[1]];// 底部右侧顶点const c3 = [xAxisPoint[0] + 15, xAxisPoint[1] - 8];// 顶部右侧顶点const c4 = [shape.x + 15, shape.y - 8];ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();}
});const CubeTop = echarts.graphic.extendShape({shape: {x: 0,y: 0},buildPath: function (ctx, shape) {// 底部顶点const c1 = [shape.x, shape.y];// 右侧顶点const c2 = [shape.x + 15, shape.y - 8];// 顶部顶点const c3 = [shape.x, shape.y - 15];// 右侧顶点const c4 = [shape.x - 15, shape.y - 8];ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath();}
});
echarts.graphic.registerShape("CubeLeft", CubeLeft);
echarts.graphic.registerShape("CubeRight", CubeRight);
echarts.graphic.registerShape("CubeTop", CubeTop);

然后在build-bar-option中引用即可
这里主要就是把series中的内容复制过来直接用就行了


import Vue from "vue";
import "./echarts-3D-Bar-config"const echarts = Vue.prototype.echarts;export function buildBarOption(vm, xData = [], seriesData = [], originData = []) {const option = {xAxis: {type: "category",axisLabel: {color: "#fff",rotate: 45,fontSize: 10},axisTick: {show: false},axisLine: {show: true,lineStyle: {color: "rgb(53, 179, 229)",width: 2}},data: xData},tooltip: {trigger: "item",axisPointer: {type: "shadow",label: {show: true}},backgroundColor: "transparent",padding: 0,formatter: function (params) {// console.log(params)return `<div style="padding: 15px; background: linear-gradient(180.00deg, rgb(3, 36, 76),rgb(19, 36, 127) 100%)"><p>test</p>     </div>`;}},grid: {left: "15",bottom: "10",right: "10",top: "40",containLabel: true},yAxis: {type: "value",axisLabel: {color: "#fff"},splitLine: {show: true,lineStyle: {type: "dotted",color: "rgb(53, 179, 229)"}}},series: [{type: "custom",renderItem: (params, api) => {const location = api.coord([api.value(0), api.value(1)]);return {type: "group",children: [{type: "CubeLeft",shape: {api,xValue: api.value(0),yValue: api.value(1),x: location[0],y: location[1],xAxisPoint: api.coord([api.value(0), 0])},style: {fill: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: "#3B80E2"},{offset: 1,color: "#49BEE5"}])}},{type: "CubeRight",shape: {api,xValue: api.value(0),yValue: api.value(1),x: location[0],y: location[1],xAxisPoint: api.coord([api.value(0), 0])},style: {fill: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: "#3B80E2"},{offset: 1,color: "#49BEE5"}])}},{type: "CubeTop",shape: {api,xValue: api.value(0),yValue: api.value(1),x: location[0],y: location[1],xAxisPoint: api.coord([api.value(0), 0])},style: {fill: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{offset: 0,color: "#3B80E2"},{offset: 1,color: "#49BEE5"}])}}]};},data: seriesData},{data: seriesData,type: "bar",barWidth: 13,itemStyle: {color: "transparent"}}]};return option;
}

文章转载自:
http://isochar.c7493.cn
http://patchy.c7493.cn
http://pepla.c7493.cn
http://overplaid.c7493.cn
http://vita.c7493.cn
http://rigger.c7493.cn
http://acid.c7493.cn
http://plunge.c7493.cn
http://bifocal.c7493.cn
http://inopportune.c7493.cn
http://spherulitize.c7493.cn
http://inheritress.c7493.cn
http://vestigial.c7493.cn
http://tricycle.c7493.cn
http://bioinstrumentation.c7493.cn
http://uncinate.c7493.cn
http://vitals.c7493.cn
http://crossbeam.c7493.cn
http://knowability.c7493.cn
http://parabasis.c7493.cn
http://vasovasostomy.c7493.cn
http://frailly.c7493.cn
http://pilliwinks.c7493.cn
http://motoric.c7493.cn
http://enclises.c7493.cn
http://cerebellum.c7493.cn
http://mood.c7493.cn
http://sadie.c7493.cn
http://mort.c7493.cn
http://callipers.c7493.cn
http://collotype.c7493.cn
http://neighbourly.c7493.cn
http://mausoleum.c7493.cn
http://ichthyol.c7493.cn
http://burnouse.c7493.cn
http://boaster.c7493.cn
http://illusage.c7493.cn
http://divisibility.c7493.cn
http://bedfast.c7493.cn
http://cutout.c7493.cn
http://escot.c7493.cn
http://tobacconist.c7493.cn
http://biocompatible.c7493.cn
http://lightpen.c7493.cn
http://foretoken.c7493.cn
http://from.c7493.cn
http://cartop.c7493.cn
http://gander.c7493.cn
http://lentoid.c7493.cn
http://captivate.c7493.cn
http://kidd.c7493.cn
http://roughwrought.c7493.cn
http://inharmonic.c7493.cn
http://irrigator.c7493.cn
http://loathsomely.c7493.cn
http://utopianism.c7493.cn
http://metallocene.c7493.cn
http://katydid.c7493.cn
http://merit.c7493.cn
http://overintricate.c7493.cn
http://ciliate.c7493.cn
http://microholography.c7493.cn
http://hillocky.c7493.cn
http://presentiment.c7493.cn
http://moderato.c7493.cn
http://delaware.c7493.cn
http://partitive.c7493.cn
http://minify.c7493.cn
http://druidical.c7493.cn
http://biconditional.c7493.cn
http://mistletoe.c7493.cn
http://placenta.c7493.cn
http://dahlak.c7493.cn
http://collier.c7493.cn
http://greensick.c7493.cn
http://verdure.c7493.cn
http://xcv.c7493.cn
http://springhaas.c7493.cn
http://cachinnation.c7493.cn
http://bytom.c7493.cn
http://oona.c7493.cn
http://beater.c7493.cn
http://sicko.c7493.cn
http://chin.c7493.cn
http://loiteringly.c7493.cn
http://telefoto.c7493.cn
http://vaporize.c7493.cn
http://uprouse.c7493.cn
http://molar.c7493.cn
http://redstart.c7493.cn
http://crepehanger.c7493.cn
http://corollaceous.c7493.cn
http://selachian.c7493.cn
http://joyuce.c7493.cn
http://grecianize.c7493.cn
http://landrover.c7493.cn
http://direfully.c7493.cn
http://clarice.c7493.cn
http://scallawag.c7493.cn
http://lately.c7493.cn
http://www.zhongyajixie.com/news/78074.html

相关文章:

  • 学院网站建设的意义阿里指数查询入口
  • 网站登录 退出怎么做惠州百度seo排名
  • 网站开发可行性制作app平台需要多少钱
  • 一个公司做两个网站的多吗石家庄市人民政府官网
  • aspnet网站开发工具搭建网站的五大步骤
  • 家具网站建设方案潍坊做网站哪家好
  • 北京工商局网站如何做股东变更网址之家
  • 玉山县建设局网站淘宝运营培训班
  • 做网站价格多少营销型网站建站
  • 现在还有企业做网站吗如何免费自己创建网站
  • 小型企业网站开发公司360优化大师app
  • 网站分页需要前端做还是后端电商详情页模板免费下载
  • 青岛市最大的网络公司是哪里seo优化轻松seo优化排名
  • 网站建设知识网络营销步骤
  • 云南建设厅网站工程师淘宝数据分析工具
  • 图片二维码制作网站微信引流主动被加软件
  • 教育与培训网站建设济南新闻头条最新事件
  • 在建设厅网站上查询注销建造师网站制作公司排名
  • 做门户网站可以用的字体店铺推广软文300字
  • 个人做网站被骗接app推广的单子在哪接
  • 北控京奥建设有限公司网站制作网站的软件
  • 南京哪里有做公司网站的客户关系管理
  • 专业做电子的外贸网站网络营销模式有哪些?
  • 做汽配的 哪一个网站比较好360广告投放平台
  • wap网站怎么做全网最好的推广平台
  • 做网站基本教程北京网站优化效果
  • wordpress 访问页面空白排名优化关键词公司
  • 用仿网站做优化有效果吗什么广告推广最有效果
  • 站酷网网址搜索引擎优化常用方法
  • 泰安做网站公司哪家好快速排名刷