信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.js 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import ChartBar from '../../../src/chart/bar/ChartBar6/ChartBar6.js';
  2. import Title from "../../../src/chart/commonOptions/title";
  3. let bar =new ChartBar(document.getElementsByClassName('c1')[0],{});
  4. window.addEventListener('resize',()=>{
  5. bar.resize();
  6. });
  7. // setTimeout(function(){
  8. // bar.setOption({
  9. // color: ['#dceeff', '#00eaff', '#7db4ff', '006cff', '#addbe6', '#4169e1', '#8d97bf', '#0025b0'],
  10. // bg: {
  11. // backgroundColor: "#112448"
  12. // },
  13. // title:Title.option(''),
  14. // grid: {
  15. // left: '20%',
  16. // right: '20%',
  17. // top: '20%',
  18. // bottom: '20%'
  19. // },
  20. // legend: {
  21. // left: "18%",
  22. // top: '6%',
  23. // itemHeight: 12,
  24. // itemWidth: 12,
  25. // itemAngelR: 20,
  26. // textStyle: {
  27. // fontSize: 16,
  28. // color: '#50a7bd'
  29. // }
  30. // },
  31. // tooltip:{
  32. // offsetX:25,
  33. // offsetY:5,
  34. // textColor:'#ffba00',
  35. // bgStyle:{
  36. // backgroundColor:'#1b3977',
  37. // borderColor:'#006e7f'
  38. // },
  39. // },
  40. // xAxis: {
  41. // type: 'category',
  42. // axisLabel: {
  43. // textStyle: {
  44. // color: '#4e75a1'
  45. // }
  46. // },
  47. // axisTick: {
  48. // show: true,
  49. // length: 2,
  50. // lineStyle: {
  51. // color: '#88c5ff',
  52. // width: 2
  53. // }
  54. // },
  55. // data: ['1月', '2月', '3月', '4月']
  56. // },
  57. // yAxis: {
  58. // type: 'value',
  59. // axisTick: {
  60. // show: true,
  61. // length: 2,
  62. // lineStyle: {
  63. // color: '#88c5ff',
  64. // width: 2
  65. // }
  66. // },
  67. // axisLabel: {
  68. // textStyle: {
  69. // color: '#4e75a1'
  70. // }
  71. // },
  72. // splitLine:{
  73. // lineStyle:{
  74. // color:'#2b3f58',
  75. // width:1
  76. // }
  77. // }
  78. // },
  79. // series: [ {
  80. // name: '目标值',
  81. // data: [60, 70, 75, 60],
  82. // splitNum:26,
  83. // label:{
  84. // show:false,
  85. // color:'#fff',
  86. // fontSize:12,
  87. // fontWeight:'normal'
  88. // }
  89. // }]
  90. // })
  91. // },3000)