信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import ChartDigit7 from '../../../src/chart/digit/ChartDigit7/ChartDigit7.js';
  2. import Title from "../../../src/chart/commonOptions/title";
  3. let chart=new ChartDigit7(document.getElementsByClassName('c1')[0],{});
  4. window.addEventListener('resize',()=>{
  5. chart.resize();
  6. });
  7. // setTimeout(()=>{
  8. // chart.setOption(
  9. // {
  10. // title: Title.option(''),
  11. // bg: {
  12. // backgroundColor: "#101028"
  13. // },
  14. // grid: {
  15. // left: "28%",
  16. // right: "28%",
  17. // top: "35%",
  18. // bottom: "35%"
  19. // },
  20. // realNum:{
  21. // color: '#000000',
  22. // wordSize: 24,
  23. // numSize: 46,
  24. // fontWeight: 'normal',
  25. // textAlign: 'left',
  26. // textLineHeight: 'middle',
  27. // numleft: 8,
  28. // rectBgColor: '#94ddf3',
  29. // rectPaddingtop: 5,
  30. // rectPaddingleft: 15,
  31. // cutangle: 12,
  32. // isthousand: false
  33. // },
  34. // targetNum:{
  35. // color: '#fff',
  36. // wordSize: 24,
  37. // numSize: 46,
  38. // fontWeight: 'normal',
  39. // textAlign: 'left',
  40. // textLineHeight: 'middle',
  41. // numleft: 8,
  42. // rectBgColor: '#18c1f1',
  43. // rectPaddingtop: 5,
  44. // rectPaddingleft: 15,
  45. // rectmarginTop:12,
  46. // cutangle: 12,
  47. // isthousand: false
  48. // },
  49. // series: [{
  50. // name: '实际',
  51. // value: 52000
  52. // },
  53. // {
  54. // name: '目标',
  55. // value: 50000
  56. // }
  57. // ]
  58. // }
  59. // );
  60. // },3000)