信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import ChartPie19 from '../../../src/chart/pie/ChartPie19/ChartPie19.js';
  2. import title from '../../../src/chart/commonOptions/title';
  3. let chart=new ChartPie19(document.getElementsByClassName('c1')[0],{});
  4. window.addEventListener("resize",()=>{
  5. chart.resize();
  6. });
  7. const defaultOption = {
  8. title: title.option(''),
  9. pie19: {
  10. center: {
  11. x:"50%",
  12. y:"50%"
  13. },
  14. width:"70%",
  15. lineLength:30,
  16. textMar:{
  17. x:"0%",
  18. y:"0%"
  19. },
  20. colorList:['#00a8ff', '#00eaff'],
  21. detailStyle:{
  22. show:true,
  23. fontWeight:'normal',
  24. fontSize:14,
  25. // numShow:0
  26. },
  27. // textUnit:"%"
  28. },
  29. series: [{
  30. name: '实际值',
  31. value: '45%'}
  32. // , {
  33. // name: "目标值",
  34. // value: 60
  35. // }, {
  36. // name: "最大值",
  37. // value: 100
  38. // }
  39. ],
  40. bg:{
  41. backgroundColor:"#000000"
  42. // backgroundColor:"#000000"
  43. },
  44. };
  45. // setTimeout(()=>{
  46. // chart.setOption(defaultOption);
  47. // },3000)