信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
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 850B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import Title from "../../../src/chart/commonOptions/title";
  2. import ChartDigit22 from '../../../src/chart/digit/ChartDigit22/ChartDigit22.js';
  3. let chart=new ChartDigit22(document.getElementsByClassName('c1')[0],{});
  4. window.addEventListener('resize',()=>{
  5. chart.resize();
  6. });
  7. setTimeout(()=>{
  8. chart.setOption(
  9. {
  10. bg: {
  11. backgroundColor: "#000000"
  12. },
  13. shape: {
  14. textStyle:{
  15. textSize:20
  16. },
  17. Gap:{
  18. left:'10%',
  19. right:'10%',
  20. top:'10%',
  21. bottom:'10%'
  22. }
  23. },
  24. color:['#778899','#666666'],
  25. series: [{
  26. name: '实际值',
  27. value: 0.4
  28. },
  29. {
  30. name: '目标值',
  31. value: 0.6
  32. }
  33. ]
  34. }
  35. );
  36. },3000)