0
点赞
收藏
分享

微信扫一扫

vue echarts调整图表和标题的距离


 

vue echarts调整图表和标题的距离_echarts

this.chart.setOption({
    grid: {
      left: 10,
      right: 10,
      bottom: 10,
      top: 10,
      containLabel: true,
    },
})

vue echarts调整图表和标题的距离_官网_02

this.chart.setOption({
    grid: {
      left: 10,
      right: 10,
      bottom: 10,
      top: 100,
      containLabel: true,
    },
})

left:grid 组件离容器左侧的距离

right:grid 组件离容器右侧的距离

bottom:grid 组件离容器下侧的距离。

top:grid 组件离容器上侧的距离。

containLabel:区域是否包含坐标轴的刻度标签

官网

举报

相关推荐

0 条评论