信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import ChartBar from '../../../src/chart/bar/ChartBar26/ChartBar26.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. // type: "p1",
  11. // bg:{
  12. // backgroundColor:'#000713'
  13. // },
  14. // title: Title.option('服装销售利润'),
  15. // tooltip: {
  16. // show:false
  17. // },
  18. // grid: Grid.option,
  19. // // legend: Legend.option,
  20. // xAxis: {
  21. // type: 'value',
  22. // min:80,
  23. // axisLine: {
  24. // show: true,
  25. // lineStyle: {
  26. // color: '#0066b0',
  27. // width: 2,
  28. // type: 'solid'
  29. // }
  30. // },
  31. // axisTick: {
  32. // show: true,
  33. // alignWithLabel: false,
  34. // interval: 'auto',
  35. // length:3,
  36. // lineStyle: {
  37. // color: '#fffd00',
  38. // width:2
  39. // }
  40. // },
  41. // splitLine: {
  42. // show: false,
  43. // lineStyle: {
  44. // color: '#293f5f',
  45. // width: 1,
  46. // type: 'solid'
  47. // }
  48. // },
  49. // axisLabel: {
  50. // show: true,
  51. // textStyle: {
  52. // color: '#439eff'
  53. // }
  54. // }
  55. // },
  56. // yAxis: {
  57. // type: "category",
  58. // reverse:true,
  59. // data: ["地区一", "地区二", '地区六','地区七','地区八'],
  60. // axisLine: {
  61. // show: true,
  62. // lineStyle: {
  63. // color: '#0066b0',
  64. // width: 2,
  65. // type: 'solid'
  66. // }
  67. // },
  68. // axisTick: {
  69. // show: true,
  70. // alignWithLabel: true,
  71. // interval: 'auto',
  72. // length:3,
  73. // lineStyle: {
  74. // color: '#fffd00',
  75. // width:2
  76. // }
  77. // },
  78. // splitLine: {
  79. // show: false,
  80. // lineStyle: {
  81. // color: '#293f5f',
  82. // width: 1,
  83. // type: 'solid'
  84. // }
  85. // },
  86. // axisLabel:{
  87. // show:true,
  88. // textStyle:{
  89. // color:'#439eff'
  90. // }
  91. // }
  92. // },
  93. // shape:{
  94. // barCategoryGap: '70%',
  95. // label: {
  96. // show: true,
  97. // textStyle: {
  98. // fontSize: 12,
  99. // fontWeight: 'normal',
  100. // color: '#00f4fe'
  101. // },
  102. // positionX:5
  103. // },
  104. // },
  105. // series: [
  106. // {
  107. // name: '利润',
  108. // type: 'bar',
  109. // data: [98, 95.1, 94,90,89.5]
  110. // }
  111. // ]
  112. // })
  113. // }, 3000);