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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import ChartPie3 from '../../../src/chart/pie/ChartPie3/ChartPie3.js';
  2. import Title from "../../../src/chart/commonOptions/title";
  3. let chart=new ChartPie3(document.getElementsByClassName('c1')[0],{});
  4. window.addEventListener("resize",()=>{
  5. chart.resize();
  6. });
  7. // setTimeout(v=>{
  8. // chart.setOption({bg:{
  9. // backgroundColor:"#0b162f"
  10. // },
  11. // title: {},
  12. // color:['#0170a9', '#faeb00'],
  13. // series: [{
  14. // legendSet:{
  15. // color:"#fff",
  16. // colorList:['#0170a9', '#faeb00'],
  17. // show:true,
  18. // fontWeight:'normal',
  19. // fontSize:14,
  20. // legendCircle:5
  21. // },
  22. // pieSet:{
  23. // width:"70%",
  24. // circleLength:100,
  25. // circleR:2,
  26. // arcWidth:10,
  27. // color:"#00b4ff",
  28. // },
  29. // center:{
  30. // x:'50%',
  31. // y:'50%',
  32. // },
  33. // maxArc:{value:"70%"},
  34. // state:{
  35. // abnormal:"60%",
  36. // warning:"80%"
  37. // },
  38. // detailStyle:{
  39. // show:true,
  40. // fontWeight:'normal',
  41. // color:'#ffffff',
  42. // fontSize:14,
  43. // unit:"件",
  44. // numShow:0
  45. // },
  46. // dataStyle:{
  47. // fontWeight:'normal',
  48. // color:'#ffffff',
  49. // fontSize:14,
  50. // numShow:0
  51. // },
  52. // data:{
  53. // name: ['目标值',"实际值"],
  54. // value:[ 60,100]
  55. // }
  56. //
  57. // }]})
  58. // },3000)