skies.js 3.4 KB

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