Tab with chart

I have 2U layout with tabbar in each layout cell. How can I attach a chart to a tab inside one of the cells?

Found the solution myself: tab cell object has attachChart method that take chart config as an argument.