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

    A.getYearTotalEnergyUsageStatusChartOptions = 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: '전체 TOE (%)',
                position: 'bottom-center',
                font: { size: 14 }
            },
            subvalues: [90],
            tooltip: {
                enabled: true,
                format: 'fixedPoint',
                customizeTooltip: function () {
                    return {
                        text: ['전체 TOE: ', this.valueText, '%'].join('')

                    };
                }
            }
        }
    };
});