encapsulate chart object