$(function() { BWA.ChartOptions = BWA.ChartOptions || {}; BWA.ChartOptions.EnergySavingControl = BWA.ChartOptions.EnergySavingControl || {}; BWA.ChartOptions.EnergySavingControl.getChartControlSetOptions = function (codeTimeType) { return { //palette: 'Harmony Light', palette: 'Bright', legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType), commonSeriesSettings: { argumentField: 'DateTime', selectionStyle: { hatching: { direction: 'left' } } }, valueAxis: [ { name: 'temp', // position: 'left', type: 'continuous', valueType: 'numeric', tickInterval: 10, valueMarginsEnabled: true, minValueMargin: 0, maxValueMargin: 0, min: -10, max: 40, label: { //font: { color: '#c96374' }, }, title: { text: '온도 (°C)', }, }, { tickInterval: 20, valueMarginsEnabled: true, minValueMargin: 0, maxValueMargin: 0, //argumentType: 'numeric', min: 0, max: 100, label: { //font: { color: '#00A7C6' }, }, name: 'humi', // position: 'right', title: { text: '습도 (%)', } } ], series: [ { type: 'spline', //pane: 'topPane', axis: 'temp', valueField: 'temp', visible: true, // 시리즈만 안보이게 할수 있다. 대신 그렇게 할려면 시작은 false로 해야 한다 hcLee 2015 04 25 point: { size: 8 }, name: '실내온도', color: '#c96374', label: { visible: false, customizeText: function () { return this.valueText + ' °C'; } } }, { type: 'bar', //pane: 'topPane', axis: 'humi', valueField: 'humi', point: { size: 8 }, name: '실내습도', color: '#00A7C6', label: { visible: false, customizeText: function () { return this.valueText + ' %'; } } }, { type: 'spline', //pane: 'topPane', axis: 'temp', valueField: 'out_temp', visible: true, // 시리즈만 안보이게 할수 있다. 대신 그렇게 할려면 시작은 false로 해야 한다 hcLee 2015 04 25 point: { size: 8 }, name: '실외온도', //color: '#c96374', label: { visible: false, customizeText: function () { return this.valueText + ' °C'; } } }, { type: 'bar', //pane: 'topPane', axis: 'humi', valueField: 'out_humi', point: { size: 8 }, name: '실외습도', //color: '#00A7C6', label: { visible: false, customizeText: function () { return this.valueText + ' %'; } } } ], tooltip: { enabled: true, }, }; } });