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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import ChartDigit1 from '../../../src/chart/digit/ChartDigit1/ChartDigit1.js';
  2. import Title from "../../../src/chart/commonOptions/title";
  3. let chart=new ChartDigit1(document.getElementsByClassName('c1')[0],{});
  4. window.addEventListener('resize',()=>{
  5. chart.resize();
  6. });
  7. // setTimeout(()=>{
  8. // chart.setOption( {
  9. // title:Title.option(''),
  10. // bg:{
  11. // backgroundColor:"#1d1a2d"
  12. // },
  13. // grid:{
  14. // left: "28%",
  15. // top: "35%",
  16. // },
  17. // flyicon: {
  18. // iconName: 'icon1',
  19. // iconColor: '#ffffff',
  20. // shadowColor: '#00deff',
  21. // shadowBlur: 50,
  22. // scale: '75%',
  23. // left: 0,
  24. // top: 0
  25. // },
  26. // shuline: {
  27. // lineColor: '#ffffff',
  28. // lineX: 15,
  29. // lineY: 8,
  30. // lineW: 2,
  31. // lineH: 34
  32. // },
  33. // themetit:{
  34. // themeColor: '#ffffff',
  35. // themeSize: 24,
  36. // fontWeight: 'normal',
  37. // textAlign: 'left',
  38. // left: 15,
  39. // top: 15
  40. // },
  41. // numcont:{
  42. // themeColor: '#ffffff',
  43. // themeSize: 42,
  44. // fontWeight: 'normal',
  45. // textAlign: 'left',
  46. // left: 5,
  47. // top: 12,
  48. // shadowColor: '#00deff',
  49. // shadowBlur: 40,
  50. // isthousand: true
  51. // },
  52. // series: [{
  53. // name: '预测指标数据',
  54. // value: 23857198
  55. // }
  56. // ]
  57. // });
  58. // },3000)