test for draw chart