5efc208f05eb9f2dddb26dff83d14d2e0c204c6c.svn-base 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <!--框架必需start-->
  10. <script type="text/javascript" src="<%=path%>/libs/js/jquery.js"></script>
  11. <script type="text/javascript" src="<%=path%>/libs/js/language/cn.js"></script>
  12. <script type="text/javascript" src="<%=path%>/libs/js/framework.js"></script>
  13. <link href="<%=path%>/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  14. <link rel="stylesheet" type="text/css" id="skin" prePath="<%=path%>/"/>
  15. <link rel="stylesheet" type="text/css" id="customSkin"/>
  16. <!--框架必需end-->
  17. <script src="<%=path%>/libs/thirdparty/highcharts/js/highcharts.js"></script>
  18. <script>
  19. $(function () {
  20. $('#container').highcharts({
  21. chart: {
  22. type: 'areaspline'
  23. },
  24. title: {
  25. text: '主标题'
  26. },
  27. legend: {
  28. layout: 'vertical',
  29. align: 'left',
  30. verticalAlign: 'top',
  31. x: 150,
  32. y: 100,
  33. floating: true,
  34. borderWidth: 1,
  35. backgroundColor: '#FFFFFF'
  36. },
  37. xAxis: {
  38. categories: [
  39. '星期一',
  40. '星期二',
  41. '星期三',
  42. '星期四',
  43. '星期五',
  44. '星期六',
  45. '星期日'
  46. ]
  47. },
  48. yAxis: {
  49. title: {
  50. text: '数量'
  51. }
  52. },
  53. tooltip: {
  54. shared: true,
  55. valueSuffix: ' 个'
  56. },
  57. credits: {
  58. enabled: false
  59. },
  60. plotOptions: {
  61. areaspline: {
  62. fillOpacity: 0.5
  63. }
  64. },
  65. series: [{
  66. name: '北京',
  67. data: [3, 4, 3, 5, 4, 10, 12]
  68. }, {
  69. name: '上海',
  70. data: [1, 3, 4, 3, 3, 5, 4]
  71. }]
  72. });
  73. });
  74. </script>
  75. </head>
  76. <body>
  77. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  78. </body>
  79. </html>