skies.src.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /**
  2. * @license Highcharts JS v8.2.0 (2020-08-20)
  3. *
  4. * (c) 2009-2019 Torstein Honsi
  5. *
  6. * License: www.highcharts.com/license
  7. */
  8. 'use strict';
  9. (function (factory) {
  10. if (typeof module === 'object' && module.exports) {
  11. factory['default'] = factory;
  12. module.exports = factory;
  13. } else if (typeof define === 'function' && define.amd) {
  14. define('highcharts/themes/skies', ['highcharts'], function (Highcharts) {
  15. factory(Highcharts);
  16. factory.Highcharts = Highcharts;
  17. return factory;
  18. });
  19. } else {
  20. factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
  21. }
  22. }(function (Highcharts) {
  23. var _modules = Highcharts ? Highcharts._modules : {};
  24. function _registerModule(obj, path, args, fn) {
  25. if (!obj.hasOwnProperty(path)) {
  26. obj[path] = fn.apply(null, args);
  27. }
  28. }
  29. _registerModule(_modules, 'Extensions/Themes/Skies.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (Highcharts, U) {
  30. /* *
  31. *
  32. * (c) 2010-2020 Torstein Honsi
  33. *
  34. * License: www.highcharts.com/license
  35. *
  36. * Skies theme for Highcharts JS
  37. *
  38. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  39. *
  40. * */
  41. var setOptions = U.setOptions;
  42. Highcharts.theme = {
  43. colors: ['#514F78', '#42A07B', '#9B5E4A', '#72727F', '#1F949A',
  44. '#82914E', '#86777F', '#42A07B'],
  45. chart: {
  46. className: 'skies',
  47. borderWidth: 0,
  48. plotShadow: true,
  49. plotBackgroundImage: 'https://www.highcharts.com/samples/graphics/skies.jpg',
  50. plotBackgroundColor: {
  51. linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
  52. stops: [
  53. [0, 'rgba(255, 255, 255, 1)'],
  54. [1, 'rgba(255, 255, 255, 0)']
  55. ]
  56. },
  57. plotBorderWidth: 1
  58. },
  59. title: {
  60. style: {
  61. color: '#3E576F',
  62. font: '16px Lucida Grande, Lucida Sans Unicode,' +
  63. ' Verdana, Arial, Helvetica, sans-serif'
  64. }
  65. },
  66. subtitle: {
  67. style: {
  68. color: '#6D869F',
  69. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  70. ' Verdana, Arial, Helvetica, sans-serif'
  71. }
  72. },
  73. xAxis: {
  74. gridLineWidth: 0,
  75. lineColor: '#C0D0E0',
  76. tickColor: '#C0D0E0',
  77. labels: {
  78. style: {
  79. color: '#666',
  80. fontWeight: 'bold'
  81. }
  82. },
  83. title: {
  84. style: {
  85. color: '#666',
  86. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  87. ' Verdana, Arial, Helvetica, sans-serif'
  88. }
  89. }
  90. },
  91. yAxis: {
  92. alternateGridColor: 'rgba(255, 255, 255, .5)',
  93. lineColor: '#C0D0E0',
  94. tickColor: '#C0D0E0',
  95. tickWidth: 1,
  96. labels: {
  97. style: {
  98. color: '#666',
  99. fontWeight: 'bold'
  100. }
  101. },
  102. title: {
  103. style: {
  104. color: '#666',
  105. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  106. ' Verdana, Arial, Helvetica, sans-serif'
  107. }
  108. }
  109. },
  110. legend: {
  111. itemStyle: {
  112. font: '9pt Trebuchet MS, Verdana, sans-serif',
  113. color: '#3E576F'
  114. },
  115. itemHoverStyle: {
  116. color: 'black'
  117. },
  118. itemHiddenStyle: {
  119. color: 'silver'
  120. }
  121. },
  122. labels: {
  123. style: {
  124. color: '#3E576F'
  125. }
  126. }
  127. };
  128. // Apply the theme
  129. setOptions(Highcharts.theme);
  130. });
  131. _registerModule(_modules, 'masters/themes/skies.src.js', [], function () {
  132. });
  133. }));