budgetInst-oneHistory.jsp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  7. <meta charset="utf-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <script src="plug-in/echarts/echarts.js" type="text/javascript"></script>
  10. <style>
  11. html{
  12. height:98%;
  13. width:98%;
  14. }
  15. body{
  16. width:100%;
  17. height:100%;
  18. margin: 0;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div id="e1" style="width:100%;height:100%"></div>
  24. </body>
  25. <script>
  26. var option = {
  27. xAxis: {
  28. type: 'category',
  29. data: ['1-2月', '3-4月', '5-6月', '7-8月', '9-10月', '11-12月']
  30. },
  31. yAxis: {
  32. type: 'value'
  33. },
  34. series: [
  35. {
  36. name:'往期申购数',
  37. data: ['${param.d1}','${param.d2}','${param.d3}', '${param.d4}','${param.d5}', '${param.d6}'],
  38. type: 'bar',
  39. itemStyle: {
  40. normal: {
  41. label: {
  42. show: true, //开启显示
  43. position: 'top', //在上方显示
  44. textStyle: { //数值样式
  45. color: 'black',
  46. fontSize: 16
  47. }
  48. }
  49. }
  50. }
  51. },
  52. {
  53. name:'本次预算数',
  54. data: ['${param.v1}','${param.v2}','${param.v3}', '${param.v4}','${param.v5}', '${param.v6}'],
  55. type: 'bar',
  56. itemStyle: {
  57. normal: {
  58. label: {
  59. show: true, //开启显示
  60. position: 'top', //在上方显示
  61. textStyle: { //数值样式
  62. color: 'black',
  63. fontSize: 16
  64. }
  65. }
  66. }
  67. }
  68. }
  69. ]
  70. ,title: {
  71. text: '${param.refYear}年${param.name}申购数量明细',
  72. subtext: '单位:${param.unit}',
  73. },
  74. legend: {
  75. data: ['往期申购数', '本次预算数']
  76. },
  77. tooltip: {
  78. trigger: 'item',
  79. formatter: '{c}'
  80. },
  81. };
  82. $(function(){
  83. setTimeout(function(){
  84. var e1 = document.getElementById("e1");
  85. var myChart = echarts.init(e1);
  86. myChart.setOption(option);
  87. },300)
  88. });
  89. </script>
  90. </html>