dark-unica.src.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. /**
  2. * @license Highcharts JS v8.0.0 (2019-12-10)
  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/dark-unica', ['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, 'themes/dark-unica.js', [_modules['parts/Globals.js']], function (Highcharts) {
  30. /* *
  31. *
  32. * (c) 2010-2019 Torstein Honsi
  33. *
  34. * License: www.highcharts.com/license
  35. *
  36. * Dark theme for Highcharts JS
  37. *
  38. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  39. *
  40. * */
  41. /* global document */
  42. // Load the fonts
  43. Highcharts.createElement('link', {
  44. href: 'https://fonts.googleapis.com/css?family=Unica+One',
  45. rel: 'stylesheet',
  46. type: 'text/css'
  47. }, null, document.getElementsByTagName('head')[0]);
  48. Highcharts.theme = {
  49. colors: ['#2b908f', '#90ee7e', '#f45b5b', '#7798BF', '#aaeeee', '#ff0066',
  50. '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
  51. chart: {
  52. backgroundColor: {
  53. linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
  54. stops: [
  55. [0, '#2a2a2b'],
  56. [1, '#3e3e40']
  57. ]
  58. },
  59. style: {
  60. fontFamily: '\'Unica One\', sans-serif'
  61. },
  62. plotBorderColor: '#606063'
  63. },
  64. title: {
  65. style: {
  66. color: '#E0E0E3',
  67. textTransform: 'uppercase',
  68. fontSize: '20px'
  69. }
  70. },
  71. subtitle: {
  72. style: {
  73. color: '#E0E0E3',
  74. textTransform: 'uppercase'
  75. }
  76. },
  77. xAxis: {
  78. gridLineColor: '#707073',
  79. labels: {
  80. style: {
  81. color: '#E0E0E3'
  82. }
  83. },
  84. lineColor: '#707073',
  85. minorGridLineColor: '#505053',
  86. tickColor: '#707073',
  87. title: {
  88. style: {
  89. color: '#A0A0A3'
  90. }
  91. }
  92. },
  93. yAxis: {
  94. gridLineColor: '#707073',
  95. labels: {
  96. style: {
  97. color: '#E0E0E3'
  98. }
  99. },
  100. lineColor: '#707073',
  101. minorGridLineColor: '#505053',
  102. tickColor: '#707073',
  103. tickWidth: 1,
  104. title: {
  105. style: {
  106. color: '#A0A0A3'
  107. }
  108. }
  109. },
  110. tooltip: {
  111. backgroundColor: 'rgba(0, 0, 0, 0.85)',
  112. style: {
  113. color: '#F0F0F0'
  114. }
  115. },
  116. plotOptions: {
  117. series: {
  118. dataLabels: {
  119. color: '#F0F0F3',
  120. style: {
  121. fontSize: '13px'
  122. }
  123. },
  124. marker: {
  125. lineColor: '#333'
  126. }
  127. },
  128. boxplot: {
  129. fillColor: '#505053'
  130. },
  131. candlestick: {
  132. lineColor: 'white'
  133. },
  134. errorbar: {
  135. color: 'white'
  136. }
  137. },
  138. legend: {
  139. backgroundColor: 'rgba(0, 0, 0, 0.5)',
  140. itemStyle: {
  141. color: '#E0E0E3'
  142. },
  143. itemHoverStyle: {
  144. color: '#FFF'
  145. },
  146. itemHiddenStyle: {
  147. color: '#606063'
  148. },
  149. title: {
  150. style: {
  151. color: '#C0C0C0'
  152. }
  153. }
  154. },
  155. credits: {
  156. style: {
  157. color: '#666'
  158. }
  159. },
  160. labels: {
  161. style: {
  162. color: '#707073'
  163. }
  164. },
  165. drilldown: {
  166. activeAxisLabelStyle: {
  167. color: '#F0F0F3'
  168. },
  169. activeDataLabelStyle: {
  170. color: '#F0F0F3'
  171. }
  172. },
  173. navigation: {
  174. buttonOptions: {
  175. symbolStroke: '#DDDDDD',
  176. theme: {
  177. fill: '#505053'
  178. }
  179. }
  180. },
  181. // scroll charts
  182. rangeSelector: {
  183. buttonTheme: {
  184. fill: '#505053',
  185. stroke: '#000000',
  186. style: {
  187. color: '#CCC'
  188. },
  189. states: {
  190. hover: {
  191. fill: '#707073',
  192. stroke: '#000000',
  193. style: {
  194. color: 'white'
  195. }
  196. },
  197. select: {
  198. fill: '#000003',
  199. stroke: '#000000',
  200. style: {
  201. color: 'white'
  202. }
  203. }
  204. }
  205. },
  206. inputBoxBorderColor: '#505053',
  207. inputStyle: {
  208. backgroundColor: '#333',
  209. color: 'silver'
  210. },
  211. labelStyle: {
  212. color: 'silver'
  213. }
  214. },
  215. navigator: {
  216. handles: {
  217. backgroundColor: '#666',
  218. borderColor: '#AAA'
  219. },
  220. outlineColor: '#CCC',
  221. maskFill: 'rgba(255,255,255,0.1)',
  222. series: {
  223. color: '#7798BF',
  224. lineColor: '#A6C7ED'
  225. },
  226. xAxis: {
  227. gridLineColor: '#505053'
  228. }
  229. },
  230. scrollbar: {
  231. barBackgroundColor: '#808083',
  232. barBorderColor: '#808083',
  233. buttonArrowColor: '#CCC',
  234. buttonBackgroundColor: '#606063',
  235. buttonBorderColor: '#606063',
  236. rifleColor: '#FFF',
  237. trackBackgroundColor: '#404043',
  238. trackBorderColor: '#404043'
  239. }
  240. };
  241. // Apply the theme
  242. Highcharts.setOptions(Highcharts.theme);
  243. });
  244. _registerModule(_modules, 'masters/themes/dark-unica.src.js', [], function () {
  245. });
  246. }));