Soonsu_line.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. <script type="text/javascript" src="../../../emr/smmobileweb/js/Soonsu_chart.js"></script>
  10. <!-- 1a) Optional: add a theme file -->
  11. <!--
  12. <script type="text/javascript" src="../js/themes/gray.js"></script>
  13. -->
  14. <!-- 1b) Optional: the exporting module -->
  15. <!-- <script type="text/javascript" src="../../../emr/smmobileweb/js/exporting.js"></script> -->
  16. <!-- 2. Add the JavaScript to initialize the chart on document ready -->
  17. <script type="text/javascript">
  18. var chart;
  19. $(document).ready(function() {
  20. chart = new Highcharts.Chart({
  21. chart: {
  22. renderTo: 'container',
  23. defaultSeriesType: 'line',
  24. marginRight: 130,
  25. marginBottom: 25
  26. },
  27. credits: {
  28. enabled: false
  29. },
  30. exporting:{buttons : null},
  31. title: {
  32. text: '',
  33. x: -20 //center
  34. },
  35. subtitle: {
  36. text: '',
  37. x: -20
  38. },
  39. xAxis: {
  40. categories: ['2008년', '2009년', '2010년', '2011년']
  41. },
  42. yAxis: {
  43. title: {
  44. text: ''
  45. },
  46. plotLines: [{
  47. value: 0,
  48. width: 1,
  49. color: '#808080'
  50. }]
  51. },
  52. tooltip: {
  53. formatter: function() {
  54. return '<b>'+ this.series.name +'</b><br/>'+
  55. this.x +': '+ this.y ;
  56. }
  57. },
  58. legend: {
  59. layout: 'vertical',
  60. align: 'right',
  61. verticalAlign: 'top',
  62. x: -10,
  63. y: 100,
  64. borderWidth: 0
  65. },
  66. series: [{
  67. name: '1/4분기',
  68. data: [10, 10.5,22,11]
  69. }, {
  70. name: '2/4분기',
  71. data: [20,20.5,21,20]
  72. }, {
  73. name: '3/4분기',
  74. data: [1,2,1,2]
  75. }, {
  76. name: '4/4분기',
  77. data: [36,37,36.5,37]
  78. }]
  79. });
  80. });
  81. </script>
  82. </head>
  83. <body scroll="no" topmargin="0" leftmargin="0">
  84. <!-- 3. Add the container -->
  85. <div id="container" style="width: 450px; height: 275px; margin-left: 0px"></div>
  86. </body>
  87. </html>