DarkGreen.js 6.3 KB

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