GridLight.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* *
  2. *
  3. * (c) 2010-2021 Torstein Honsi
  4. *
  5. * License: www.highcharts.com/license
  6. *
  7. * Grid-light theme for Highcharts JS
  8. *
  9. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  10. *
  11. * */
  12. 'use strict';
  13. /* global document */
  14. import Highcharts from '../../Core/Globals.js';
  15. import O from '../../Core/Options.js';
  16. var setOptions = O.setOptions;
  17. import U from '../../Core/Utilities.js';
  18. var createElement = U.createElement;
  19. // Load the fonts
  20. createElement('link', {
  21. href: 'https://fonts.googleapis.com/css?family=Dosis:400,600',
  22. rel: 'stylesheet',
  23. type: 'text/css'
  24. }, null, document.getElementsByTagName('head')[0]);
  25. Highcharts.theme = {
  26. colors: ['#7cb5ec', '#f7a35c', '#90ee7e', '#7798BF', '#aaeeee', '#ff0066',
  27. '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
  28. chart: {
  29. backgroundColor: null,
  30. style: {
  31. fontFamily: 'Dosis, sans-serif'
  32. }
  33. },
  34. title: {
  35. style: {
  36. fontSize: '16px',
  37. fontWeight: 'bold',
  38. textTransform: 'uppercase'
  39. }
  40. },
  41. tooltip: {
  42. borderWidth: 0,
  43. backgroundColor: 'rgba(219,219,216,0.8)',
  44. shadow: false
  45. },
  46. legend: {
  47. backgroundColor: '#F0F0EA',
  48. itemStyle: {
  49. fontWeight: 'bold',
  50. fontSize: '13px'
  51. }
  52. },
  53. xAxis: {
  54. gridLineWidth: 1,
  55. labels: {
  56. style: {
  57. fontSize: '12px'
  58. }
  59. }
  60. },
  61. yAxis: {
  62. minorTickInterval: 'auto',
  63. title: {
  64. style: {
  65. textTransform: 'uppercase'
  66. }
  67. },
  68. labels: {
  69. style: {
  70. fontSize: '12px'
  71. }
  72. }
  73. },
  74. plotOptions: {
  75. candlestick: {
  76. lineColor: '#404048'
  77. }
  78. }
  79. };
  80. // Apply the theme
  81. setOptions(Highcharts.theme);