How to align centre a custom label in highcharts
23:26 08 Oct 2011

See a jsfiddle example

 labels: {
        items : [{
            html : 'Center Me!',
            style : {
                left : '0px',
                top : '-15px',
                fontSize : '20px'
            }
        }]
    }

I am trying to align the custom label in the /labels/items JSON element to hang right under the title and subtitle.

Playing with firebug I can alter the SVG text element for the label and add text-align='middle' and change the x='' attribute to have the same value as the title's x attribute. This makes it perfectly align under the title and stay there when resized but I can't figure out how to make the highcharts library generate this source.

Maybe there is a better way to add another label under the subtitle?

highcharts