grid-light.src.js 2.1 KB

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