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

山东网站建设排行榜网站注册平台怎么注册

山东网站建设排行榜,网站注册平台怎么注册,做网站需要的照片,商城县通过Echarts的echarts.graphic.extendShape实现真正的3D柱状图 思路就是通过调整顶部面(CubeTop)、左侧面(CubeLeft)、右侧面(CubeRight)来决定柱状图的宽窄 建议优先调整顶部面#xff0c;一般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-configconst 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 stylepadding: 15px; background: linear-gradient(180.00deg, rgb(3, 36, 76),rgb(19, 36, 127) 100%)ptest/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://www.w-s-a.com/news/37491/

相关文章:

  • 做婚庆找什么网站有专门为个人网站做推广的吗
  • 网站搭建要求模板学编程需要英语基础吗
  • 网上如何建网站卖量具净水机企业网站源码
  • 网站推广 软件规划设计公司年终总结
  • 视频网站开发方法微站网建站系统
  • 渐变网站网页界面设计的宗旨是什么
  • 网站排名提升工具免费韶关做网站公司
  • 做网站一个月可以赚多少钱东营市建设工程招标网
  • 网站开发工具阿里云怎么做网站
  • 用html做静态网站成都专业logo设计公司
  • 哪里有免费建站平台233小游戏网页版在线玩
  • 为什么我的网站做不起来网站能搜索到
  • 方又圆网站建设信息流广告二级代理
  • 公司管理网站首页网站后台编辑框不显示
  • aspnet网站开发模板备案 网站建设方案书
  • 营销软件网站wordpress优秀的破解主题
  • 卧龙区网站建设国内漂亮网站欣赏
  • 服装 网站模板 wordpress石家庄做网站的公司有哪些
  • 惠州技术支持网站建设百度怎样注册免费的网站
  • 无锡哪里有做网站的公司泸州网站建设公司
  • 怎么进行网站推广jsp可以做那些小网站
  • 懒人手机网站wordpress修改秒速
  • WordPress资讯网站用花生壳做网站
  • 关于营销方面的网站建设网站怎么克隆
  • 站长网seo综合查询工具电商公司简介
  • 全能网站建设教程广告制作公司需要什么设备
  • 汽车行业做网站网站改版seo建议
  • 建设职业注册中心网站photoshop属于什么软件
  • 公司网站展示有哪些wordpress工单
  • iis新建网站seo是做什么工作的