test/visualMap-pieces.html

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<html>
    <head>
        <meta charset="utf-8">
        <script src="esl.js"></script>
        <script src="config.js"></script>
    </head>
    <body>
        <style>
            html, body, #main {
                width: 100%;
                height: 100%;
            }
        </style>
        <div id="main"></div>
        <script>


            require([
                'echarts',
                'echarts/chart/map',
                'echarts/component/legend',
                'echarts/component/grid',
                'echarts/component/visualMap',
                'echarts/component/tooltip',
                'map/js/china'
            ], function (echarts) {

                var chart = echarts.init(document.getElementById('main'));

option = {
    title : {
        text: '订单量',
        subtext: '纯属虚构',
        x:'center'
    },
    tooltip : {
        trigger: 'item'
    },
    legend: {
        orient: 'vertical',
        x:'left',
        data:['订单量']
    },
    visualMap: {
        // selectedMode: 'single',
        pieces: [
            {min: 1500},
            {min: 900, max: 1500},
            {min: 310, max: 1000},
            {min: 200, max: 400},
            {min: 10, max: 200, label: '10 到 200(自定义label)'},
            {value: 123, label: '123(自定义特殊颜色)', color: 'grey'},
            {min: 5, max: 5, label: '5(自定义特殊颜色)', color: 'black'},
            {max: 5}
        ],
        color: ['#E0022B', '#E09107', '#A3E00B']
    },
    toolbox: {
        show: true,
        orient : 'vertical',
后面还有 79 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。