mark line label positionecharts 配置项内容和展示

在这个示例中,默认mark line 的label是横向的。 现在把label的position由end改成middle再改成end, mark line label的方向变成了纵向的。

配置项如下
      option = {
    "tooltip": {},
    "legend": {
        "show": false
    },
    "grid": {
        "top": 20,
        "bottom": 10,
        "left": 10,
        "right": 10,
        "containLabel": true
    },
    "yAxis": {
        "data": ["A", "B", "C", "D"],
        "type": "category"
    },
    "xAxis": {
        "type": "value"
    },
    "series": [{
        "type": "line",
        "data": [3, 6, 12, 3],
        "markLine": {
            "silent": true,
            "symbol": ["", ""],
            "data": [{
                "xAxis": 6,
                "label": {
                    "show": true,
                    "position": "end",
                    "color": "#000000",
                    "formatter": "mark line"
                },
                "lineStyle": {
                    "color": "#68d2e0",
                    "width": 3,
                    "type": "solid"
                }
            }]
        }
    }]
}
    
截图如下