grid.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 theme for Highcharts JS
  22. * @author Torstein Honsi
  23. */
  24. 'use strict';
  25. Highcharts.theme = {
  26. colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
  27. chart: {
  28. backgroundColor: {
  29. linearGradient: {
  30. x1: 0,
  31. y1: 0,
  32. x2: 1,
  33. y2: 1
  34. },
  35. stops: [
  36. [0, 'rgb(255, 255, 255)'],
  37. [1, 'rgb(240, 240, 255)']
  38. ]
  39. },
  40. borderWidth: 2,
  41. plotBackgroundColor: 'rgba(255, 255, 255, .9)',
  42. plotShadow: true,
  43. plotBorderWidth: 1
  44. },
  45. title: {
  46. style: {
  47. color: '#000',
  48. font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
  49. }
  50. },
  51. subtitle: {
  52. style: {
  53. color: '#666666',
  54. font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
  55. }
  56. },
  57. xAxis: {
  58. gridLineWidth: 1,
  59. lineColor: '#000',
  60. tickColor: '#000',
  61. labels: {
  62. style: {
  63. color: '#000',
  64. font: '11px Trebuchet MS, Verdana, sans-serif'
  65. }
  66. },
  67. title: {
  68. style: {
  69. color: '#333',
  70. fontWeight: 'bold',
  71. fontSize: '12px',
  72. fontFamily: 'Trebuchet MS, Verdana, sans-serif'
  73. }
  74. }
  75. },
  76. yAxis: {
  77. minorTickInterval: 'auto',
  78. lineColor: '#000',
  79. lineWidth: 1,
  80. tickWidth: 1,
  81. tickColor: '#000',
  82. labels: {
  83. style: {
  84. color: '#000',
  85. font: '11px Trebuchet MS, Verdana, sans-serif'
  86. }
  87. },
  88. title: {
  89. style: {
  90. color: '#333',
  91. fontWeight: 'bold',
  92. fontSize: '12px',
  93. fontFamily: 'Trebuchet MS, Verdana, sans-serif'
  94. }
  95. }
  96. },
  97. legend: {
  98. itemStyle: {
  99. font: '9pt Trebuchet MS, Verdana, sans-serif',
  100. color: 'black'
  101. },
  102. itemHoverStyle: {
  103. color: '#039'
  104. },
  105. itemHiddenStyle: {
  106. color: 'gray'
  107. }
  108. },
  109. labels: {
  110. style: {
  111. color: '#99b'
  112. }
  113. },
  114. navigation: {
  115. buttonOptions: {
  116. theme: {
  117. stroke: '#CCCCCC'
  118. }
  119. }
  120. }
  121. };
  122. // Apply the theme
  123. Highcharts.setOptions(Highcharts.theme);
  124. }(Highcharts));
  125. }));