grid-light.src.js 3.4 KB

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