settingConfig.js 821 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { commonConfig, displayOption } from 'packages/js/config'
  2. export const settingConfig = {
  3. padding: [30, 30, 30, 60],
  4. legend: false,
  5. isGroup: true,
  6. data: [],
  7. // 设置面板属性的显隐
  8. displayOption: {
  9. ...displayOption,
  10. metricField: {
  11. // 指标
  12. label: '指标',
  13. enable: true,
  14. multiple: false // 是否多选
  15. },
  16. dimensionField: {
  17. // 表格列
  18. label: '维度', // 维度/查询字段
  19. enable: true,
  20. multiple: false // 是否多选
  21. }
  22. }
  23. }
  24. const customConfig = {
  25. type: 'screenScrollRanking',
  26. root: {
  27. contribution: false
  28. },
  29. customize: {
  30. rowNum: 5,
  31. waitTime: 2000,
  32. carousel: 'single',
  33. unit: '',
  34. sort: true,
  35. valueFormatter: undefined
  36. }
  37. }
  38. export const dataConfig = {
  39. ...commonConfig(customConfig)
  40. }