$(function () { BWA.ChartOptions = BWA.ChartOptions || {}; var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {}; var valueAxise_2 = { //pane: 'topPane', name: 'temp', position: 'right', label: { font: { color: '#c96374' }, visible: true, //format: 'largeNumber' }, title: { text: '소비전력량 (kWh)' } } var series_2 = { type: 'spline', color: '#c96374', //pane: 'topPane', axis: 'temp', valueField: 'temp', point: { size: 4 }, name: '소비전력', label: { visible: false, font: { color: '#c96374', }, //customizeText: function () { // return '외기온도 (°C)'; //} } } /* C.getSeriesOptions = function (k) { return { }; };*/ A.getATFChartOptions = function (codeTimeType) { return { palette: "Bright", legend: { visible: false }, //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(moment(), codeTimeType), commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: [{ title: { text: 'ATF' } }].concat(valueAxise_2), series: [{ type: 'bar', valueField: 'atf', argumentField: 'DateTime', label: { visible: false //customizeText: function() { // return this.argumentField + this.valueText; //} }, point: { size: 8 } }].concat(series_2), tooltip: { enabled: true, }, }; }; A.getChart_3_Options = function (codeTimeType) { return { palette: "Bright", legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: [{ title: { text: '생산열량 (kcal)' } }].concat(valueAxise_2), series: [{ type: 'bar', valueField: 'kcal', argumentField: 'DateTime', name: '생산열량', label: { visible: false //customizeText: function() { // return this.argumentField + this.valueText; //} }, point: { size: 8 } }].concat(series_2), tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'red', dashStyle: 'dash', visible: false }, verticalLine: { color: 'blue', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; //var valueAxise_678 = { // name: 'hz', // position: 'right', // label: { // visible: true // }, // title: { // text: '주파수 (Hz)' // } //} //var series_678 = { // type: 'spline', // color: '#c96374', // //pane: 'topPane', // axis: 'hz', // valueField: 'hz', // point: { size: 4 }, // name: '팬 주파수', // label: { // visible: false, // //font: { color: '#c96374', }, // customizeText: function () { // return '주파수 (Hz)'; // } // } //} A.getChart_678_Options = function (codeTimeType) { return { palette: "Bright", legend: { visible: true, verticalAlignment: 'top', horizontalAlignment: 'center' }, commonSeriesSettings: { argumentField: "DateTime", selectionStyle: { hatching: { direction: "left" } } }, valueAxis: [{ title: { text: '소비전력량 (kWh)' } }],//.concat(valueAxise_678) series: [{ type: 'bar', valueField: 'kw', argumentField: 'DateTime', name: '소비전력', label: { visible: false, //customizeText: function() { // return this.argumentField + this.valueText; //} }, point: { size: 8 } }],//.concat(series_678), tooltip: { enabled: true, }, crosshair: { enabled: true, width: 2, horizontalLine: { color: 'red', dashStyle: 'dash', visible: false }, verticalLine: { color: 'blue', dashStyle: 'dash', visible: true }, label: { visible: true, backgroundColor: "#949494", font: { color: "#fff", size: 12, } } } }; }; });