$(function() { "use strict"; BWA.ChartOptions = BWA.ChartOptions || {}; var A = BWA.ChartOptions.MainDashBoard = BWA.ChartOptions.MainDashBoard || {}; A.getMonthEnergyUsageStatusSeriesOptions = function(flags) { var series = []; if (flags.thisMonth) { series.push({ color: '#5F8B95', valueField: 'ThisMonthValue', name: '금월', point: { size: 8 } }); } if (flags.lastMonth) { series.push({ color: '#BD5458', valueField: 'LastMonthValue', name: '전월', point: { size: 8 } }); } if (flags.lastYear) { series.push({ color: '#B0C677', valueField: 'LastYearValue', name: '전년동월', point: { size: 8 } }); } return series; }; A.getMonthEnergyUsageStatusChartOptions = function() { return { palette: 'Pastel', commonSeriesSettings: { type: 'line', argumentField: 'DateTime' }, series: [ { valueField: 'Value', name: '' }, ], argumentAxis: { label: { customizeText: function() { return this.value + '일'; } }, min: 1, max: 31, valueMarginsEnabled: false, tickInterval: 5, }, valueAxis: { label: { format: 'largeNumber', }, showZero: true }, tooltip: { enabled: true, customizeTooltip: function(point) { return { text: '[{0}] {1}{2}: {3}'.formati(point.seriesName, point.argumentText, '일', point.value) }; } }, legend: { visible: false, // position: 'inside', verticalAlignment: "top", horizontalAlignment: "right", border: { visible: true } } }; }; });