encapsulate chart