gray.src.js 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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/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/Utilities.js']], function (Highcharts, U) {
  30. /* *
  31. *
  32. * (c) 2010-2020 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 = U.setOptions;
  42. Highcharts.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. toolbar: {
  177. itemStyle: {
  178. color: '#CCC'
  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(Highcharts.theme);
  291. });
  292. _registerModule(_modules, 'masters/themes/gray.src.js', [], function () {
  293. });
  294. }));