index.htm 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. #container {
  9. max-width: 800px;
  10. min-width: 380px;
  11. margin: 0 auto;
  12. }
  13. </style>
  14. </head>
  15. <body>
  16. <script src="../../code/highcharts.js"></script>
  17. <script src="../../code/modules/variwide.js"></script>
  18. <div id="container"></div>
  19. <script type="text/javascript">
  20. Highcharts.chart('container', {
  21. chart: {
  22. type: 'variwide'
  23. },
  24. title: {
  25. text: 'Labor Costs in Europe, 2016'
  26. },
  27. subtitle: {
  28. text: 'Source: <a href="http://ec.europa.eu/eurostat/web/' +
  29. 'labour-market/labour-costs/main-tables">eurostat</a>'
  30. },
  31. xAxis: {
  32. type: 'category',
  33. title: {
  34. text: 'Column widths are proportional to GDP'
  35. }
  36. },
  37. legend: {
  38. enabled: false
  39. },
  40. series: [{
  41. name: 'Labor Costs',
  42. data: [
  43. ['Norway', 50.2, 335504],
  44. ['Denmark', 42, 277339],
  45. ['Belgium', 39.2, 421611],
  46. ['Sweden', 38, 462057],
  47. ['France', 35.6, 2228857],
  48. ['Netherlands', 34.3, 702641],
  49. ['Finland', 33.2, 215615],
  50. ['Germany', 33.0, 3144050],
  51. ['Austria', 32.7, 349344],
  52. ['Ireland', 30.4, 275567],
  53. ['Italy', 27.8, 1672438],
  54. ['United Kingdom', 26.7, 2366911],
  55. ['Spain', 21.3, 1113851],
  56. ['Greece', 14.2, 175887],
  57. ['Portugal', 13.7, 184933],
  58. ['Czech Republic', 10.2, 176564],
  59. ['Poland', 8.6, 424269],
  60. ['Romania', 5.5, 169578]
  61. ],
  62. dataLabels: {
  63. enabled: true,
  64. format: '€{point.y:.0f}'
  65. },
  66. tooltip: {
  67. pointFormat: 'Labor Costs: <b>€ {point.y}/h</b><br>' +
  68. 'GDP: <b>€ {point.z} million</b><br>'
  69. },
  70. colorByPoint: true
  71. }]
  72. });
  73. </script>
  74. </body>
  75. </html>