contants.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { Plot } from '../../core/plot';
  2. import { deepAssign } from '../../utils';
  3. /**
  4. * 饼图默认配置项
  5. */
  6. export var DEFAULT_OPTIONS = deepAssign({}, Plot.getDefaultOptions(), {
  7. legend: {
  8. position: 'right',
  9. radio: {},
  10. },
  11. tooltip: {
  12. shared: false,
  13. showTitle: false,
  14. showMarkers: false,
  15. },
  16. label: {
  17. layout: { type: 'limit-in-plot', cfg: { action: 'ellipsis' } },
  18. },
  19. /** 饼图样式, 不影响暗黑主题 */
  20. pieStyle: {
  21. stroke: 'white',
  22. lineWidth: 1,
  23. },
  24. /** 饼图中心文本默认样式 */
  25. statistic: {
  26. title: {
  27. style: { fontWeight: 300, color: '#4B535E', textAlign: 'center', fontSize: '20px', lineHeight: 1 },
  28. },
  29. content: {
  30. style: {
  31. fontWeight: 'bold',
  32. color: 'rgba(44,53,66,0.85)',
  33. textAlign: 'center',
  34. fontSize: '32px',
  35. lineHeight: 1,
  36. },
  37. },
  38. },
  39. /** 默认关闭 text-annotation 动画 */
  40. theme: {
  41. components: {
  42. annotation: {
  43. text: {
  44. animate: false,
  45. },
  46. },
  47. },
  48. },
  49. });
  50. //# sourceMappingURL=contants.js.map