GridModel.js 774 B

12345678910111213141516171819202122232425262728293031323334
  1. require("./AxisModel");
  2. var ComponentModel = require("../../model/Component");
  3. // Grid 是在有直角坐标系的时候必须要存在的
  4. // 所以这里也要被 Cartesian2D 依赖
  5. var _default = ComponentModel.extend({
  6. type: 'grid',
  7. dependencies: ['xAxis', 'yAxis'],
  8. layoutMode: 'box',
  9. /**
  10. * @type {module:echarts/coord/cartesian/Grid}
  11. */
  12. coordinateSystem: null,
  13. defaultOption: {
  14. show: false,
  15. zlevel: 0,
  16. z: 0,
  17. left: '10%',
  18. top: 60,
  19. right: '10%',
  20. bottom: 60,
  21. // If grid size contain label
  22. containLabel: false,
  23. // width: {totalWidth} - left - right,
  24. // height: {totalHeight} - top - bottom,
  25. backgroundColor: 'rgba(0,0,0,0)',
  26. borderWidth: 1,
  27. borderColor: '#ccc'
  28. }
  29. });
  30. module.exports = _default;