settingConfig.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: 'border12',
  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. // 边框主要颜色
  35. borderMainColor: '#83bff6',
  36. // 边框次要颜色
  37. borderSecondaryColor: '#00CED1',
  38. // 边框背景颜色
  39. backgroundColor: '',
  40. colorType: 'single',
  41. // 渐变色0值
  42. gradientColor0: '#83bff6',
  43. // 渐变色1值
  44. gradientColor1: '#188df0',
  45. // 渐变色色值改变方向
  46. gradientDirection: 'to right',
  47. // 透明度
  48. opacity: 100
  49. }
  50. }
  51. export const dataConfig = {
  52. ...commonConfig(customConfig)
  53. }