got compressData function working on chart wooho