define(function (require) {
    require('../../echarts').extendComponentModel({
        type: 'tooltip',
        defaultOption: {
            zlevel: 0,
            z: 8,
            show: true,
            // tooltip????
            showContent: true,
            // ????????????????????'item' ¦ 'axis'
            trigger: 'item',
            // ??????? 'click' | 'mousemove'
            triggerOn: 'mousemove',
            // ?????? content
            alwaysShowContent: false,
            // ?? {Array} | {Function}
            // position: null
            // ??????{string}?Template? ¦ {Function}
            // formatter: null
            showDelay: 0,
            // ???????ms
            hideDelay: 100,
            // ?????????s
            transitionDuration: 0.4,
            enterable: false,
            // ??????????????0.7???
            backgroundColor: 'rgba(50,50,50,0.7)',
            // ??????
            borderColor: '#333',
            // ?????????px????4
            borderRadius: 4,
            // ?????????px????0?????
            borderWidth: 0,
            // ????????px??????????5?
            // ????????????????css
            padding: 5,
            // Extra css text
            extraCssText: '',
            // ??????????????
            axisPointer: {
                // ?????
                // ????'line' | 'shadow' | 'cross'
                type: 'line',
                // type ? line ???????? tooltip line ???????
                // ?? 'x' | 'y' | 'angle' | 'radius' | 'auto'
                // ?? 'auto'??????? cateogry ????????????????????? x ?
                // ????????? angle ?
                axis: 'auto',
                animation: true,
                animationDurationUpdate: 200,
                animationEasingUpdate: 'exponentialOut',
                // ?????????
                lineStyle: {
                    color: '#555',
                    width: 1,
                    type: 'solid'
                },
                crossStyle: {
                    color: '#555',
                    width: 1,
                    type: 'dashed',
                    // TODO formatter
                    textStyle: {}
                },
                // ?????????
                shadowStyle: {
                    color: 'rgba(150,150,150,0.3)'
                }
            },
            textStyle: {
                color: '#fff',
                fontSize: 14
            }
        }
    });
}); 
  |