信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import ChartTable from '../../../src/chart/table/ChartTable8/ChartTable8';
  2. let chart=new ChartTable(document.getElementsByClassName('c1')[0],{});
  3. window.addEventListener('resize',()=>{
  4. chart.resize();
  5. });
  6. setTimeout(()=>{
  7. // chart.setOption(opt);
  8. },3000)
  9. let opt = {
  10. bg:{
  11. backgroundColor:"#1C334B"
  12. },
  13. grid:{
  14. left: "20%",
  15. right: "20%",
  16. top: "20%",
  17. bottom: "20%"
  18. },
  19. table: {
  20. visibleNum:5,
  21. headFontSize:14,
  22. tableFontSize:14,
  23. tableHeaderColor:"#040a13",
  24. headBgColor:"rgba(31,90,128,0.5)",
  25. headBorderColor:"rgba(31,90,128,0)",
  26. lineBgColor:"#b1bd2a",
  27. tableTextColor:"#ffffff",
  28. fillColor:"rgba(0,0,0,0)",
  29. borderColor:"rgba(31,90,128,0.5)",
  30. rankingTop1:"#e71f49",
  31. rankingTop2:"#e76a1f",
  32. rankingTop3:"#e7991f",
  33. rankingTop4:"#00ff00",
  34. rankingTopTextColor:"#040a13"
  35. },
  36. series: [{
  37. name: '序号',
  38. data: [1, 2, 3, 4, 5,6, 7, 8, 9]
  39. },
  40. {
  41. name: '分类1',
  42. data: ['类型1','类型2','类型3','类型4','类型5','类型6','类型7','类型8','类型9'],
  43. },
  44. {
  45. name: '属性2',
  46. data: ['属性1','属性2','属性3','属性4','属性5','属性6','属性7','属性8','属性9'],
  47. }
  48. ,
  49. {
  50. name: '属性3',
  51. data: ['属性1','属性2','属性3','属性4','属性5','属性6','属性7qwewqewqewqweqwqewqewq','属性8','属性9'],
  52. }
  53. ]
  54. };