提交 c72c426d 编写于 作者: L lang

remove default xAxis and yAxis

上级 12df6c5e
...@@ -2,6 +2,7 @@ define(function(require) { ...@@ -2,6 +2,7 @@ define(function(require) {
'use strict'; 'use strict';
var graphic = require('../util/graphic'); var graphic = require('../util/graphic');
var zrUtil = require('zrender/core/util');
require('../coord/cartesian/Grid'); require('../coord/cartesian/Grid');
...@@ -17,11 +18,9 @@ define(function(require) { ...@@ -17,11 +18,9 @@ define(function(require) {
if (gridModel.get('show')) { if (gridModel.get('show')) {
this.group.add(new graphic.Rect({ this.group.add(new graphic.Rect({
shape:gridModel.coordinateSystem.getRect(), shape:gridModel.coordinateSystem.getRect(),
style: { style: zrUtil.defaults({
stroke: gridModel.get('borderColor'),
lineWidth: gridModel.get('borderWidth'),
fill: gridModel.get('backgroundColor') fill: gridModel.get('backgroundColor')
}, }, gridModel.getItemStyle()),
silent: true silent: true
})); }));
} }
......
...@@ -18,10 +18,6 @@ define(function () { ...@@ -18,10 +18,6 @@ define(function () {
// 默认需要 Grid 配置项 // 默认需要 Grid 配置项
grid: {}, grid: {},
// Grid 依赖 xAxis 和 yAxis
xAxis: {},
yAxis: {},
// 主题,主题 // 主题,主题
textStyle: { textStyle: {
// color: '#000', // color: '#000',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册