d51da5747695a706687d87330254948e12a25689.svn-base 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. var A = BWA.ChartOptions.MainDashBoard = BWA.ChartOptions.MainDashBoard || {};
  4. A.getYearTotalEnergyUsageStatusChartOptions = function() {
  5. return {
  6. palette: 'Pastel',
  7. scale: {
  8. startValue: 0, endValue: 150,
  9. majorTick: {
  10. // color: '#536878',
  11. tickInterval: 10
  12. },
  13. label: {
  14. indentFromTick: 3
  15. }
  16. },
  17. rangeContainer: {
  18. ranges: [
  19. { startValue: 0, endValue: 90, color: '#77DD77' },
  20. { startValue: 90, endValue: 100, color: 'orange' },
  21. { startValue: 100, endValue: 150, color: '#92000A' }
  22. ]
  23. },
  24. valueIndicator: {
  25. type: 'twoColorNeedle'
  26. },
  27. title: {
  28. text: '전체 TOE (%)',
  29. position: 'bottom-center',
  30. font: { size: 14 }
  31. },
  32. subvalues: [90],
  33. tooltip: {
  34. enabled: true,
  35. format: 'fixedPoint',
  36. customizeTooltip: function () {
  37. return {
  38. text: ['전체 TOE: ', this.valueText, '%'].join('')
  39. };
  40. }
  41. }
  42. }
  43. };
  44. });