pictorialBar-仿刻度尺条形图

描述:当前是关于Echarts图表中的 示例。
 
            option = 
   {
       backgroundColor:"#ddd",
    "legend": {
        "show": true
    },
    "xAxis": {
        "data": [
            "A",
            "B",
            "C",
            "D",
            "E",
        ],
        "axisLine": {
            "show": true
        },
        "axisTick": {
            "show": true
        },
      //   "boundaryGap": false,
        "axisLabel": {
            "show": true,
            "margin": 14,
            "fontSize": 12,
            "textStyle": {
                "color": "black"
            }
        }
    },
    "yAxis": [
        {
            "type": "value",
            "nameTextStyle": {
                "color": "black",
                "fontSize": 12,
                "padding": 10
            },
            "splitLine": {
                "show": false
            },
            "axisLine": {
                "show": true
            },
            "axisTick": {
                "show": true
            },
            "axisLabel": {
                "show": true,
                "margin": 14,
                "fontSize": 12,
                "textStyle": {
                    "color": "black"
                }
            },
            "interval": 1,
            "max": 10,
            "min": 0
        }
    ],
    "series": [
        {
            "name": "图例",
            "type": "pictorialBar",
            "itemStyle": {
                "normal": {
                    "color": "black"
                }
            },
            "symbolRepeat": "fixed",
            "symbol": "rect",
            "symbolClip": true,
            "symbolPosition": "start",
            "data": [
                10,
                7,
                9,
                1,
                5,
                
            ],
            "width": 2,
            "z": 0,
            "zlevel": 1,
            "symbolMargin": 2.7,
            "symbolSize": [
                9,
                1
            ],
            "symbolOffset": [
                6,
                0
            ]
        },
        {
            "name": "图例",
            "type": "pictorialBar",
            "itemStyle": {
                "normal": {
                    "color": "black"
                }
            },
            "symbolRepeat": "fixed",
            "symbol": "rect",
            "symbolClip": true,
            "symbolPosition": "start",
            "data": [
                10,
                7,
                9,
                1,
                5,
            ],
            "width": 2,
            "z": 0,
            "zlevel": 1,
            "symbolMargin": 34,
            "symbolSize": [
                16,
                1
            ],
            "symbolOffset": [
                2,
                0
            ]
        },
        
    ]
}
;