如何按照以下屏幕截图在高图下方和上方添加标签 [英] How to add Labels below and above of the highcharts as per below screenshot

查看:93
本文介绍了如何按照以下屏幕截图在高图下方和上方添加标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请提供有关如何在下面的散点图中在多边形之外的所有角添加标签的帮助

please help on how to add laebls in the below scattered charts at all corners but outside polygons

推荐答案

您可以使用注释并将其放置在绘图区域之外,例如:

You can use annotations and place them outside plot-area, for example:

    annotations: [{
        animation: false,
        labelOptions: {
            backgroundColor: 'transparent',
            overflow: 'none',
            borderWidth: 0,
            shape: 'rect',
            style: {
                color: '#000'
            }
        },
        labels: [{
            text: 'some text',
            point: {
                x: 10,
                y: -20
            }
        }, {
            text: 'some text2',
            point: {
                x: 10,
                y: 270
            }
        }]
    }]


实时演示: http://jsfiddle.net/BlackLabel/qm6wd2g5/

API参考: https://api.highcharts.com/highcharts /annotations

这篇关于如何按照以下屏幕截图在高图下方和上方添加标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆