grid-light.src.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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/grid-light', ['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/GridLight.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. * Grid-light 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 createElement = U.createElement;
  44. // Load the fonts
  45. createElement('link', {
  46. href: 'https://fonts.googleapis.com/css?family=Dosis:400,600',
  47. rel: 'stylesheet',
  48. type: 'text/css'
  49. }, null, document.getElementsByTagName('head')[0]);
  50. Highcharts.theme = {
  51. colors: ['#7cb5ec', '#f7a35c', '#90ee7e', '#7798BF', '#aaeeee', '#ff0066',
  52. '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
  53. chart: {
  54. backgroundColor: null,
  55. style: {
  56. fontFamily: 'Dosis, sans-serif'
  57. }
  58. },
  59. title: {
  60. style: {
  61. fontSize: '16px',
  62. fontWeight: 'bold',
  63. textTransform: 'uppercase'
  64. }
  65. },
  66. tooltip: {
  67. borderWidth: 0,
  68. backgroundColor: 'rgba(219,219,216,0.8)',
  69. shadow: false
  70. },
  71. legend: {
  72. backgroundColor: '#F0F0EA',
  73. itemStyle: {
  74. fontWeight: 'bold',
  75. fontSize: '13px'
  76. }
  77. },
  78. xAxis: {
  79. gridLineWidth: 1,
  80. labels: {
  81. style: {
  82. fontSize: '12px'
  83. }
  84. }
  85. },
  86. yAxis: {
  87. minorTickInterval: 'auto',
  88. title: {
  89. style: {
  90. textTransform: 'uppercase'
  91. }
  92. },
  93. labels: {
  94. style: {
  95. fontSize: '12px'
  96. }
  97. }
  98. },
  99. plotOptions: {
  100. candlestick: {
  101. lineColor: '#404048'
  102. }
  103. }
  104. };
  105. // Apply the theme
  106. setOptions(Highcharts.theme);
  107. });
  108. _registerModule(_modules, 'masters/themes/grid-light.src.js', [], function () {
  109. });
  110. }));