信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.js 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. import ChartBar from '../../../src/chart/bar/ChartBar3/ChartBar3.js';
  2. // import Title from "../../../src/chart/commonOptions/title";
  3. // import Grid from "../../../src/chart/commonOptions/grid";
  4. let bar = new ChartBar(document.getElementsByClassName('c1')[0], {});
  5. window.addEventListener('resize', () => {
  6. bar.resize();
  7. });
  8. // setTimeout(() => {
  9. // bar.setOption({
  10. // color: ['#ff0000', '#faeb00', '#23ff95', '#ffc000', '#00f0ff', '#0060ff', '#4e00ff'],
  11. // bg: {
  12. // backgroundColor: '#161729'
  13. // },
  14. // title: Title.option(''),
  15. // tooltip: {},
  16. // grid: Grid.option,
  17. // xAxis: {
  18. // type: 'value',
  19. // title: '(%)',
  20. // nameTextStyle: {
  21. // color: '#02b4e1'
  22. // },
  23. // axisLine: {
  24. // show: false,
  25. // lineStyle: {
  26. // color: '#0093ff',
  27. // width: 1,
  28. // type: 'solid'
  29. // }
  30. // },
  31. // axisTick: {
  32. // show: true,
  33. // alignWithLabel: false,
  34. // interval: 'auto',
  35. // length: 2,
  36. // lineStyle: {
  37. // color: '#ffdd22',
  38. // width: 2,
  39. //
  40. // }
  41. // },
  42. // splitLine: {
  43. // show: false,
  44. // lineStyle: {
  45. // color: '#293f5f',
  46. // width: 1,
  47. // type: 'solid'
  48. // }
  49. // },
  50. // axisLabel: {
  51. // show: true,
  52. // textStyle: {
  53. // color: '#02b4e1'
  54. // }
  55. //
  56. // },
  57. // warningLine: {
  58. // show: true,
  59. // warnValue: 100
  60. // }
  61. // },
  62. // yAxis: {
  63. // type: "category",
  64. // data: ["数据1", "数据2"],
  65. // axisTick: {
  66. // show: false,
  67. // alignWithLabel: false,
  68. // interval: 'auto',
  69. // lineStyle: {
  70. // color: '#0093ff'
  71. // }
  72. // },
  73. // axisLine: {
  74. // show: false,
  75. // lineStyle: {
  76. // color: '#00dff7',
  77. // width: 2,
  78. // type: 'solid'
  79. // }
  80. // },
  81. // splitLine: {
  82. // show: false,
  83. // lineStyle: {
  84. // color: '#293f5f',
  85. // width: 1,
  86. // type: 'solid'
  87. // }
  88. // },
  89. // axisLabel: {
  90. // margin: 40,
  91. // show: true,
  92. // textStyle: {
  93. // color: '#fff'
  94. // }
  95. // }
  96. // },
  97. // series: [
  98. // {
  99. // name: '利润',
  100. // type: 'bar',
  101. // barCategoryGap: '70%',
  102. // label: {
  103. // show: true,
  104. // textStyle: {
  105. // fontSize: 12,
  106. // fontWeight: 'normal',
  107. // color: '#fff'
  108. // }
  109. // },
  110. //
  111. // data: [85, 130]
  112. // }
  113. // ]
  114. // })
  115. // }, 3000);