$(function() { BWA.ChartOptions = BWA.ChartOptions || {}; BWA.ChartOptions.WaterCoolingAnalysis = BWA.ChartOptions.WaterCoolingAnalysis || {}; BWA.ChartOptions.WaterCoolingAnalysis.getChartVOpenOptions = function(codeTimeType) { return { palette: "Soft", legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType), commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: [ { name: 'vopen', title: { text: '냉/난방 밸드개도율' } }, { type: 'continuous', valueType: 'numeric', tickInterval: 10, valueMarginsEnabled: true, minValueMargin: 0, maxValueMargin: 0, min: -10, max: 40, position: 'right', name: 'temperature', title: { text: $G('outdoorTemperatureWithUnit') }, label: { font: { color: '#c96374' }, visible: true, }, }], series: [ { type: 'bar', axis: 'vopen', valueField: 'CV', name: '냉방밸드 개도율', label: { visible: false, customizeText: function() { return this.valueText + ' (%)'; } }, point: { size: 8 } }, { type: 'bar', axis: 'vopen', valueField: 'HV', name: '난방밸드 개도율', label: { visible: false, customizeText: function() { return this.valueText + ' (%)'; } }, point: { size: 8 } }, { type: 'spline', valueField: 'Value', axis: 'temperature', name: $G('outdoorTemperature'), label: { visible: false, customizeText: function() { return this.valueText + '°C'; } }, point: { size: 1 } }, ], 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, } } } }; } });