$(function() { BWA.ChartOptions = BWA.ChartOptions || {}; var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {}; var valueAxises = [ { title: { //text: $G('coolingApproach') text: $G('outdoorTemperatureWithUnit') } }, { //pane: 'topPane', name: 'intemp', position: 'right', //valueMarginsEnabled: true, //minValueMargin: 0, //maxValueMargin: 0, //min: -20, //max: 40, label: { font: { color: '#c96374' }, visible: true, //format: 'largeNumber' }, title: { //text: '냉각수 입구온도 (°C)' 2016 07 15 text: '냉각탑 출구온도 (°C)' } }, { //pane: 'topPane', name: 'outtemp', //min: 0, //max: 100, position: 'right', grid: { visible: true }, label: { font: { color: '#00A7C6' }, visible: true, //format: 'largeNumber' }, title: { //text: '냉각수 출구온도 (°C)'2016 07 15 text: '냉각탑 입구온도 (°C)' } }, { //pane: 'topPane', name: 'htemp', //min: 0, //max: 100, position: 'right', grid: { visible: true }, label: { font: { color: 'darkgreen' }, visible: true, //format: 'largeNumber' }, title: { text: '습구온도 (°C)' } }]; var seriesS = [ { //type: 'bar', type: 'spline', argumentField: 'DateTime', valueField: 'Value', //width: 5, //valueField: 'h_temp', name: '외기온도', label: { visible: false, }, point: { size: 1 } }, { type: 'spline', color: '#c96374', //pane: 'topPane', // axis: 'intemp', valueField: 'c_in_temp', point: { size: 1 }, //name: '냉각수 입구온도', 2016 07 15 name: '냉각탑 츨구온도', label: { visible: false, font: { color: '#c96374', }, customizeText: function () { return this.valueText + ' °C'; } } }, { type: 'spline', //pane: 'topPane', // axis: 'outtemp', color: '#00A7C6', valueField: 'c_out_temp', point: { size: 1 }, //name: '냉각수 출구온도', 2016 07 15 name: '냉각탑 입구온도', label: { font: { color: '#00A7C6', }, visible: false, customizeText: function () { return this.valueText + ' °C'; } } }, { type: 'spline', // pane: 'topPane', // axis: 'htemp', color: 'darkgreen', valueField: 'h_temp', point: { size: 1 }, name: '습구온도', label: { font: { color: 'darkgreen', }, visible: false, customizeText: function () { return this.valueText + ' °C'; } } }]; A.getCoolingApproachSeriesOptions = function (ck1, ck2, ck3) { /* var returnvar : { var series = []; var valueAxis = []; }; */ var series = []; series.push(seriesS[0]); if (ck1) { series.push(seriesS[1]); } if (ck2) { series.push(seriesS[2]); } if (ck3) { series.push(seriesS[3]); } return series; }; A.getCoolingApproachvalueAxisOptions = function (ck1, ck2, ck3) { var valueAxis = []; valueAxis.push(valueAxises[0]); if (ck1) { valueAxis.push(valueAxises[1]); } if (ck2) { valueAxis.push(valueAxises[2]); } if (ck3) { valueAxis.push(valueAxises[3]); } return valueAxis; }; A.getCoolingApproachChartOptions = function(codeTimeType) { return { palette: 'Default', legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType), commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, //valueAxis: valueAxises, valueAxis: { valueMarginsEnabled: true, //position: 'right', //minValueMargin: 0, //maxValueMargin: 0, //min: -20, //max: 40, title: { //text: $G('coolingApproach') //text: $G('outdoorTemperatureWithUnit') text: '온도 (°C)' } }, series: seriesS, tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'red', dashStyle: 'dash', visible: false }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; });