grid.src.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /**
  2. * @license Highcharts JS v9.1.1 (2021-06-04)
  3. *
  4. * (c) 2009-2021 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/grid', ['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/Grid.js', [_modules['Core/Globals.js'], _modules['Core/DefaultOptions.js']], function (Highcharts, D) {
  30. /* *
  31. *
  32. * (c) 2010-2021 Torstein Honsi
  33. *
  34. * License: www.highcharts.com/license
  35. *
  36. * Grid theme for Highcharts JS
  37. *
  38. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  39. *
  40. * */
  41. var setOptions = D.setOptions;
  42. Highcharts.theme = {
  43. colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572',
  44. '#FF9655', '#FFF263', '#6AF9C4'],
  45. chart: {
  46. backgroundColor: {
  47. linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
  48. stops: [
  49. [0, 'rgb(255, 255, 255)'],
  50. [1, 'rgb(240, 240, 255)']
  51. ]
  52. },
  53. borderWidth: 2,
  54. plotBackgroundColor: 'rgba(255, 255, 255, .9)',
  55. plotShadow: true,
  56. plotBorderWidth: 1
  57. },
  58. title: {
  59. style: {
  60. color: '#000',
  61. font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
  62. }
  63. },
  64. subtitle: {
  65. style: {
  66. color: '#666666',
  67. font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
  68. }
  69. },
  70. xAxis: {
  71. gridLineWidth: 1,
  72. lineColor: '#000',
  73. tickColor: '#000',
  74. labels: {
  75. style: {
  76. color: '#000',
  77. font: '11px Trebuchet MS, Verdana, sans-serif'
  78. }
  79. },
  80. title: {
  81. style: {
  82. color: '#333',
  83. fontWeight: 'bold',
  84. fontSize: '12px',
  85. fontFamily: 'Trebuchet MS, Verdana, sans-serif'
  86. }
  87. }
  88. },
  89. yAxis: {
  90. minorTickInterval: 'auto',
  91. lineColor: '#000',
  92. lineWidth: 1,
  93. tickWidth: 1,
  94. tickColor: '#000',
  95. labels: {
  96. style: {
  97. color: '#000',
  98. font: '11px Trebuchet MS, Verdana, sans-serif'
  99. }
  100. },
  101. title: {
  102. style: {
  103. color: '#333',
  104. fontWeight: 'bold',
  105. fontSize: '12px',
  106. fontFamily: 'Trebuchet MS, Verdana, sans-serif'
  107. }
  108. }
  109. },
  110. legend: {
  111. itemStyle: {
  112. font: '9pt Trebuchet MS, Verdana, sans-serif',
  113. color: 'black'
  114. },
  115. itemHoverStyle: {
  116. color: '#039'
  117. },
  118. itemHiddenStyle: {
  119. color: 'gray'
  120. }
  121. },
  122. labels: {
  123. style: {
  124. color: '#99b'
  125. }
  126. },
  127. navigation: {
  128. buttonOptions: {
  129. theme: {
  130. stroke: '#CCCCCC'
  131. }
  132. }
  133. }
  134. };
  135. // Apply the theme
  136. setOptions(Highcharts.theme);
  137. });
  138. _registerModule(_modules, 'masters/themes/grid.src.js', [], function () {
  139. });
  140. }));