信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import ChartDigit21 from '../../../src/chart/digit/ChartDigit21/ChartDigit21.js';
  2. let chart=new ChartDigit21(document.getElementsByClassName('c1')[0],{});
  3. window.addEventListener('resize',()=>{
  4. chart.resize();
  5. });
  6. const defaultOption = {
  7. bg: {
  8. backgroundColor: "#000"
  9. },
  10. digit21: {
  11. center: {
  12. x: "50%",
  13. y: "50%"
  14. },
  15. width: "40%",
  16. ellipseLineColor: '#15c8d8',
  17. glowLineColor: '#66ffff',
  18. rectColor: '#83f7ff',
  19. ploygonColor: '#01eaff',
  20. sportLineColor: '#1f1f1f',
  21. textColor: '#fff',
  22. textShdowColor: 'blue',
  23. fontSize: 40
  24. },
  25. shape: {
  26. icon: {
  27. size: 80,
  28. offsetX: 0,
  29. offsetY: 0,
  30. rotation: 0,
  31. iconColor: '#fff',
  32. iconShadowColor: '#03c5b1'
  33. },
  34. iconType: {
  35. type: 'icon2',
  36. path: ''
  37. // path: ''
  38. }
  39. },
  40. series: [
  41. {
  42. name: '总仓数',
  43. value: 20
  44. }
  45. ]
  46. }
  47. // setTimeout(()=>{
  48. // chart.setOption(defaultOption);
  49. // },2000)