grid-light.src.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * @license Highcharts JS v7.0.2 (2019-01-17)
  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(function () {
  15. return factory;
  16. });
  17. } else {
  18. factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
  19. }
  20. }(function (Highcharts) {
  21. (function (Highcharts) {
  22. /**
  23. * (c) 2010-2019 Torstein Honsi
  24. *
  25. * License: www.highcharts.com/license
  26. *
  27. * Grid-light theme for Highcharts JS
  28. * @author Torstein Honsi
  29. */
  30. /* global document */
  31. // Load the fonts
  32. Highcharts.createElement('link', {
  33. href: 'https://fonts.googleapis.com/css?family=Dosis:400,600',
  34. rel: 'stylesheet',
  35. type: 'text/css'
  36. }, null, document.getElementsByTagName('head')[0]);
  37. Highcharts.theme = {
  38. colors: ['#7cb5ec', '#f7a35c', '#90ee7e', '#7798BF', '#aaeeee', '#ff0066',
  39. '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
  40. chart: {
  41. backgroundColor: null,
  42. style: {
  43. fontFamily: 'Dosis, sans-serif'
  44. }
  45. },
  46. title: {
  47. style: {
  48. fontSize: '16px',
  49. fontWeight: 'bold',
  50. textTransform: 'uppercase'
  51. }
  52. },
  53. tooltip: {
  54. borderWidth: 0,
  55. backgroundColor: 'rgba(219,219,216,0.8)',
  56. shadow: false
  57. },
  58. legend: {
  59. itemStyle: {
  60. fontWeight: 'bold',
  61. fontSize: '13px'
  62. }
  63. },
  64. xAxis: {
  65. gridLineWidth: 1,
  66. labels: {
  67. style: {
  68. fontSize: '12px'
  69. }
  70. }
  71. },
  72. yAxis: {
  73. minorTickInterval: 'auto',
  74. title: {
  75. style: {
  76. textTransform: 'uppercase'
  77. }
  78. },
  79. labels: {
  80. style: {
  81. fontSize: '12px'
  82. }
  83. }
  84. },
  85. plotOptions: {
  86. candlestick: {
  87. lineColor: '#404048'
  88. }
  89. },
  90. // General
  91. background2: '#F0F0EA'
  92. };
  93. // Apply the theme
  94. Highcharts.setOptions(Highcharts.theme);
  95. }(Highcharts));
  96. return (function () {
  97. }());
  98. }));