Refactored Chart to Pattern