Add label rotation functionality

@darrenli