grid-light.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /**
  2. * @license Highcharts JS v5.0.6 (2016-12-07)
  3. *
  4. * (c) 2009-2016 Torstein Honsi
  5. *
  6. * License: www.highcharts.com/license
  7. */
  8. (function(factory) {
  9. if (typeof module === 'object' && module.exports) {
  10. module.exports = factory;
  11. } else {
  12. factory(Highcharts);
  13. }
  14. }(function(Highcharts) {
  15. (function(Highcharts) {
  16. /**
  17. * (c) 2010-2016 Torstein Honsi
  18. *
  19. * License: www.highcharts.com/license
  20. *
  21. * Grid-light theme for Highcharts JS
  22. * @author Torstein Honsi
  23. */
  24. 'use strict';
  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', '#eeaaee',
  34. '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'
  35. ],
  36. chart: {
  37. backgroundColor: null,
  38. style: {
  39. fontFamily: 'Dosis, sans-serif'
  40. }
  41. },
  42. title: {
  43. style: {
  44. fontSize: '16px',
  45. fontWeight: 'bold',
  46. textTransform: 'uppercase'
  47. }
  48. },
  49. tooltip: {
  50. borderWidth: 0,
  51. backgroundColor: 'rgba(219,219,216,0.8)',
  52. shadow: false
  53. },
  54. legend: {
  55. itemStyle: {
  56. fontWeight: 'bold',
  57. fontSize: '13px'
  58. }
  59. },
  60. xAxis: {
  61. gridLineWidth: 1,
  62. labels: {
  63. style: {
  64. fontSize: '12px'
  65. }
  66. }
  67. },
  68. yAxis: {
  69. minorTickInterval: 'auto',
  70. title: {
  71. style: {
  72. textTransform: 'uppercase'
  73. }
  74. },
  75. labels: {
  76. style: {
  77. fontSize: '12px'
  78. }
  79. }
  80. },
  81. plotOptions: {
  82. candlestick: {
  83. lineColor: '#404048'
  84. }
  85. },
  86. // General
  87. background2: '#F0F0EA'
  88. };
  89. // Apply the theme
  90. Highcharts.setOptions(Highcharts.theme);
  91. }(Highcharts));
  92. }));