gray.src.js 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. /**
  2. * @license Highcharts JS v6.1.0 (2018-04-13)
  3. *
  4. * (c) 2009-2017 Torstein Honsi
  5. *
  6. * License: www.highcharts.com/license
  7. */
  8. 'use strict';
  9. (function (factory) {
  10. if (typeof module === 'object' && module.exports) {
  11. module.exports = factory;
  12. } else {
  13. factory(Highcharts);
  14. }
  15. }(function (Highcharts) {
  16. (function (Highcharts) {
  17. /**
  18. * (c) 2010-2017 Torstein Honsi
  19. *
  20. * License: www.highcharts.com/license
  21. *
  22. * Gray theme for Highcharts JS
  23. * @author Torstein Honsi
  24. */
  25. Highcharts.theme = {
  26. colors: ['#DDDF0D', '#7798BF', '#55BF3B', '#DF5353', '#aaeeee',
  27. '#ff0066', '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
  28. chart: {
  29. backgroundColor: {
  30. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  31. stops: [
  32. [0, 'rgb(96, 96, 96)'],
  33. [1, 'rgb(16, 16, 16)']
  34. ]
  35. },
  36. borderWidth: 0,
  37. borderRadius: 0,
  38. plotBackgroundColor: null,
  39. plotShadow: false,
  40. plotBorderWidth: 0
  41. },
  42. title: {
  43. style: {
  44. color: '#FFF',
  45. font: '16px Lucida Grande, Lucida Sans Unicode,' +
  46. ' Verdana, Arial, Helvetica, sans-serif'
  47. }
  48. },
  49. subtitle: {
  50. style: {
  51. color: '#DDD',
  52. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  53. ' Verdana, Arial, Helvetica, sans-serif'
  54. }
  55. },
  56. xAxis: {
  57. gridLineWidth: 0,
  58. lineColor: '#999',
  59. tickColor: '#999',
  60. labels: {
  61. style: {
  62. color: '#999',
  63. fontWeight: 'bold'
  64. }
  65. },
  66. title: {
  67. style: {
  68. color: '#AAA',
  69. font: 'bold 12px Lucida Grande, Lucida Sans Unicode,' +
  70. ' Verdana, Arial, Helvetica, sans-serif'
  71. }
  72. }
  73. },
  74. yAxis: {
  75. alternateGridColor: null,
  76. minorTickInterval: null,
  77. gridLineColor: 'rgba(255, 255, 255, .1)',
  78. minorGridLineColor: 'rgba(255,255,255,0.07)',
  79. lineWidth: 0,
  80. tickWidth: 0,
  81. labels: {
  82. style: {
  83. color: '#999',
  84. fontWeight: 'bold'
  85. }
  86. },
  87. title: {
  88. style: {
  89. color: '#AAA',
  90. font: 'bold 12px Lucida Grande, Lucida Sans Unicode,' +
  91. ' Verdana, Arial, Helvetica, sans-serif'
  92. }
  93. }
  94. },
  95. legend: {
  96. itemStyle: {
  97. color: '#CCC'
  98. },
  99. itemHoverStyle: {
  100. color: '#FFF'
  101. },
  102. itemHiddenStyle: {
  103. color: '#333'
  104. }
  105. },
  106. labels: {
  107. style: {
  108. color: '#CCC'
  109. }
  110. },
  111. tooltip: {
  112. backgroundColor: {
  113. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  114. stops: [
  115. [0, 'rgba(96, 96, 96, .8)'],
  116. [1, 'rgba(16, 16, 16, .8)']
  117. ]
  118. },
  119. borderWidth: 0,
  120. style: {
  121. color: '#FFF'
  122. }
  123. },
  124. plotOptions: {
  125. series: {
  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. hoverSymbolStroke: '#FFFFFF',
  159. theme: {
  160. fill: {
  161. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  162. stops: [
  163. [0.4, '#606060'],
  164. [0.6, '#333333']
  165. ]
  166. },
  167. stroke: '#000000'
  168. }
  169. }
  170. },
  171. // scroll charts
  172. rangeSelector: {
  173. buttonTheme: {
  174. fill: {
  175. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  176. stops: [
  177. [0.4, '#888'],
  178. [0.6, '#555']
  179. ]
  180. },
  181. stroke: '#000000',
  182. style: {
  183. color: '#CCC',
  184. fontWeight: 'bold'
  185. },
  186. states: {
  187. hover: {
  188. fill: {
  189. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  190. stops: [
  191. [0.4, '#BBB'],
  192. [0.6, '#888']
  193. ]
  194. },
  195. stroke: '#000000',
  196. style: {
  197. color: 'white'
  198. }
  199. },
  200. select: {
  201. fill: {
  202. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  203. stops: [
  204. [0.1, '#000'],
  205. [0.3, '#333']
  206. ]
  207. },
  208. stroke: '#000000',
  209. style: {
  210. color: 'yellow'
  211. }
  212. }
  213. }
  214. },
  215. inputStyle: {
  216. backgroundColor: '#333',
  217. color: 'silver'
  218. },
  219. labelStyle: {
  220. color: 'silver'
  221. }
  222. },
  223. navigator: {
  224. handles: {
  225. backgroundColor: '#666',
  226. borderColor: '#AAA'
  227. },
  228. outlineColor: '#CCC',
  229. maskFill: 'rgba(16, 16, 16, 0.5)',
  230. series: {
  231. color: '#7798BF',
  232. lineColor: '#A6C7ED'
  233. }
  234. },
  235. scrollbar: {
  236. barBackgroundColor: {
  237. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  238. stops: [
  239. [0.4, '#888'],
  240. [0.6, '#555']
  241. ]
  242. },
  243. barBorderColor: '#CCC',
  244. buttonArrowColor: '#CCC',
  245. buttonBackgroundColor: {
  246. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  247. stops: [
  248. [0.4, '#888'],
  249. [0.6, '#555']
  250. ]
  251. },
  252. buttonBorderColor: '#CCC',
  253. rifleColor: '#FFF',
  254. trackBackgroundColor: {
  255. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  256. stops: [
  257. [0, '#000'],
  258. [1, '#333']
  259. ]
  260. },
  261. trackBorderColor: '#666'
  262. },
  263. // special colors for some of the demo examples
  264. legendBackgroundColor: 'rgba(48, 48, 48, 0.8)',
  265. background2: 'rgb(70, 70, 70)',
  266. dataLabelsColor: '#444',
  267. textColor: '#E0E0E0',
  268. maskColor: 'rgba(255,255,255,0.3)'
  269. };
  270. // Apply the theme
  271. Highcharts.setOptions(Highcharts.theme);
  272. }(Highcharts));
  273. }));