sand-signika.src.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /**
  2. * @license Highcharts JS v9.1.1 (2021-06-04)
  3. *
  4. * (c) 2009-2021 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/sand-signika', ['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, 'Extensions/Themes/SandSignika.js', [_modules['Core/Globals.js'], _modules['Core/DefaultOptions.js'], _modules['Core/Utilities.js']], function (Highcharts, D, U) {
  30. /* *
  31. *
  32. * (c) 2010-2021 Torstein Honsi
  33. *
  34. * License: www.highcharts.com/license
  35. *
  36. * Sand-Signika theme for Highcharts JS
  37. *
  38. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  39. *
  40. * */
  41. /* global document */
  42. var setOptions = D.setOptions;
  43. var addEvent = U.addEvent,
  44. createElement = U.createElement;
  45. // Load the fonts
  46. createElement('link', {
  47. href: 'https://fonts.googleapis.com/css?family=Signika:400,700',
  48. rel: 'stylesheet',
  49. type: 'text/css'
  50. }, null, document.getElementsByTagName('head')[0]);
  51. // Add the background image to the container
  52. addEvent(Highcharts.Chart, 'afterGetContainer', function () {
  53. // eslint-disable-next-line no-invalid-this
  54. this.container.style.background =
  55. 'url(https://www.highcharts.com/samples/graphics/sand.png)';
  56. });
  57. Highcharts.theme = {
  58. colors: ['#f45b5b', '#8085e9', '#8d4654', '#7798BF', '#aaeeee',
  59. '#ff0066', '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
  60. chart: {
  61. backgroundColor: null,
  62. style: {
  63. fontFamily: 'Signika, serif'
  64. }
  65. },
  66. title: {
  67. style: {
  68. color: 'black',
  69. fontSize: '16px',
  70. fontWeight: 'bold'
  71. }
  72. },
  73. subtitle: {
  74. style: {
  75. color: 'black'
  76. }
  77. },
  78. tooltip: {
  79. borderWidth: 0
  80. },
  81. labels: {
  82. style: {
  83. color: '#6e6e70'
  84. }
  85. },
  86. legend: {
  87. backgroundColor: '#E0E0E8',
  88. itemStyle: {
  89. fontWeight: 'bold',
  90. fontSize: '13px'
  91. }
  92. },
  93. xAxis: {
  94. labels: {
  95. style: {
  96. color: '#6e6e70'
  97. }
  98. }
  99. },
  100. yAxis: {
  101. labels: {
  102. style: {
  103. color: '#6e6e70'
  104. }
  105. }
  106. },
  107. plotOptions: {
  108. series: {
  109. shadow: true
  110. },
  111. candlestick: {
  112. lineColor: '#404048'
  113. },
  114. map: {
  115. shadow: false
  116. }
  117. },
  118. // Highcharts Stock specific
  119. navigator: {
  120. xAxis: {
  121. gridLineColor: '#D0D0D8'
  122. }
  123. },
  124. rangeSelector: {
  125. buttonTheme: {
  126. fill: 'white',
  127. stroke: '#C0C0C8',
  128. 'stroke-width': 1,
  129. states: {
  130. select: {
  131. fill: '#D0D0D8'
  132. }
  133. }
  134. }
  135. },
  136. scrollbar: {
  137. trackBorderColor: '#C0C0C8'
  138. }
  139. };
  140. // Apply the theme
  141. setOptions(Highcharts.theme);
  142. });
  143. _registerModule(_modules, 'masters/themes/sand-signika.src.js', [], function () {
  144. });
  145. }));