55a02d664cbe58a29ea7ffda31999c16ceb32471.svn-base 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {};
  4. A.getElectricityLoadRateChartOptions = function(codeTimeType) {
  5. return {
  6. palette: "Soft Pastel",
  7. legend: {
  8. visible: false
  9. },
  10. argumentAxis: {
  11. max: 100,
  12. min: 0,
  13. title: {
  14. text: $G('loadRateWithUnit')
  15. }
  16. },
  17. valueAxis: {
  18. title: {
  19. //text: $G('consumptionElectricity')
  20. text: '소비전력량 (kWh)'
  21. }
  22. },
  23. series: {
  24. type: 'scatter',
  25. valueField: 'EV', // 소비전력
  26. argumentField: 'LoadRate', // 부하율
  27. label: {
  28. visible: false,
  29. //customizeText: function() {
  30. // return this.argumentField + this.valueText;
  31. //}
  32. },
  33. point: { size: 8 }
  34. },
  35. tooltip: {
  36. enabled: true,
  37. },
  38. crosshair: {
  39. enabled: true,
  40. width: 2,
  41. horizontalLine: {
  42. color: 'red',
  43. dashStyle: 'dash',
  44. visible: true
  45. },
  46. verticalLine: {
  47. color: 'red',
  48. dashStyle: 'dash',
  49. visible: true
  50. },
  51. label: {
  52. visible: true,
  53. backgroundColor: "#949494",
  54. font: {
  55. color: "#fff",
  56. size: 12,
  57. }
  58. }
  59. }
  60. };
  61. };
  62. });