8a60e97ff7249af50be4110d88248af15eb94932.svn-base 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. $(function() {
  2. "use strict";
  3. BWA.ChartOptions = BWA.ChartOptions || {};
  4. var A = BWA.ChartOptions.CenterMainDashboard = BWA.ChartOptions.CenterMainDashboard || {};
  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. color:'gray',
  31. position: 'bottom-center',
  32. font: { size: 14, color:'gray' }
  33. },
  34. subvalues: [90]
  35. };
  36. };
  37. });