提交 c72c426d 编写于 作者: L lang

remove default xAxis and yAxis

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