inject chart controller into main controller