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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. import Chart from "../../../src/chart/line/ChartLine10/ChartLine10";
  2. import Title from "../../../src/chart/commonOptions/title";
  3. import Grid from "../../../src/chart/commonOptions/grid";
  4. // import bar15 from "./ChartBar15_1eba2";
  5. const consoleWarn = window.console.warn;
  6. window.console.warn = function() {
  7. const string = arguments[0];
  8. const filterStrings = [
  9. 'is not power of two',
  10. 'image is too big',
  11. 'marked for update',
  12. 'can\'t invert matrix'
  13. ];
  14. // filter warnings containing above strings
  15. const shouldBeFiltered = filterStrings.some(string => (
  16. arguments[0].includes('THREE') && arguments[0].includes(string)
  17. ));
  18. if (shouldBeFiltered) {
  19. // console.log("find",arguments[0])
  20. // log it to console without second argument, which contains reference to `image`
  21. // consoleWarn.call(null, arguments[0]);
  22. } else {
  23. // pass other warnings without changes
  24. consoleWarn.apply(null, arguments);
  25. }
  26. };
  27. // let bar =new bar15(document.querySelector(".c1"),{})
  28. let line=new Chart(document.querySelector(".c1"),{});
  29. window.addEventListener("resize",function () {
  30. // console.log("???")
  31. line.resize()
  32. })
  33. // setTimeout(()=>{
  34. //
  35. // line.setOption( {
  36. // color: ['#c6b146', '#ffffff', '#4169e1', '#ffc000', '#0000ff', '#ff7200', '#00ffff', '#ffe79e'],
  37. // title: Title.option(''),
  38. // bg: {
  39. // backgroundColor: '#2b2729'
  40. // },
  41. // grid: Grid.option,
  42. // tooltip: {
  43. // bgStyle: {
  44. // backgroundColor: '#080404',
  45. // // borderColor:'#ffffff',
  46. // // borderWidth:1,
  47. // },
  48. // offsetX: 30,
  49. // angleR: 5
  50. // // nameColor:'#ffda2a',
  51. // // valueColor:'#ffda2a'
  52. // },
  53. // legend: {
  54. // itemHeight: 10,
  55. // itemWidth: 10,
  56. // itemAngelR: 20,
  57. // left: '22%',
  58. // top: '8%'
  59. // },
  60. // xAxis: {
  61. // type: "category",
  62. // // title: '日期',
  63. // nameTextStyle: {
  64. // fontSize: 12,
  65. // color: '#cccccc',
  66. // },
  67. // namePosition: 'end',
  68. // data: ["一月", "二月", "三月", "四月", "五月"],
  69. // boundaryGap: false,
  70. // // scale: true,
  71. // axisLine: {
  72. // show: true,
  73. // lineStyle: {
  74. // color: 'rgba(255,255,255,0.5)',
  75. // width: 4,
  76. // type: 'solid'
  77. // }
  78. // },
  79. // axisTick: {
  80. // show: true,
  81. // alignWithLabel: true,
  82. // length: 2,
  83. // lineStyle: {
  84. // width: 1,
  85. // color: '#fffe00'
  86. // }
  87. // },
  88. // // splitLine: {
  89. // // show: true,
  90. // // lineStyle: {
  91. // // color: 'rgba(255,255,255,0.3)',
  92. // // width: 1,
  93. // // type: 'solid'
  94. // // }
  95. // // },
  96. // axisLabel: {
  97. // show: true,
  98. // textStyle: {
  99. // color: '#857c59',
  100. // textRotation: 0
  101. // }
  102. // }
  103. // },
  104. // yAxis: {
  105. // type: 'value',
  106. // title: '单位',
  107. // nameTextStyle: {
  108. // fontSize: 12,
  109. // color: '#777777',
  110. // },
  111. // namePosition: 'end',
  112. // scale: true,
  113. // axisLine: {
  114. // show: false,
  115. // lineStyle: {
  116. // color: '#234e82',
  117. // width: 2,
  118. // type: 'solid'
  119. // }
  120. // },
  121. // axisTick: {
  122. // show: false,
  123. // alignWithLabel: false,
  124. // length: 2,
  125. // lineStyle: {
  126. // width: 1,
  127. // color: '#fffe00'
  128. // }
  129. // },
  130. // splitLine: {
  131. // show: false,
  132. // lineStyle: {
  133. // color: '#293f5f',
  134. // width: 1,
  135. // type: 'solid'
  136. // }
  137. // },
  138. //
  139. // axisLabel: {
  140. // show: true,
  141. // textStyle: {
  142. // color: '#777777'
  143. // }
  144. // }
  145. //
  146. // },
  147. // shape: {
  148. // label: {
  149. // show: false,
  150. // textStyle: {
  151. // fontSize: 12,
  152. // fontWeight: 'normal',
  153. // color: ''
  154. // }
  155. // },
  156. //
  157. // lineStyle: {
  158. // width: 2,
  159. // smooth: 0.3,
  160. //
  161. // },
  162. // lineShadow: {
  163. // shadowColor: '#000000',
  164. // shadowOffsetX: 0,
  165. // shadowOffsetY: 0,
  166. // shadowBlur: 0
  167. // },
  168. // iconType: 'circle',
  169. // circleSize: 5,
  170. // },
  171. // series: [
  172. // {
  173. // name: '类别1',
  174. // data: [0,0,0,0,0],
  175. // }, {
  176. // name: '类别2',
  177. //
  178. // data:[0,0,0,0,0],
  179. // }
  180. // ]
  181. // })
  182. // },3000);