Add sn.sourceColorMapping function and use in energy-io and power-io charts.
Remove unused code.