Soonsu_combo.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>Highcharts Example</title>
  6. <!-- 1. Add these JavaScript inclusions in the head of your page -->
  7. <script type="text/javascript" src="../../../emr/smmobileweb/js/jquery.min.js"></script>
  8. <script type="text/javascript" src="../../../emr/smmobileweb/js/highcharts-android.js"></script>
  9. <!-- 1a) Optional: add a theme file -->
  10. <!--
  11. <script type="text/javascript" src="../js/themes/gray.js"></script>
  12. -->
  13. <!-- 1b) Optional: the exporting module -->
  14. <script type="text/javascript" src="../../../emr/smmobileweb/js/modules/exporting.js"></script>
  15. <!-- 2. Add the JavaScript to initialize the chart on document ready -->
  16. <script type="text/javascript">
  17. var chart;
  18. $(document).ready(function() {
  19. chart = new Highcharts.Chart({
  20. chart: {
  21. renderTo: 'container'
  22. },
  23. credits: {
  24. enabled: false
  25. },
  26. exporting:{buttons : null},
  27. title: {
  28. text: ''
  29. },
  30. xAxis: {
  31. categories: ['1/4분기', '2/4분기', '3/4분기', '4/4분기']
  32. },
  33. yAxis: {
  34. title: {
  35. text: '년도별 판매실적'
  36. }
  37. },
  38. tooltip: {
  39. formatter: function() {
  40. var s;
  41. if (this.point.name) { // the pie chart
  42. s = ''+
  43. this.point.name +': '+ this.y ;
  44. } else {
  45. s = ''+
  46. this.x +': '+ this.y;
  47. }
  48. return s;
  49. }
  50. },
  51. labels: {
  52. items: [{
  53. html: '',
  54. style: {
  55. left: '5px',
  56. top: '5px',
  57. color: 'black'
  58. }
  59. }]
  60. },
  61. series: [{
  62. type: 'column',
  63. name: '2008년',
  64. data: [6000, 7000, 8000, 10000]
  65. }, {
  66. type: 'column',
  67. name: '2009년',
  68. data: [15000, 10000, 9000, 8000]
  69. }, {
  70. type: 'column',
  71. name: '2010년',
  72. data: [12000, 9000, 10000, 9000]
  73. }, {
  74. type: 'column',
  75. name: '2011년',
  76. data: [14000, 12000, 11000, 9500]
  77. }, {
  78. type: 'spline',
  79. name: 'Average',
  80. data: [11750, 9500, 9500, 9125]
  81. }, {
  82. type: 'pie',
  83. name: 'Total consumption',
  84. data: [{
  85. name: '2008년',
  86. y: 31000,
  87. color: '#4572A7' // Jane's color
  88. }, {
  89. name: '2009년',
  90. y: 42000,
  91. color: '#AA4643' // John's color
  92. }, {
  93. name: '2010년',
  94. y: 40000,
  95. color: '#ffcc00' // John's color
  96. }, {
  97. name: '2011년',
  98. y: 46500,
  99. color: '#89A54E' // Joe's color
  100. }],
  101. center: [700, 40],
  102. size: 100,
  103. showInLegend: false,
  104. dataLabels: {
  105. enabled: false
  106. }
  107. }]
  108. });
  109. });
  110. </script>
  111. </head>
  112. <body scroll="no" topmargin="0" leftmargin="0">
  113. <!-- 3. Add the container -->
  114. <div id="container" style="width: 830px; height: 470px;"></div>
  115. </body>
  116. </html>