skies.src.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /**
  2. * @license Highcharts JS v6.1.0 (2018-04-13)
  3. *
  4. * (c) 2009-2017 Torstein Honsi
  5. *
  6. * License: www.highcharts.com/license
  7. */
  8. 'use strict';
  9. (function (factory) {
  10. if (typeof module === 'object' && module.exports) {
  11. module.exports = factory;
  12. } else {
  13. factory(Highcharts);
  14. }
  15. }(function (Highcharts) {
  16. (function (Highcharts) {
  17. /**
  18. * (c) 2010-2017 Torstein Honsi
  19. *
  20. * License: www.highcharts.com/license
  21. *
  22. * Skies theme for Highcharts JS
  23. * @author Torstein Honsi
  24. */
  25. Highcharts.theme = {
  26. colors: ['#514F78', '#42A07B', '#9B5E4A', '#72727F', '#1F949A',
  27. '#82914E', '#86777F', '#42A07B'],
  28. chart: {
  29. className: 'skies',
  30. borderWidth: 0,
  31. plotShadow: true,
  32. plotBackgroundImage: 'http://www.highcharts.com/demo/gfx/skies.jpg',
  33. plotBackgroundColor: {
  34. linearGradient: [0, 0, 250, 500],
  35. stops: [
  36. [0, 'rgba(255, 255, 255, 1)'],
  37. [1, 'rgba(255, 255, 255, 0)']
  38. ]
  39. },
  40. plotBorderWidth: 1
  41. },
  42. title: {
  43. style: {
  44. color: '#3E576F',
  45. font: '16px Lucida Grande, Lucida Sans Unicode,' +
  46. ' Verdana, Arial, Helvetica, sans-serif'
  47. }
  48. },
  49. subtitle: {
  50. style: {
  51. color: '#6D869F',
  52. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  53. ' Verdana, Arial, Helvetica, sans-serif'
  54. }
  55. },
  56. xAxis: {
  57. gridLineWidth: 0,
  58. lineColor: '#C0D0E0',
  59. tickColor: '#C0D0E0',
  60. labels: {
  61. style: {
  62. color: '#666',
  63. fontWeight: 'bold'
  64. }
  65. },
  66. title: {
  67. style: {
  68. color: '#666',
  69. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  70. ' Verdana, Arial, Helvetica, sans-serif'
  71. }
  72. }
  73. },
  74. yAxis: {
  75. alternateGridColor: 'rgba(255, 255, 255, .5)',
  76. lineColor: '#C0D0E0',
  77. tickColor: '#C0D0E0',
  78. tickWidth: 1,
  79. labels: {
  80. style: {
  81. color: '#666',
  82. fontWeight: 'bold'
  83. }
  84. },
  85. title: {
  86. style: {
  87. color: '#666',
  88. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  89. ' Verdana, Arial, Helvetica, sans-serif'
  90. }
  91. }
  92. },
  93. legend: {
  94. itemStyle: {
  95. font: '9pt Trebuchet MS, Verdana, sans-serif',
  96. color: '#3E576F'
  97. },
  98. itemHoverStyle: {
  99. color: 'black'
  100. },
  101. itemHiddenStyle: {
  102. color: 'silver'
  103. }
  104. },
  105. labels: {
  106. style: {
  107. color: '#3E576F'
  108. }
  109. }
  110. };
  111. // Apply the theme
  112. Highcharts.setOptions(Highcharts.theme);
  113. }(Highcharts));
  114. }));