首页 文章

xAxis值上的高图位置标签

提问于
浏览
3

使用高图,有没有办法根据特定的x / y轴值添加标签?

使用highchart's labels,我能够以像素为单位在给定位置写入文本,但我需要从轴给出一个值作为位置 .

例如,在this jsFiddle中,我想在'june'上设置标签位置,就像绘图线一样 .

我怎样才能做到这一点?

labels: { 
           items : [{ 
               html : 'Summer starts here !' ,
               style : { 
                   left: '10px', 
                   //I need to set the left position as an xValue : the timestamp for the summer start.
                   top: '100px'
               }
           }] 
    }

2 回答

相关问题