gray.src.js 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. /**
  2. * @license Highcharts JS v9.1.0 (2021-05-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/gray', ['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/Gray.js', [_modules['Core/Globals.js'], _modules['Core/Options.js']], function (H, O) {
  30. /* *
  31. *
  32. * (c) 2010-2021 Torstein Honsi
  33. *
  34. * License: www.highcharts.com/license
  35. *
  36. * Gray theme for Highcharts JS
  37. *
  38. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  39. *
  40. * */
  41. var setOptions = O.setOptions;
  42. H.theme = {
  43. colors: ['#DDDF0D', '#7798BF', '#55BF3B', '#DF5353', '#aaeeee',
  44. '#ff0066', '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
  45. chart: {
  46. backgroundColor: {
  47. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  48. stops: [
  49. [0, 'rgb(96, 96, 96)'],
  50. [1, 'rgb(16, 16, 16)']
  51. ]
  52. },
  53. borderWidth: 0,
  54. borderRadius: 0,
  55. plotBackgroundColor: null,
  56. plotShadow: false,
  57. plotBorderWidth: 0
  58. },
  59. title: {
  60. style: {
  61. color: '#FFF',
  62. font: '16px Lucida Grande, Lucida Sans Unicode,' +
  63. ' Verdana, Arial, Helvetica, sans-serif'
  64. }
  65. },
  66. subtitle: {
  67. style: {
  68. color: '#DDD',
  69. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  70. ' Verdana, Arial, Helvetica, sans-serif'
  71. }
  72. },
  73. xAxis: {
  74. gridLineWidth: 0,
  75. lineColor: '#999',
  76. tickColor: '#999',
  77. labels: {
  78. style: {
  79. color: '#999',
  80. fontWeight: 'bold'
  81. }
  82. },
  83. title: {
  84. style: {
  85. color: '#AAA',
  86. font: 'bold 12px Lucida Grande, Lucida Sans Unicode,' +
  87. ' Verdana, Arial, Helvetica, sans-serif'
  88. }
  89. }
  90. },
  91. yAxis: {
  92. alternateGridColor: null,
  93. minorTickInterval: null,
  94. gridLineColor: 'rgba(255, 255, 255, .1)',
  95. minorGridLineColor: 'rgba(255,255,255,0.07)',
  96. lineWidth: 0,
  97. tickWidth: 0,
  98. labels: {
  99. style: {
  100. color: '#999',
  101. fontWeight: 'bold'
  102. }
  103. },
  104. title: {
  105. style: {
  106. color: '#AAA',
  107. font: 'bold 12px Lucida Grande, Lucida Sans Unicode,' +
  108. ' Verdana, Arial, Helvetica, sans-serif'
  109. }
  110. }
  111. },
  112. legend: {
  113. backgroundColor: 'rgba(48, 48, 48, 0.8)',
  114. itemStyle: {
  115. color: '#CCC'
  116. },
  117. itemHoverStyle: {
  118. color: '#FFF'
  119. },
  120. itemHiddenStyle: {
  121. color: '#333'
  122. },
  123. title: {
  124. style: {
  125. color: '#E0E0E0'
  126. }
  127. }
  128. },
  129. labels: {
  130. style: {
  131. color: '#CCC'
  132. }
  133. },
  134. tooltip: {
  135. backgroundColor: {
  136. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  137. stops: [
  138. [0, 'rgba(96, 96, 96, .8)'],
  139. [1, 'rgba(16, 16, 16, .8)']
  140. ]
  141. },
  142. borderWidth: 0,
  143. style: {
  144. color: '#FFF'
  145. }
  146. },
  147. plotOptions: {
  148. series: {
  149. dataLabels: {
  150. color: '#444'
  151. },
  152. nullColor: '#444444'
  153. },
  154. line: {
  155. dataLabels: {
  156. color: '#CCC'
  157. },
  158. marker: {
  159. lineColor: '#333'
  160. }
  161. },
  162. spline: {
  163. marker: {
  164. lineColor: '#333'
  165. }
  166. },
  167. scatter: {
  168. marker: {
  169. lineColor: '#333'
  170. }
  171. },
  172. candlestick: {
  173. lineColor: 'white'
  174. }
  175. },
  176. navigation: {
  177. buttonOptions: {
  178. symbolStroke: '#DDDDDD',
  179. theme: {
  180. fill: {
  181. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  182. stops: [
  183. [0.4, '#606060'],
  184. [0.6, '#333333']
  185. ]
  186. },
  187. stroke: '#000000'
  188. }
  189. }
  190. },
  191. // scroll charts
  192. rangeSelector: {
  193. buttonTheme: {
  194. fill: {
  195. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  196. stops: [
  197. [0.4, '#888'],
  198. [0.6, '#555']
  199. ]
  200. },
  201. stroke: '#000000',
  202. style: {
  203. color: '#CCC',
  204. fontWeight: 'bold'
  205. },
  206. states: {
  207. hover: {
  208. fill: {
  209. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  210. stops: [
  211. [0.4, '#BBB'],
  212. [0.6, '#888']
  213. ]
  214. },
  215. stroke: '#000000',
  216. style: {
  217. color: 'white'
  218. }
  219. },
  220. select: {
  221. fill: {
  222. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  223. stops: [
  224. [0.1, '#000'],
  225. [0.3, '#333']
  226. ]
  227. },
  228. stroke: '#000000',
  229. style: {
  230. color: 'yellow'
  231. }
  232. }
  233. }
  234. },
  235. inputStyle: {
  236. backgroundColor: '#333',
  237. color: 'silver'
  238. },
  239. labelStyle: {
  240. color: 'silver'
  241. }
  242. },
  243. navigator: {
  244. handles: {
  245. backgroundColor: '#666',
  246. borderColor: '#AAA'
  247. },
  248. outlineColor: '#CCC',
  249. maskFill: 'rgba(16, 16, 16, 0.5)',
  250. series: {
  251. color: '#7798BF',
  252. lineColor: '#A6C7ED'
  253. }
  254. },
  255. scrollbar: {
  256. barBackgroundColor: {
  257. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  258. stops: [
  259. [0.4, '#888'],
  260. [0.6, '#555']
  261. ]
  262. },
  263. barBorderColor: '#CCC',
  264. buttonArrowColor: '#CCC',
  265. buttonBackgroundColor: {
  266. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  267. stops: [
  268. [0.4, '#888'],
  269. [0.6, '#555']
  270. ]
  271. },
  272. buttonBorderColor: '#CCC',
  273. rifleColor: '#FFF',
  274. trackBackgroundColor: {
  275. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  276. stops: [
  277. [0, '#000'],
  278. [1, '#333']
  279. ]
  280. },
  281. trackBorderColor: '#666'
  282. }
  283. };
  284. // Apply the theme
  285. setOptions(H.theme);
  286. });
  287. _registerModule(_modules, 'masters/themes/gray.src.js', [], function () {
  288. });
  289. }));