Advertisement
Guest User

Untitled

a guest
Feb 10th, 2013
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. $(function () {
  2. temperature = new Highcharts.Chart({
  3. chart: {
  4. renderTo: 'temperaturevu',
  5. type: 'gauge',
  6. height: 180,
  7. },
  8. title: {
  9. text: 'Temperature'
  10. },
  11. pane: [{
  12. startAngle: -45,
  13. endAngle: 45,
  14. background: null,
  15. center: ['50%', '140%'],
  16. size: 250
  17.  
  18. }],
  19. credits: {
  20. enabled: false
  21. },
  22. yAxis: [{
  23. min: -40,
  24. max: 40,
  25. minorTickPosition: 'outside',
  26. tickPosition: 'outside',
  27. tickInterval: 20,
  28. labels: {
  29. rotation: 'auto',
  30. distance: 20
  31. },
  32. plotBands: [{
  33. from: 25,
  34. to: 40,
  35. color: '#C02316',
  36. innerRadius: '100%',
  37. outerRadius: '105%'
  38. },
  39. {
  40. from: -40,
  41. to: -10,
  42. color: '#0000FF',
  43. innerRadius: '100%',
  44. outerRadius: '105%'
  45. }],
  46. title: {
  47. text: 'Loading...',
  48. align: 'middle',
  49. offset: 60
  50. }
  51. }],
  52. plotOptions: {
  53. gauge: {
  54. dataLabels: {
  55. enabled: true
  56. },
  57. dial: {
  58. radius: '100%'
  59. }
  60. }
  61. },
  62. series: [{
  63. data: [0],
  64. /* yAxis: 0*/
  65. }]
  66. })
  67. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement