f94480bb917c294e2e4d7ecc2c5310e001028b3c.svn-base 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. $(function() {
  2. BWA.ChartOptions = BWA.ChartOptions || {};
  3. var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {};
  4. A.getGasLoadRateChartOptions = 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: '가스량'
  20. }
  21. },
  22. series: {
  23. type: 'scatter',
  24. valueField: 'm', // 가스량
  25. argumentField: 'LoadRate', // 부하율
  26. label: {
  27. visible: false,
  28. //customizeText: function() {
  29. // return this.argumentField + this.valueText;
  30. //}
  31. },
  32. point: { size: 8 }
  33. },
  34. tooltip: {
  35. enabled: true,
  36. },
  37. crosshair: {
  38. enabled: true,
  39. width: 2,
  40. horizontalLine: {
  41. color: 'red',
  42. dashStyle: 'dash',
  43. visible: true
  44. },
  45. verticalLine: {
  46. color: 'red',
  47. dashStyle: 'dash',
  48. visible: true
  49. },
  50. label: {
  51. visible: true,
  52. backgroundColor: "#949494",
  53. font: {
  54. color: "#fff",
  55. size: 12,
  56. }
  57. }
  58. }
  59. };
  60. };
  61. });