| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 | $(function () {    BWA.ChartOptions = BWA.ChartOptions || {};    BWA.ChartOptions.PowerSavingCycle = BWA.ChartOptions.PowerSavingCycle || {};    BWA.ChartOptions.PowerSavingCycle.getChartFanLoadOptions = function (codeTimeType) {        return {            palette: "Bright",            legend: {                visible: true,                verticalAlignment: 'top',                horizontalAlignment: 'center'            },            //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),            argumentAxis:            {                valueMarginsEnabled: false,                argumentType: 'datetime',                label: {                    alignment: 'center',                    format: 'HH시-mm분'                },                tickInterval: { minutes: 15 },            },            commonSeriesSettings: {                argumentField: "DateTime",                selectionStyle: {                    hatching: {                        direction: "left"                    }                }            },            valueAxis: [                {                    name: 'fan',                    position: 'left',                    type: 'continuous',                    valueType: 'numeric',                    label: {                    },                    title: {                        text: 'FAN 부하(KWh)'                    }                }            ],            series: [                {                    type: 'spline',                    name: '현재 FAN 부하',                    argumentField: "DateTime",                    valueField: 'FANLoad',                    axis: 'fan',                    label: {                        visible: false,                    },                    point: { size: 8 }                }, {                    type: 'bar',                    name: '절감량',                    argumentField: "DateTime",                    valueField: 'Save',                    axis: 'fan',                    label: {                        visible: false,                    },                    point: { size: 8 }                }            ],            tooltip: {                enabled: true,                color: "#3e1717",                format: 'fixedPoint',                precision: 2,                font: {                    color: "white",                    size: 12,                    weight: 600,                },                argumentFormat: 'shortDate',                customizeText: function () {                    return {                        text: [this.argumentText, ': ', this.valueText].join('')                    };                }            },            crosshair: {                enabled: true,                width: 2,                horizontalLine: {                    color: 'limegreen',                    dashStyle: 'solid',                    visible: false                },                verticalLine: {                    color: 'limegreen',                    dashStyle: 'solid'                },                label: {                    visible: true,                    backgroundColor: "#949494",                    font: {                        color: "#fff",                        size: 12,                    }                }            }        };    };});
 |