| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 | $(function () {    BWA.ChartOptions = BWA.ChartOptions || {};    BWA.ChartOptions.WaterRAnalysis = BWA.ChartOptions.WaterRAnalysis || {};    BWA.ChartOptions.WaterRAnalysis.getChartEffiOptions = function (codeTimeType) {        return {            palette: "Bright",            legend: {                visible: true,                verticalAlignment: 'top',                horizontalAlignment: 'center'            },            //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),            commonSeriesSettings: {                argumentField: "DateTime",                selectionStyle: {                    hatching: {                        direction: "left"                    }                }            },            argumentAxis:            {                argumentType: 'DateTime',                label: {                    alignment: 'center',                    format: 'dd일 HH시'                },                tickInterval: { hours: 1 },            },            valueAxis: [            {                name: 'rw', //                 //position: 'right',                label: {                    //font: { color: '#c96374' },                    visible: true,                },                title: {                                        text: '사용량 (m3)'                }            },            {                name: 'lev', //                 tickInterval: 10,                valueMarginsEnabled: true,                minValueMargin: 0,                maxValueMargin: 0,                //argumentType: 'numeric',                min: 0,                max: 100,                position: 'right',                label: {                    visible: true,                },                title: {                    text: '수위 (%)'                }            },            {                name: 'lev2', //                 tickInterval: 10,                valueMarginsEnabled: true,                minValueMargin: 0,                maxValueMargin: 0,                //argumentType: 'numeric',                min: 0,                max: 100,                position: 'right',                label: {                    visible: false,                },            }            ],            series: [            {                axis: 'lev',                name: '우수조 저장조 수위',  //수정                type: 'bar',                valueField: 'lev',                point: { size: 4, symbol: 'triangle' },                label: {                    visible: false,                }            },             {                 axis: 'lev2',                 name: '우수조 처리조 수위',  //수정                 type: 'bar',                 valueField: 'lev2',                 point: { size: 4, symbol: 'triangle' },                 label: {                     visible: false,                 }             },            {                axis: 'rw',                type: 'spline',                name: '우수 사용량',                color: 'red',                argumentField: "DateTime",                valueField: 'rw', //                 label: {                    visible: false,                },                point: { size: 8 },            },            {                axis: 'rw',                name: '보충 시수량',                type: 'spline',                color: 'blue',                valueField: 'sw',                point: { size: 8, symbol: 'triangle' },                label: {                    visible: false,                }            }            ],            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,                    }                }            }        };    };});
 |