How to align centre a custom label in highcharts
Posted
by
Chrissy
on Stack Overflow
See other posts from Stack Overflow
or by Chrissy
Published on 2011-10-09T03:27:45Z
Indexed on
2012/09/24
9:37 UTC
Read the original article
Hit count: 339
highcharts
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?
© Stack Overflow or respective owner