gray.src.js 9.6 KB

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