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

index.js 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. import ChartLine from '../../../src/chart/line/ChartLine1/ChartLine1.js';
  2. import Title from "../../../src/chart/commonOptions/title";
  3. import Grid from "../../../src/chart/commonOptions/grid";
  4. import ToolTip from "../../../src/chart/commonOptions/tooltip";
  5. let chart = new ChartLine(document.getElementsByClassName('c1')[0], {});
  6. window.addEventListener('resize', () => {
  7. chart.resize();
  8. });
  9. // setTimeout(()=>{
  10. // chart.setOption({
  11. // color: ["#d0e3ff", '#66ffff'],
  12. // title: Title.option(''),
  13. // grid: Grid.option,
  14. // tooltip: ToolTip.option,
  15. // legend: {
  16. // left: "45%",
  17. // top: '6%',
  18. // itemHeight: 10,
  19. // itemWidth: 10,
  20. // itemAngelR: 20,
  21. // textStyle: {
  22. // fontSize: 16,
  23. // color: '#50a7bd'
  24. // }
  25. // },
  26. // bg: {
  27. // backgroundColor: '#161729'
  28. // },
  29. // xAxis: {
  30. // type: "category",
  31. // // title: '日期',
  32. // nameTextStyle: {
  33. // fontSize: 12,
  34. // color: '#50a7bd',
  35. // },
  36. // namePosition: 'end',
  37. // data: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
  38. // boundaryGap: true,
  39. // // scale: true,
  40. // axisLine: {
  41. // show: true,
  42. // lineStyle: {
  43. // color: '#00dff7',
  44. // width: 2,
  45. // type: 'solid'
  46. // }
  47. // },
  48. // axisTick:{
  49. // show:true,
  50. // lineStyle:{
  51. // color:'#cee1ff',
  52. // width:2
  53. // },
  54. // length:3,
  55. // alignWithLabel:true
  56. // },
  57. // splitLine: {
  58. // show: true,
  59. // alignWidthLabel: true,
  60. // lineStyle: {
  61. // color: '#293f5f',
  62. // width: 1,
  63. // type: 'dash',
  64. // }
  65. // },
  66. // axisLabel:{
  67. // show:true,
  68. // textStyle:{
  69. // color:'#50a7bd'
  70. // }
  71. // },
  72. // },
  73. // yAxis: {
  74. // type: 'value',
  75. // title: '气温/℃',
  76. // nameTextStyle: {
  77. // fontSize: 12,
  78. // color: '#50a7bd',
  79. // },
  80. // namePosition: 'end',
  81. // scale: true,
  82. // axisLine: {
  83. // show: true,
  84. // lineStyle: {
  85. // color: '#00dff7',
  86. // width: 2,
  87. // type: 'solid'
  88. // }
  89. // },
  90. // axisTick:{
  91. // show:true,
  92. // lineStyle:{
  93. // color:'#cee1ff',
  94. // width:2
  95. // },
  96. // length:3,
  97. // alignWithLabel:true
  98. // },
  99. // splitLine: {
  100. // show: true,
  101. // lineStyle: {
  102. // color: '#293f5f',
  103. // width: 1,
  104. // type: 'solid'
  105. // }
  106. // },
  107. //
  108. // axisLabel:{
  109. // show:true,
  110. // textStyle:{
  111. // color:'#50a7bd'
  112. // }
  113. // },
  114. //
  115. // },
  116. // series: [
  117. // {
  118. // name: '最高气温',
  119. // type: 'bar',
  120. // label: {
  121. // show: false,
  122. // textStyle: {
  123. // fontSize: 12,
  124. // fontWeight: 'normal',
  125. // color: ''
  126. // }
  127. // },
  128. //
  129. // lineStyle: {
  130. // width: 2,
  131. // smooth: false,
  132. //
  133. // },
  134. // lineShadow: {
  135. // shadowColor: '#000',
  136. // shadowOffsetX: 0,
  137. // shadowOffsetY: 0,
  138. // shadowBlur: 0
  139. // },
  140. // iconType: 'circle',
  141. // circleSize: 16,
  142. // circleFill: '#fff',
  143. // data: [0.2, 0.2, 2.1, 1.9, 0.3, 0.7, 0.1],
  144. // }
  145. // ]
  146. // })
  147. // },3000);