Modify chart logic. Initial data variable