Label Alignment for Y Axis

I notice that all the graphs from this link have y-labels with β€œright” alignment. Is there a way that you can set the alignment of the label for y-axis?