function () {
        var range = this._model.get('range');

        var rg = range;

        if (zrUtil.isArray(rg) && rg.length === 1) {
            rg = rg[0];
        }

        if (/^\d{4}$/.test(rg)) {
            range = [rg + '-01-01', rg + '-12-31'];
        }

        if (/^\d{4}[\/|-]\d{1,2}$/.test(rg)) {

            var start = this.getDateInfo(rg);
            var firstDay = start.date;
            firstDay.setMonth(firstDay.getMonth() + 1);

            var end = this.getNextNDay(firstDay, -1);
            range = [start.formatedDate, end.formatedDate];
        }

        if (/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(rg)) {
            range = [rg, rg];
        }

        var tmp = this._getRangeInfo(range);

        if (tmp.start.time > tmp.end.time) {
            range.reverse();
        }

        return range;
    }
function () {
        var range = this._model.get('range');

        var rg = range;

        if (zrUtil.isArray(rg) && rg.length === 1) {
            rg = rg[0];
        }

        if (/^\d{4}$/.test(rg)) {
            range = [rg + '-01-01', rg + '-12-31'];
        }

        if (/^\d{4}[\/|-]\d{1,2}$/.test(rg)) {

            var start = this.getDateInfo(rg);
            var firstDay = start.date;
            firstDay.setMonth(firstDay.getMonth() + 1);

            var end = this.getNextNDay(firstDay, -1);
            range = [start.formatedDate, end.formatedDate];
        }

        if (/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(rg)) {
            range = [rg, rg];
        }

        var tmp = this._getRangeInfo(range);

        if (tmp.start.time > tmp.end.time) {
            range.reverse();
        }

        return range;
    }
function ( ) { var range = this . _model . get ( 'range' ) ; var rg = range ; if ( zrUtil . isArray ( rg ) && rg . length === 1 ) { rg = rg [ 0 ] ; } if ( / ^\d{4}$ / . test ( rg ) ) { range = [ rg + '-01-01' , rg + '-12-31' ] ; } if ( / ^\d{4}[\/|-]\d{1,2}$ / . test ( rg ) ) { var start = this . getDateInfo ( rg ) ; var firstDay = start . date ; firstDay . setMonth ( firstDay . getMonth ( ) + 1 ) ; var end = this . getNextNDay ( firstDay , - 1 ) ; range = [ start . formatedDate , end . formatedDate ] ; } if ( / ^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$ / . test ( rg ) ) { range = [ rg , rg ] ; } var tmp = this . _getRangeInfo ( range ) ; if ( tmp . start . time > tmp . end . time ) { range . reverse ( ) ; } return range ; }
initRange

@private
@return {Array} [start, end]
initRange
Get the range of the log