| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 | $(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,                    }                }            }        };    };});
 |