I would like to set every character of label to vertical as shown below:
G
R
A
P
H
L
A
B
L
E
Any help is appreciated, you can find the code below:
var centerG = g.append('g')
.attr('x', ((width / 2) - (barWidth / 2)))
.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
centerG.append('text')
.text('GRAPH LABEL')
.attr("font-family", "Arimo")
.attr("font-size", "18px")
.attr("font-weight", "bold")
.attr("fill", "#FFFFFF")
.attr("letter-spacing", "1.5px")
.attr("text-anchor", "middle")
.attr("transform", "translate(" + ((width / 2) + barOffset) +
", " + yHeight + ") rotate(270)")
.attr("class", "centerLabelText")
.attr("y", 0)