index.htm 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Highcharts Example</title>
  7. <style type="text/css">
  8. </style>
  9. </head>
  10. <body>
  11. <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  12. <script src="../../code/highcharts.js"></script>
  13. <script src="../../code/modules/exporting.js"></script>
  14. <script src="../../code/modules/export-data.js"></script>
  15. <div id="container" style="min-width: 360px; height: 400px; margin: 0 auto"></div>
  16. <script type="text/javascript">
  17. Highcharts.chart('container', {
  18. chart: {
  19. type: 'column'
  20. },
  21. title: {
  22. text: 'Efficiency Optimization by Branch'
  23. },
  24. xAxis: {
  25. categories: [
  26. 'Seattle HQ',
  27. 'San Francisco',
  28. 'Tokyo'
  29. ]
  30. },
  31. yAxis: [{
  32. min: 0,
  33. title: {
  34. text: 'Employees'
  35. }
  36. }, {
  37. title: {
  38. text: 'Profit (millions)'
  39. },
  40. opposite: true
  41. }],
  42. legend: {
  43. shadow: false
  44. },
  45. tooltip: {
  46. shared: true
  47. },
  48. plotOptions: {
  49. column: {
  50. grouping: false,
  51. shadow: false,
  52. borderWidth: 0
  53. }
  54. },
  55. series: [{
  56. name: 'Employees',
  57. color: 'rgba(165,170,217,1)',
  58. data: [150, 73, 20],
  59. pointPadding: 0.3,
  60. pointPlacement: -0.2
  61. }, {
  62. name: 'Employees Optimized',
  63. color: 'rgba(126,86,134,.9)',
  64. data: [140, 90, 40],
  65. pointPadding: 0.4,
  66. pointPlacement: -0.2
  67. }, {
  68. name: 'Profit',
  69. color: 'rgba(248,161,63,1)',
  70. data: [183.6, 178.8, 198.5],
  71. tooltip: {
  72. valuePrefix: '
  73. </script>
  74. </body>
  75. </html>
  76. ,
  77. valueSuffix: ' M'
  78. },
  79. pointPadding: 0.3,
  80. pointPlacement: 0.2,
  81. yAxis: 1
  82. }, {
  83. name: 'Profit Optimized',
  84. color: 'rgba(186,60,61,.9)',
  85. data: [203.6, 198.8, 208.5],
  86. tooltip: {
  87. valuePrefix: '
  88. </script>
  89. </body>
  90. </html>
  91. ,
  92. valueSuffix: ' M'
  93. },
  94. pointPadding: 0.4,
  95. pointPlacement: 0.2,
  96. yAxis: 1
  97. }]
  98. });
  99. </script>
  100. </body>
  101. </html>