refactored chart configuration