simplify initializing charts