$(function() {
    "use strict";
    BWA.ChartOptions = BWA.ChartOptions || {};
    var A = BWA.ChartOptions.MainDashBoard = BWA.ChartOptions.MainDashBoard || {};

    A.getYearElectricityUsageStatusChartOptions = function() {
        return {
            palette: 'Pastel',
            scale: {
                startValue: 0, endValue: 150,
                majorTick: {
                    //                color: '#536878',
                    tickInterval: 10
                },
                label: {
                    indentFromTick: 3
                }
            },
            rangeContainer: {
                ranges: [
                    { startValue: 0, endValue: 90, color: '#77DD77' },
                    { startValue: 90, endValue: 100, color: 'orange' },
                    { startValue: 100, endValue: 150, color: '#92000A' }

                ]
            },
            valueIndicator: {
                type: 'twoColorNeedle'
            },
            title: {
                text: '전기 (%)',
                position: 'bottom-center',
                font: { size: 14 }
            },
            subvalues: [90],
            tooltip: {
                enabled: true,
                format: 'fixedPoint',
                customizeTooltip: function () {
                    return {
                        text: ['전기: ', this.valueText, '%'].join('')

                    };
                }
            }
        };
    };
});