ECharts常用设置记录

一、配置文档

  http://echarts.baidu.com/option.html#title

二、属性配置

  1、图表与边框容器距离。

1             grid: {
2                 top: '10%',
3                 left: '70',
4                 right: '4%',
5                 bottom: '18%'
6             },

  2、图表放大缩小。

 1 dataZoom: [
 2             {
 3                 show: true,
 4                 realtime: true,
 5                 start: 65,
 6                 end: 100
 7             },
 8             {
 9                 type: 'inside',
10                 realtime: true,
11                 start: 65,
12                 end: 85
13             }
14             ],

  3、Y轴数据最大值与刻度最大值占比

1  yAxis: [
2                 {                 
3                     boundaryGap: ['0%', '10%']
4                 }
5             ],

 

posted on 2017-03-28 14:20  yuekong2010  阅读(215)  评论(0编辑  收藏  举报