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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import ChartBar from '../../../src/chart/bar/ChartBar40/ChartBar40.js';
  2. import Title from "../../../src/chart/commonOptions/title";
  3. import Grid from "../../../src/chart/commonOptions/grid";
  4. // import Legend from "../../../src/chart/commonOptions/legend";
  5. let bar = new ChartBar(document.getElementsByClassName('c1')[0], {});
  6. window.addEventListener('resize', () => {
  7. bar.resize();
  8. });
  9. // setTimeout(()=>{
  10. // console.log(3000);
  11. // bar.setOption(defaultOption);
  12. // },3000)
  13. // const defaultOption = {
  14. // type: "p1",
  15. // title:Title.option('柱线混合图'),
  16. // grid:Grid.option,
  17. // tooltip: {
  18. // textColor:'#ffba00',
  19. // bgStyle:{
  20. // backgroundColor:'rgba(6,27,58,0.9)',
  21. // borderColor:'#00aeff',
  22. // borderWidth:1
  23. // },
  24. // offsetX: 30,
  25. // offsetY: 0
  26. // },
  27. // legend: {show: true},
  28. // bg:{
  29. // backgroundColor:'#000713'
  30. // },
  31. // color: ['#00eaff', '#00fcff'],
  32. // xAxis: {
  33. // type: "category",
  34. // title:'年份',
  35. // axisTick: {
  36. // show:false,
  37. // alignWithLabel: false,
  38. // interval: 'auto',
  39. // lineStyle:{
  40. // color: '#00eaff',
  41. // width: 1
  42. // },
  43. // length:5
  44. // },
  45. // axisLine:{
  46. // show:true,
  47. // lineStyle:{
  48. // color:'#0081ff',
  49. // width:2,
  50. // }
  51. // },
  52. // axisLabel:{
  53. // // show:false,
  54. // textStyle:{
  55. // color:'#567ab4'
  56. // }
  57. // },
  58. // splitLine:{
  59. // show:false,
  60. // lineStyle:{
  61. // color:'#0081ff',
  62. // width:1,
  63. // }
  64. // },
  65. // data: ['09/21', '09/22', '09/23', '09/24', '09/25', '09/26', '09/27', '09/28', '09/29', '09/30'],
  66. // },
  67. // yAxis: {
  68. // type: 'value',
  69. // title:'回流率/滞留率',
  70. // nameTextStyle: {
  71. // fontSize: 30,
  72. // color: '#88c5ff',
  73. // },
  74. // axisLabel:{
  75. // // textAlign:'left'
  76. // textStyle:{
  77. // color:'#567ab4',
  78. // textRotation1:0,//第二y轴文字旋转
  79. // }
  80. // },
  81. // axisLine:{
  82. // show:true,
  83. // lineStyle:{
  84. // color:'#0081ff',
  85. // width:1,
  86. // }
  87. // },
  88. // splitLine:{
  89. // show:false,
  90. // lineStyle:{
  91. // color:'#0081ff',
  92. // width:1,
  93. // }
  94. // },
  95. // axisTick: {
  96. // show:true,
  97. // alignWithLabel: true,
  98. // lineStyle:{
  99. // color: '#00eaff',
  100. // width: 1
  101. // },
  102. // interval: 'auto'
  103. // },
  104. // },
  105. // shape:{
  106. // barCategoryGap: '70%',
  107. // lineStyle:{
  108. // width:2,
  109. // smooth: 0.3,
  110. // circleColor: '#ffffff'
  111. // },
  112. // bgRect:{
  113. // lineColor: '#ffffff',
  114. // hoverColor: '#ffba00',
  115. // bgRectInColor: '#ffffff',
  116. // bgInHoverColor: '#ffba00',
  117. // },
  118. // },
  119. // series: [{
  120. // name: '回流总次数',
  121. // type:'bar',
  122. // data: [350,900,300,450,470,310,270,580,710,650],
  123. // },
  124. // {
  125. // name:'回流率',
  126. // type:'line',
  127. // data:[0.3,0.6,0.7,0.8,0.2,0.7,0.4,0.5,0.4,0.1]
  128. // },
  129. // ]
  130. // };