sand-signika.src.js 4.4 KB

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