$(function() { BWA.ChartOptions = BWA.ChartOptions || {}; BWA.ChartOptions.WaterCoolingAnalysis = BWA.ChartOptions.WaterCoolingAnalysis || {}; BWA.ChartOptions.WaterCoolingAnalysis.getChartAtfwOptions = 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: [{ //type: 'continuous', //valueType: 'numeric', //tickInterval: 10, //valueMarginsEnabled: true, //minValueMargin: 0, //maxValueMargin: 0, min:0, title: { text: $G('atfwWithUnit') } }, { type: 'continuous', valueType: 'numeric', tickInterval: 10, valueMarginsEnabled: true, minValueMargin: 0, maxValueMargin: 0, min: -10, max: 40, name: 'outtemp', // 외기 position: 'right', //valueMarginsEnabled: true, //minValueMargin: 0, //maxValueMargin: 0, label: { font: { color: '#c96374' }, //visible: true, //format: 'largeNumber' }, title: { text: '외기온도 (°C)' } } ], series: [{ name: '냉방ATF', argumentField: "DateTime", valueField: 'CV', // 냉수 label: { visible: false, }, point: { size: 8 } }, { name: '난방ATF', argumentField: "DateTime", valueField: 'HV', // 온수 label: { visible: false, }, point: { size: 8 } }, { type: 'spline', axis: 'outtemp', color: '#c96374', valueField: 'Value', point: { size: 2 }, name: '외기 온도', label: { font: { color: '#c96374', }, visible: false, customizeText: function () { return this.valueText + ' °C'; } } }], 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, } } } }; }; });