2a601d5f32709492c6806eb4286efa447c44be4f.svn-base 1.4 KB

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