chart working with random data