Refactored chart codes
Add scatterChat