echarts 四象限

option = {
    backgroundColor:'white',
    title : {
        text: ''
    },
    grid: {
        left: '3%',
        right: '12%',
        bottom: '3%',
        containLabel: true
    },
    tooltip : {
        trigger: 'axis',
        showDelay : 0,
        formatter : function (params) {
            if (params.value.length > 1) {
                return params.seriesName + ' :<br/>'
                   + params.value[0] + ','
                   + params.value[1];
            }
            else {
                return params.seriesName + ' :<br/>'
                   + params.name + ' : '
                   + params.value + ' ';
            }
        },
        axisPointer:{
            show: true,
            type : 'cross',
            lineStyle: {
                type : 'dashed',
                width : 1
            }
        }
    },
    toolbox: {
        feature: {
            dataZoom: {},
            brush: {
                type: ['rect', 'polygon', 'clear']
            }
        }
    },
    brush: {
    },
   
    xAxis : [
        {
            type : 'value',
            name: 'xx评分',
            scale: true,
            axisLabel : {
                formatter: '{value}'
            },
            splitLine: {
                show: false
            }
        }
    ],
    yAxis : [
        {
            type : 'value',
            name: 'yyy评分',
            scale:true,
            axisLabel : {
                formatter: '{value}'
            },
            splitLine: {
                show: false
            }
        }
    ],
    series : [
        {
            name:'',
            type:'scatter',
            data: [[1.1,1.1],[1.5,2.6],[1.7,6],[2,8],[2.1,10.1],[2.2,12.3],[2.3,19.2],[3.1,22.3],[3.5,25.8],[3.8,29.6],[4.2,33.8],[4.3,38.1],[4.7,42.8],[5,47.8],[5.1,52.9],[9.5,62.4],[9.7,72.1],[10,82.1],[12,94.1]
            ],
            markArea: {
                silent: true,
                itemStyle: {
                    normal: {
                        color: 'transparent',
                        borderWidth: 0.5,
                        borderType: 'dashed',
                        borderColor: 'grey'
                    }
                },
                data: [[{
                    name: '',
                    xAxis: 'min',
                    yAxis: 'min'
                }, {
                    xAxis: 'max',
                    yAxis: 'max'
                }]]
            },
            markLine : {
                lineStyle: {
                    normal: {
                        color: 'blue',
                        type: 'solid'
                    }
                },
                data : [
                    {type : 'median', name: '中位数'},
                    {type : 'median', valueDim:'x' }
                ]
            }
        }
    ]
};

在这里插入图片描述
去除数字

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值