gray.src.js 7.5 KB

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