Gray.js 6.6 KB

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