Encapsulate chart styling