3
votes

Using highchart, is there a way to add labels according to particular x / y Axis values ?

Using the highchart's labels, I'm able to write text at a given position in pixels, but I need to give a value from an axis as position.

For example, in this jsFiddle I would like to set the label position on 'june', like the plot line.

how can I do this?

    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

2 Answers

0
votes