信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import ChartLine from '../../../src/chart/epidemic/ChartEpidemicLine1/ChartEpidemicLine1.js';
  2. import Title from "../../../src/chart/commonOptions/title";
  3. import Grid from "../../../src/chart/commonOptions/grid";
  4. let chart = new ChartLine(document.getElementsByClassName('c1')[0], {});
  5. window.addEventListener('resize', () => {
  6. chart.resize();
  7. });
  8. setTimeout(()=>{
  9. // chart.setOption({
  10. // color: ['#c6b146','#ffffff','#94ddf3', '#18c1f1', '#ed9c01', '#d0e3ff', '#00bfff', '#008b8b', '#00fa9a', '#0000ff'],
  11. // title: Title.option(''),
  12. // bg: {
  13. // backgroundColor: '#000000'
  14. // },
  15. // grid: Grid.containLabelOption,
  16. // tooltip: {
  17. // bgStyle:{
  18. // backgroundColor: 'rgba(0,0,0,0.7)',
  19. // }
  20. // },
  21. // legend: {
  22. // itemHeight: 10,
  23. // itemWidth: 10,
  24. // itemAngelR: 20,
  25. // left:'22%',
  26. // top:'8%',
  27. // textStyle:{
  28. // color: '#ffffff'
  29. // }
  30. // },
  31. // xAxis: {
  32. // type: "category",
  33. // // title: '日期',
  34. // nameTextStyle: {
  35. // fontSize: 12,
  36. // color: '#797979',
  37. // },
  38. // namePosition: 'end',
  39. // // data: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", '八月', '九月', '十月', '十一月', '十二月'],
  40. // data: ['2-17','2-18','2-19','2-20','2-21','2-22','2-23','2-24'],
  41. // boundaryGap: false,
  42. // // scale: true,
  43. // axisLine: {
  44. // show: true,
  45. // lineStyle: {
  46. // color: '#ffffff',
  47. // opacity: 0.3,
  48. // width: 4,
  49. // type: 'solid'
  50. // }
  51. // },
  52. // axisTick: {
  53. // show: false,
  54. // alignWithLabel: false,
  55. // // interval: 'auto'
  56. // },
  57. // splitLine: {
  58. // show: true,
  59. // lineStyle: {
  60. // color: '#ffffff',
  61. // opacity: 0.3,
  62. // width: 1,
  63. // type: 'solid'
  64. // }
  65. // },
  66. // axisLabel: {
  67. // show: true,
  68. // textStyle: {
  69. // color: '#797979',
  70. // textRotation: 0
  71. // }
  72. // }
  73. // },
  74. // yAxis: {
  75. // type: 'value',
  76. // title: '单位',
  77. // nameTextStyle: {
  78. // fontSize: 12,
  79. // color: '#797979',
  80. // },
  81. // namePosition: 'end',
  82. // scale: true,
  83. // axisLine: {
  84. // show: true,
  85. // lineStyle: {
  86. // color: '#ffffff',
  87. // opacity: 0.3,
  88. // width: 4,
  89. // type: 'solid'
  90. // }
  91. // },
  92. // axisTick: {
  93. // show: false,
  94. // alignWithLabel: true,
  95. // interval: 'auto',
  96. // lineStyle: {
  97. // color: '#ffffff',
  98. // opacity: 0.3,
  99. // width: 1
  100. // }
  101. // },
  102. // splitLine: {
  103. // show: true,
  104. // lineStyle: {
  105. // color: '#ffffff',
  106. // opacity: 0.3,
  107. // width: 1,
  108. // type: 'solid'
  109. // }
  110. // },
  111. // axisLabel: {
  112. // show: true,
  113. // format:true,
  114. // textStyle: {
  115. // color: '#797979'
  116. // }
  117. // }
  118. // },
  119. // shape:{
  120. // label: {
  121. // show: false,
  122. // textStyle: {
  123. // fontSize: 12,
  124. // fontWeight: 'normal',
  125. // color: ''
  126. // }
  127. // },
  128. // lineStyle: {
  129. // width: 7,
  130. // smooth: 0.3,
  131. // },
  132. // lineShadow: {
  133. // shadowColor: '#000000',
  134. // shadowOffsetX: 0,
  135. // shadowOffsetY: 0,
  136. // shadowBlur: 0
  137. // },
  138. // iconType: 'icon1',
  139. // circleSize: 30,
  140. // circleFill: '#ffffff',
  141. // },
  142. // series: [
  143. // {
  144. // name: '类别二',
  145. // type: 'bar',
  146. // data: [79, 56, 45, 258, 31, 18, 11, 9],
  147. // }
  148. // ]
  149. // })
  150. },3000);