信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 904B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import Title from "../../../src/chart/commonOptions/title";
  2. import ChartDigit23 from '../../../src/chart/digit/ChartDigit23/ChartDigit23.js';
  3. let chart=new ChartDigit23(document.getElementsByClassName('c1')[0],{});
  4. window.addEventListener('resize',()=>{
  5. chart.resize();
  6. });
  7. // setTimeout(()=>{
  8. // chart.setOption(
  9. // {
  10. // bg: {
  11. // backgroundColor: "#234556"
  12. // },
  13. // color:['#5b88fb','#d3defb'],
  14. // shape: {
  15. // textStyle:{
  16. // textSize:30,
  17. // text1Color:'#789666',
  18. // text2Color:'#654222'
  19. // },
  20. // circle: {
  21. // cx:'50%',
  22. // cy:'40%',
  23. // r: '8%'
  24. // },
  25. // sector: {
  26. // color:'#ffffff'
  27. // }
  28. // },
  29. // series: [{
  30. // name: '已建成',
  31. // value: 61
  32. // },
  33. // {
  34. // name: '建设中',
  35. // value: 7
  36. // }
  37. // ]
  38. // }
  39. // );
  40. // },3000)