adds legend and custom styles to chart