constant.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. "use strict";
  2. var _a;
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.DEFAULT_OPTIONS = exports.PLOYGON_Y = exports.PLOYGON_X = exports.FUNNEL_TOTAL_PERCENT = exports.FUNNEL_CONVERSATION = exports.FUNNEL_MAPPING_VALUE = exports.FUNNEL_PERCENT = void 0;
  5. // 漏斗占比: data[n][yField] / data[0][yField]
  6. exports.FUNNEL_PERCENT = '$$percentage$$';
  7. // 漏斗映射值
  8. exports.FUNNEL_MAPPING_VALUE = '$$mappingValue$$';
  9. // 漏斗转化率: data[n][yField] / data[n-1][yField];
  10. exports.FUNNEL_CONVERSATION = '$$conversion$$';
  11. // 漏斗单项占总体和的百分比,用于动态漏斗图计算高度:
  12. // data[n][yField] / sum(data[0-n][yField])
  13. exports.FUNNEL_TOTAL_PERCENT = '$$totalPercentage$$';
  14. // 漏斗多边型 x 坐标
  15. exports.PLOYGON_X = '$$x$$';
  16. exports.PLOYGON_Y = '$$y$$';
  17. /**
  18. * 漏斗图 默认配置项
  19. */
  20. exports.DEFAULT_OPTIONS = {
  21. appendPadding: [0, 80],
  22. minSize: 0,
  23. maxSize: 1,
  24. meta: (_a = {},
  25. _a[exports.FUNNEL_MAPPING_VALUE] = {
  26. min: 0,
  27. max: 1,
  28. nice: false,
  29. },
  30. _a),
  31. label: {
  32. style: {
  33. fill: '#fff',
  34. fontSize: 12,
  35. },
  36. },
  37. tooltip: {
  38. showTitle: false,
  39. showMarkers: false,
  40. shared: false,
  41. },
  42. conversionTag: {
  43. offsetX: 10,
  44. offsetY: 0,
  45. style: {
  46. fontSize: 12,
  47. fill: 'rgba(0,0,0,0.45)',
  48. },
  49. },
  50. };
  51. //# sourceMappingURL=constant.js.map