b7c665b9d0a527c0df4dc657370bceb9d51d3ad1.svn-base 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. * Skies theme for Highcharts JS
  3. * @author Torstein Hønsi
  4. */
  5. Highcharts.theme = {
  6. colors: ["#514F78", "#42A07B", "#9B5E4A", "#72727F", "#1F949A", "#82914E", "#86777F", "#42A07B"],
  7. chart: {
  8. className: 'skies',
  9. borderWidth: 0,
  10. plotShadow: true,
  11. plotBackgroundImage: 'http://www.highcharts.com/demo/gfx/skies.jpg',
  12. plotBackgroundColor: {
  13. linearGradient: [0, 0, 250, 500],
  14. stops: [
  15. [0, 'rgba(255, 255, 255, 1)'],
  16. [1, 'rgba(255, 255, 255, 0)']
  17. ]
  18. },
  19. plotBorderWidth: 1
  20. },
  21. title: {
  22. style: {
  23. color: '#3E576F',
  24. font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
  25. }
  26. },
  27. subtitle: {
  28. style: {
  29. color: '#6D869F',
  30. font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
  31. }
  32. },
  33. xAxis: {
  34. gridLineWidth: 0,
  35. lineColor: '#C0D0E0',
  36. tickColor: '#C0D0E0',
  37. labels: {
  38. style: {
  39. color: '#666',
  40. fontWeight: 'bold'
  41. }
  42. },
  43. title: {
  44. style: {
  45. color: '#666',
  46. font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
  47. }
  48. }
  49. },
  50. yAxis: {
  51. alternateGridColor: 'rgba(255, 255, 255, .5)',
  52. lineColor: '#C0D0E0',
  53. tickColor: '#C0D0E0',
  54. tickWidth: 1,
  55. labels: {
  56. style: {
  57. color: '#666',
  58. fontWeight: 'bold'
  59. }
  60. },
  61. title: {
  62. style: {
  63. color: '#666',
  64. font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif'
  65. }
  66. }
  67. },
  68. legend: {
  69. itemStyle: {
  70. font: '9pt Trebuchet MS, Verdana, sans-serif',
  71. color: '#3E576F'
  72. },
  73. itemHoverStyle: {
  74. color: 'black'
  75. },
  76. itemHiddenStyle: {
  77. color: 'silver'
  78. }
  79. },
  80. labels: {
  81. style: {
  82. color: '#3E576F'
  83. }
  84. }
  85. };
  86. // Apply the theme
  87. var highchartsOptions = Highcharts.setOptions(Highcharts.theme);