How does the process of chromium electroplating work?

See below.