Implement changes for canvas charts
Refactor code to only call cache.aspx once per chart update