constant.js 835 B

123456789101112131415161718192021222324252627282930313233
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.DEFAULT_OPTIONS = exports.RAW_FIELDS = void 0;
  4. /** 默认的源字段 */
  5. exports.RAW_FIELDS = ['x', 'y', 'r', 'name', 'value', 'path', 'depth'];
  6. exports.DEFAULT_OPTIONS = {
  7. // 默认按照 name 字段对颜色进行分类
  8. colorField: 'name',
  9. autoFit: true,
  10. pointStyle: {
  11. lineWidth: 0,
  12. stroke: '#fff',
  13. },
  14. // 默认不开启图例
  15. legend: false,
  16. hierarchyConfig: {
  17. size: [1, 1],
  18. padding: 0,
  19. },
  20. label: {
  21. fields: ['name'],
  22. layout: {
  23. type: 'limit-in-shape',
  24. },
  25. },
  26. tooltip: {
  27. showMarkers: false,
  28. showTitle: false,
  29. },
  30. // 默认不可以下钻
  31. drilldown: { enabled: false },
  32. };
  33. //# sourceMappingURL=constant.js.map