$(function() { BWA.ChartOptions = BWA.ChartOptions || {}; BWA.ChartOptions.HeatExchangerAnalysis = BWA.ChartOptions.HeatExchangerAnalysis || {}; BWA.ChartOptions.HeatExchangerAnalysis.getChartEffiOptions = function (codeTimeType) { return { palette: "Bright", legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType), commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: [ { name: 'elec', // position: 'left', label: { visible: true, }, title: { text: '순환펌프 소비전력량 (kwh)' } }, { name: 'effi', // position: 'right', label: { visible: true, }, title: { text: '열교환기 효율' } }, { name: 'r_effi', // position: 'right', label: { visible: true, }, title: { text: '반송 효율' } } ], series: [{ axis: 'elec', name:'순환펌프 소비전력량', argumentField: "DateTime", valueField: 'elec', // label: { visible: false, }, point: { size: 1 } }, { axis: 'effi', type: 'scatter', name: '열교환기 효율', argumentField: "DateTime", valueField: 'effi', // label: { visible: false, }, point: { size: 8 }, }, { axis: 'r_effi', name: '반송 효율', type: 'scatter', valueField: 'r_effi', point: { size: 8, symbol: 'triangle' }, //name: '외기 온도', label: { //font: { color: '#c96374', }, visible: false, } }], tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'black', dashStyle: 'dash', visible: false }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; BWA.ChartOptions.HeatExchangerAnalysis.getChartAVOptions = 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: [ { name: 's_water_temp', // position: 'right', label: { visible: true, }, title: { text: '온수 급수 온도 (°C)' } }, { name: 'r_water_temp', // position: 'right', label: { visible: true, }, title: { text: '온수 환수 온도 (°C)' } }, { name: 'elec', // position: 'left', label: { visible: true, }, title: { text: '소비전력량 (kwh)' } } ], series: [ { axis: 's_water_temp', type: 'scatter', name: '온수 급수 온도', argumentField: "DateTime", valueField: 's_water_temp', // label: { visible: false, }, point: { size: 8 }, }, { axis: 'r_water_temp', name: '온수 환수 온도', type: 'scatter', valueField: 'r_water_temp', point: { size: 8, symbol: 'triangle' }, //name: '외기 온도', label: { //font: { color: '#c96374', }, visible: false, } }, { axis: 'elec', name: '소비전력량', argumentField: "DateTime", valueField: 'elec', // label: { visible: false, }, point: { size: 1 } } ], tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'black', dashStyle: 'dash', visible: false }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; BWA.ChartOptions.HeatExchangerAnalysis.getChartPumpOptions = function (codeTimeType) { return { palette: "Harmony Light", legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType), commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: [ { name: 'sw', // position: 'right', label: { visible: true, }, title: { text: '유량 (m3/h)' } }, { name: 'lift', // position: 'right', label: { visible: true, }, title: { text: '양정 (m)' } }, { name: 'elec', // position: 'left', label: { visible: true, }, title: { text: '소비전력량 (kwh)' } } ], series: [{ axis: 'sw', type: 'scatter', name: '유량', argumentField: "DateTime", valueField: 'sw', // label: { visible: false, }, point: { size: 8 }, }, { axis: 'lift', name: '양정', type: 'scatter', valueField: 'lift', point: { size: 8, symbol: 'triangle' }, //name: '외기 온도', label: { //font: { color: '#c96374', }, visible: false, } }, { axis: 'elec', name: '소비전력량', argumentField: "DateTime", valueField: 'elec', // label: { visible: false, }, point: { size: 1 } } ], tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'black', dashStyle: 'dash', visible: false }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; BWA.ChartOptions.HeatExchangerAnalysis.getChartATFOptions = function (codeTimeType) { return { palette: "Ocean", legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType), commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: [{ label: { visible: true, }, title: { text: 'ATF' } }, { name: 'temp', // position: 'right', type: 'continuous', valueType: 'numeric', tickInterval: 10, valueMarginsEnabled: true, minValueMargin: 0, maxValueMargin: 0, min: -10, max: 40, label: { visible: true, font: { color: '#c96374' }, }, title: { text: '외기 온도 (°C)' } } ], series: [{ name: 'ATF', argumentField: "DateTime", valueField: 'atf', // label: { visible: false, }, point: { size: 4 } }, { axis: 'temp', name: '외기 온도', argumentField: "DateTime", valueField: 'temp', // label: { visible: false, }, point: { size: 4 }, } ], tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'black', dashStyle: 'dash', visible: false }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; var valueAxises = [{ pane: 'topPane', name: 'Temperature', position: 'right', //valueMarginsEnabled: true, //minValueMargin: 0, //maxValueMargin: 0, type: 'continuous', valueType: 'numeric', tickInterval: 10, valueMarginsEnabled: true, minValueMargin: 0, maxValueMargin: 0, min: -10, max: 40, label: { font: { color: '#c96374' }, visible: true, //format: 'largeNumber' }, title: { text: $G('outdoorTemperatureWithUnit') } }, { pane: 'topPane', name: 'humidity', tickInterval: 20, valueMarginsEnabled: true, minValueMargin: 0, maxValueMargin: 0, //argumentType: 'numeric', min: 0, max: 100, position: 'right', grid: { visible: true }, label: { font: { color: '#00A7C6' }, visible: true, //format: 'largeNumber' }, title: { text: $G('outdoorHumidityWithUnit') } }]; var seriesS = [{ type: 'spline', color: '#c96374', pane: 'topPane', axis: 'Temperature', valueField: 'Temperature', point: { size: 2 }, name: $G('outdoorTemperature'), label: { visible: false, font: { color: '#c96374', }, customizeText: function () { return this.valueText + ' °C'; } } }, { type: 'spline', pane: 'topPane', axis: 'humidity', color: '#00A7C6', valueField: 'Humidity', point: { size: 2 }, name: $G('outdoorHumidity'), label: { font: { color: '#00A7C6', }, visible: false, customizeText: function () { return this.valueText + ' %'; } } }]; BWA.ChartOptions.HeatExchangerAnalysis.getChart_1_Options = function (codeTimeType) { return { palette: 'Default', legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType), // ㅎㅎ 이게 있어야 멀티드로잉이 된다. 2015 04 21 commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: [{ pane: 'topPane', position: 'left', label: { visible: true, //format: 'largeNumber' }, title: { text: '지열 시스템 COP' } }].concat(valueAxises), series: [{ type: 'bar', argumentField: "DateTime", valueField: 'Value', //valueField: 'Temperature', name: '지열 시스템 COP', point: { size: 8 } }].concat(seriesS), panes: [{ name: 'topPane', border: { visible: false, left: false, right: false, top: false, color: 'gray' } }, ], defaultPane: "topPane", tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'black', dashStyle: 'dash', visible: false }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; BWA.ChartOptions.HeatExchangerAnalysis.getChart_2_Options= function (codeTimeType) { return { palette: "Soft Pastel", legend: { visible: false }, argumentAxis: { max: 100, min: 0, title: { text: $G('loadRateWithUnit') } }, valueAxis: { title: { text: '지열시스템 COP' } }, series: { type: 'scatter', valueField: 'cop', // argumentField: 'load', // label: { visible: false, //customizeText: function() { // return this.argumentField + this.valueText; //} }, point: { size: 8 } }, tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'black', dashStyle: 'dash', visible: true }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; BWA.ChartOptions.HeatExchangerAnalysis.getChart_3_Options = function (codeTimeType) { return { palette: 'Harmony Light', legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: { pane: 'topPane', position: 'left', label: { visible: true, //format: 'largeNumber' }, title: { text: '부하율 (%)' } }, series: { type: 'bar', argumentField: "DateTime", valueField: 'Value', //valueField: 'Temperature', name: '부하율', point: { size: 8 } }, panes: [{ name: 'topPane', border: { visible: false, left: false, right: false, top: false, color: 'gray' } }, ], defaultPane: "topPane", tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'black', dashStyle: 'dash', visible: true }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; BWA.ChartOptions.HeatExchangerAnalysis.getChart_4_Options = function (codeTimeType) { return { palette: 'Bright', legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType), commonSeriesSettings: { argumentField: 'DateTime', selectionStyle: { hatching: { direction: 'left' } } }, valueAxis: [{ title: { text: '소비전력량 (kWh)' } }, { type: 'continuous', valueType: 'numeric', /*tickInterval: 10, valueMarginsEnabled: true, minValueMargin: 0, maxValueMargin: 0, //min: -10, max: 40, */ position: 'right', name: 'temperature', label: { font: { color: '#c96374' }, }, title: { text: '온도 (°C)' } }], series: [{ type: 'bar', valueField: 'Value', //axis: 'Cold', name: '소비전력', label: { visible: false, customizeText: function () { return this.valueText + '(kWh)'; } }, point: { size: 8 } }, { type: 'spline', valueField: 'in_temp', axis: 'temperature', name: '공급온도', label: { visible: false, customizeText: function () { return this.valueText + '°C'; } }, point: { size: 8 } }, { type: 'spline', valueField: 'out_temp', axis: 'temperature', name: '환수온도', label: { visible: false, customizeText: function () { return this.valueText + '°C'; } }, point: { size: 2 } }], tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'black', dashStyle: 'dash', visible: false }, verticalLine: { color: 'black', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; } });