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