You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.2 KiB

9 years ago
  1. /**
  2. * Grid-light theme for Highcharts JS
  3. * @author Torstein Honsi
  4. */
  5. // Load the fonts
  6. Highcharts.createElement('link', {
  7. href: '//fonts.googleapis.com/css?family=Dosis:400,600',
  8. rel: 'stylesheet',
  9. type: 'text/css'
  10. }, null, document.getElementsByTagName('head')[0]);
  11. Highcharts.theme = {
  12. colors: ["#7cb5ec", "#f7a35c", "#90ee7e", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
  13. "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
  14. chart: {
  15. backgroundColor: null,
  16. style: {
  17. fontFamily: "Dosis, sans-serif"
  18. }
  19. },
  20. title: {
  21. style: {
  22. fontSize: '16px',
  23. fontWeight: 'bold',
  24. textTransform: 'uppercase'
  25. }
  26. },
  27. tooltip: {
  28. borderWidth: 0,
  29. backgroundColor: 'rgba(219,219,216,0.8)',
  30. shadow: false
  31. },
  32. legend: {
  33. itemStyle: {
  34. fontWeight: 'bold',
  35. fontSize: '13px'
  36. }
  37. },
  38. xAxis: {
  39. gridLineWidth: 1,
  40. labels: {
  41. style: {
  42. fontSize: '12px'
  43. }
  44. }
  45. },
  46. yAxis: {
  47. minorTickInterval: 'auto',
  48. title: {
  49. style: {
  50. textTransform: 'uppercase'
  51. }
  52. },
  53. labels: {
  54. style: {
  55. fontSize: '12px'
  56. }
  57. }
  58. },
  59. plotOptions: {
  60. candlestick: {
  61. lineColor: '#404048'
  62. }
  63. },
  64. // General
  65. background2: '#F0F0EA'
  66. };
  67. // Apply the theme
  68. Highcharts.setOptions(Highcharts.theme);