add a way to draw charts