- small refactor for loading charts via factory