added support for charts