f86ea56f7ac0cb73714e24dc317210dba11aea7f.svn-base 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. var chart;
  20. $(document).ready(function () {
  21. // Build the chart
  22. $('#container').highcharts({
  23. chart: {
  24. plotBackgroundColor: null,
  25. plotBorderWidth: null,
  26. plotShadow: false
  27. },
  28. title: {
  29. text: '2010年浏览器市场份额'
  30. },
  31. tooltip: {
  32. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  33. },
  34. plotOptions: {
  35. pie: {
  36. allowPointSelect: true,
  37. cursor: 'pointer',
  38. dataLabels: {
  39. enabled: true,
  40. color: '#000000',
  41. connectorColor: '#000000',
  42. format: '<b>{point.name}</b>: {point.percentage:.1f} %'
  43. },
  44. showInLegend: true
  45. }
  46. },
  47. series: [{
  48. type: 'pie',
  49. name: '份额:',
  50. data: [
  51. ['Firefox', 45.0],
  52. ['IE', 26.8],
  53. {
  54. name: 'Chrome',
  55. y: 12.8,
  56. sliced: true,
  57. selected: true
  58. },
  59. ['Safari', 8.5],
  60. ['Opera', 6.2],
  61. ['Others', 0.7]
  62. ]
  63. }]
  64. });
  65. });
  66. </script>
  67. </head>
  68. <body>
  69. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  70. </body>
  71. </html>