PolarModel.js 773 B

123456789101112131415161718192021222324252627282930313233343536
  1. var echarts = require("../../echarts");
  2. require("./AxisModel");
  3. var _default = echarts.extendComponentModel({
  4. type: 'polar',
  5. dependencies: ['polarAxis', 'angleAxis'],
  6. /**
  7. * @type {module:echarts/coord/polar/Polar}
  8. */
  9. coordinateSystem: null,
  10. /**
  11. * @param {string} axisType
  12. * @return {module:echarts/coord/polar/AxisModel}
  13. */
  14. findAxisModel: function (axisType) {
  15. var foundAxisModel;
  16. var ecModel = this.ecModel;
  17. ecModel.eachComponent(axisType, function (axisModel) {
  18. if (axisModel.getCoordSysModel() === this) {
  19. foundAxisModel = axisModel;
  20. }
  21. }, this);
  22. return foundAxisModel;
  23. },
  24. defaultOption: {
  25. zlevel: 0,
  26. z: 0,
  27. center: ['50%', '50%'],
  28. radius: '80%'
  29. }
  30. });
  31. module.exports = _default;