信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import ChartCenterDigit1 from '../../../src/chart/center/ChartCenterDigit2/ChartCenterDigit2.js';
  2. let chart=new ChartCenterDigit1(document.getElementsByClassName('c1')[0],{});
  3. window.addEventListener('resize',()=>{
  4. chart.resize();
  5. });
  6. let option = {
  7. title:{},
  8. bg:{
  9. backgroundColor:"#000713"
  10. },
  11. grid:{
  12. left: "20%",
  13. right: "18%",
  14. top: "1%",
  15. bottom: "1%",
  16. },
  17. borderIcon:{
  18. scaleX: 1,
  19. scaleY: 0.65,
  20. },
  21. flyIcon:{
  22. scale: 0.08,
  23. // posScale: 0.1,
  24. },
  25. numdata:{
  26. alert: 'high',
  27. titFontsize: 28,
  28. titColor: '#d5d7db',
  29. numfontSize: 60,
  30. numfontWeight: 'normal',
  31. numColor: '#ffffff',
  32. // numshowColor: '#ff5400',
  33. numshowBlur: 20,
  34. iskeepDec: true,
  35. isthousand: true,
  36. unitText: '单位',
  37. unitSize: 35,
  38. unitColor: '#81a7c0',
  39. // lineDistance:20,
  40. max: 0.7,
  41. min: 0.3,
  42. colorList: ['#ff0000','#fff600','#00ebff']
  43. },
  44. series: [{
  45. name: '数据一',
  46. value: 0.75
  47. },
  48. {
  49. name: '数据二',
  50. value: 0.31
  51. },
  52. {
  53. name: '数据三',
  54. value: 0.15
  55. }
  56. ]
  57. };
  58. // setTimeout(()=>{
  59. // chart.setOption(option)
  60. // },3000)