Seperated chart utility functions to "chart-utils.js" from

"web-utils.js" file