settingConfig.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { commonConfig } from '../../js/config'
  2. export const settingConfig = {
  3. padding: [30, 30, 30, 60],
  4. legend: false,
  5. isGroup: true,
  6. data: [],
  7. // displayOption: {
  8. // color: '',
  9. // backgroundColor: ''
  10. // }
  11. // 设置面板属性的显隐
  12. displayOption: {
  13. dataAllocation: {
  14. // 是否存在数据配置
  15. enable: false
  16. }
  17. }
  18. }
  19. const customConfig = {
  20. type: 'border1',
  21. root: {
  22. version: '2023071001',
  23. contribution: false,
  24. // 绕x轴旋转角度
  25. rotateX: 0,
  26. // 绕y轴旋转角度
  27. rotateY: 0,
  28. // 绕z轴旋转角度
  29. rotateZ: 0,
  30. // 透视距离
  31. perspective: 500
  32. },
  33. customize: {
  34. borderMainColor: '#83bff6',
  35. borderSecondaryColor: '#00CED1',
  36. backgroundColor: '',
  37. colorType: 'single',
  38. // 渐变色0值
  39. gradientColor0: '#83bff6',
  40. // 渐变色1值
  41. gradientColor1: '#188df0',
  42. // 渐变色色值改变方向
  43. gradientDirection: 'to right',
  44. // 透明度
  45. opacity: 100
  46. }
  47. }
  48. export const dataConfig = {
  49. ...commonConfig(customConfig)
  50. }